API & MCP

Everything a person can do on Doppelkopf Score Calculator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Doppelkopf Score Calculator

Scores one game of Doppelkopf by the tournament rules of the Deutscher Doppelkopf-Verband: who won (121 for Re, 120 for Kontra, shifted by announcements and Absagen), the plus-minus points for winning, against the Queens of Clubs, under 90/60/30, Schwarz, Re/Kontra (+2 each), every Absage, reaching 120/90/60/30 against an Absage, and the special points Fox caught, Karlchen and Doppelkopf in normal games. A soloist scores three times. The Playcards app scores every game with the same function.

Inputs of Doppelkopf Score Calculator
FieldTypeDefaultDescription
solobooleanfalseSolo (Re is one player)
reAugeninteger121Card points of the Re party. Kontra has 240 minus this.
reTricksinteger6Tricks won by Re
kontraTricksinteger6Tricks won by Kontra
reAnnounceselect (0, 1, 2, 3, 4, 5)"0"Highest announcement of Re
kontraAnnounceselect (0, 1, 2, 3, 4, 5)"0"Highest announcement of Kontra
reFoxinteger0Foxes caught by Re
reKarlcheninteger0Karlchen for Re (last trick won with the Jack of Clubs)
reDoppelkopfinteger0Doppelköpfe won by Re (tricks with 40+ points)
kontraFoxinteger0Foxes caught by Kontra
kontraKarlcheninteger0Karlchen for Kontra
kontraDoppelkopfinteger0Doppelköpfe won by Kontra

Example request

Re wins with 150, Re announced, one fox caught

curl -X POST https://playcardsdoppelkopfscore.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"reAugen":150,"reTricks":8,"kontraTricks":4,"reAnnounce":"1","reFox":1}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "playcards-doppelkopf-score": { "type": "http", "url": "https://playcardsdoppelkopfscore.usefulweb.app/mcp" }
  }
}