API & MCP

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

HTTP API

  • GET https://gamenook.usefulweb.app/api/v1/tools – catalog
  • GET https://gamenook.usefulweb.app/api/v1/tools/{id} – inputs, output schema, examples
  • POST https://gamenook.usefulweb.app/api/v1/tools/{id}/calculate – run a tool
  • GET https://gamenook.usefulweb.app/api/v1/workflows · POST https://gamenook.usefulweb.app/api/v1/workflows/{id}/run
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Tools on Gamenook

  • Skat Game Value Calculator – Skat game value from contract, matadors, Hand, Schneider, Schwarz and Ouvert — with overbid check. gamenook_skat_game_value
  • Doppelkopf Score Calculator – Doppelkopf game points from card points, announcements and special points (DDV rules). gamenook_doppelkopf_score
  • Contract Bridge Score Calculator – Bridge score of one contract: duplicate points, rubber entries above and below the line, IMPs. gamenook_bridge_score
  • Draughts PDN Checker – Checks every move of a draughts or checkers game in PDN, with compulsory and majority captures. gamenook_draughts_check
  • Board Game Solver – Solves Four in a Row and Kalah positions exactly: win, loss or draw and the value of every move. gamenook_board_solver
  • Go Score Counter (SGF) – Counts a finished Go game from its SGF: area or territory scoring, dead stones, komi and the result. gamenook_go_score
  • Tournament Bracket Maker – Single or double elimination or round robin: seeded brackets, byes, results and downloads. tournament_bracket_maker

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://gamenook.usefulweb.app/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: gamenook_skat_game_value, gamenook_doppelkopf_score, gamenook_bridge_score, gamenook_draughts_check, gamenook_board_solver, gamenook_go_score, tournament_bracket_maker
  • Local stdio connector: node src/mcp-stdio.ts
{
  "mcpServers": {
    "usefulweb": { "type": "http", "url": "https://gamenook.usefulweb.app/mcp" }
  }
}