API & MCP
Everything a person can do on Draughts PDN Checker, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://playcardsdraughtscheck.usefulweb.app/api/v1/calculate– run Draughts PDN CheckerGET https://playcardsdraughtscheck.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Draughts PDN Checker
Paste a game in Portable Draughts Notation (PDN) — international draughts on 10×10 or English checkers on 8×8 — and the checker replays it move by move with the full rules: capturing is compulsory, in international draughts the capture that takes the most pieces is required (majority rule) and kings fly, a man only becomes a king when its move ends on the far row. It names the first illegal move and why, lists every move with the captured pieces, gives the final position as FEN with the legal moves from there, and compares the Result tag with the position. The Playcards app imports PDN with the same engine.
| Field | Type | Default | Description |
|---|---|---|---|
pdn | textarea | "[Event \"Example\"]\n[GameType \"20\"]\n[White \"Anna\"]\n[Black \"Ben\"]\n[Res | PDN game. Tags in square brackets, then the moves in square numbers (32-28, 28x19, or the full path 28x19x10). [FEN "W:W31,…:B1,…"] sets up a position. |
variant | select (auto, international, english) | "auto" | Rules |
Example request
International opening with exchanges
curl -X POST https://playcardsdraughtscheck.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"pdn":"[Event \"Example\"]\n[GameType \"20\"]\n[White \"Anna\"]\n[Black \"Ben\"]\n[Result \"*\"]\n\n1. 31-27 18-22 2. 27x18 12x23 3. 34-29 23x34 4. 40x29 20-24\n5. 29x20 15x24 6. 33-29 24x33 *"}'
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)
- Streamable HTTP endpoint:
https://playcardsdraughtscheck.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
playcards_draughts_check - Local stdio connector:
node src/mcp-stdio.ts --tool=playcards-draughts-check
{
"mcpServers": {
"playcards-draughts-check": { "type": "http", "url": "https://playcardsdraughtscheck.usefulweb.app/mcp" }
}
}