{
  "openapi": "3.1.1",
  "info": {
    "title": "Gamenook API",
    "version": "1.0.0",
    "summary": "Deterministic tools for people and AI agents.",
    "description": "Every endpoint performs the same calculation as the human page and returns inputs, result, units, assumptions, sources, warnings and computedAt. MCP endpoint: /mcp."
  },
  "servers": [
    {
      "url": "https://gamenook.usefulweb.site"
    }
  ],
  "paths": {
    "/api/v1/tools": {
      "get": {
        "operationId": "listTools",
        "summary": "Catalog of all tools",
        "responses": {
          "200": {
            "description": "Tool list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/{id}": {
      "get": {
        "operationId": "getTool",
        "summary": "Definition of one tool",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "gamenook-skat-game-value",
                "gamenook-doppelkopf-score",
                "gamenook-bridge-score",
                "gamenook-draughts-check",
                "gamenook-board-solver",
                "gamenook-go-score",
                "tournament-bracket-maker"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tool definition.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/gamenook-skat-game-value/calculate": {
      "post": {
        "operationId": "calculateGamenookSkatGameValue",
        "summary": "Skat game value from contract, matadors, Hand, Schneider, Schwarz and Ouvert — with overbid check.",
        "description": "Works out the value of a Skat game by the International Skat Order: base value of the suit or Grand times the multiplier (matadors with or without, game, Hand, Schneider, announced, Schwarz, announced, Ouvert), or the fixed Null values 23/35/46/59. Enter your bid to see whether the game covers it, the highest bid it covers and — with the declarer’s card points — whether the game is won and what it scores. The Gamenook app uses the same engine for its score sheet.\n\nMethodology:\n- Suit games: base value Diamonds 9, Hearts 10, Spades 11, Clubs 12; Grand 24. Multiplier = matadors (with or without) + 1 for the game + 1 each for Hand, Schneider, Schneider announced, Schwarz, Schwarz announced and Ouvert (ISkO 4.1–4.4). Announcing Schwarz implies Schneider announced; Ouvert implies both.\n- Null games have fixed values: Null 23, Null Hand 35, Null Ouvert 46, Null Ouvert Hand 59.\n- A game whose value is below the bid is lost (overbid); it then counts at least the smallest multiple of its base value that reaches the bid (ISkO 5.6).\n- With card points: the declarer wins with 61 or more (Schneider: 90+, an announced Schneider or Schwarz must be reached). Score sheet: won +value, lost −2 × value; Seeger-Fabian adds +50 / −50 and 40 for each defender when the declarer loses (three-player table).",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "gamenook_skat_game_value",
        "x-owner-app": "gamenook",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GamenookSkatGameValueInput"
              },
              "examples": {
                "example1": {
                  "summary": "Clubs with 2, Hand — bid 48",
                  "value": {
                    "game": "C",
                    "matadorsWith": "with",
                    "matadors": 2,
                    "hand": true,
                    "bid": 48
                  }
                },
                "example2": {
                  "summary": "Grand without 1, Schneider, 92 points",
                  "value": {
                    "game": "grand",
                    "matadorsWith": "without",
                    "matadors": 1,
                    "schneider": true,
                    "declarerPoints": "92",
                    "bid": 72
                  }
                },
                "example3": {
                  "summary": "Overbid: Hearts with 1 after bidding 36",
                  "value": {
                    "game": "H",
                    "matadorsWith": "with",
                    "matadors": 1,
                    "bid": 36,
                    "declarerPoints": "71"
                  }
                },
                "example4": {
                  "summary": "Null Ouvert Hand",
                  "value": {
                    "game": "null",
                    "hand": true,
                    "ouvert": true,
                    "bid": 59
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GamenookSkatGameValueResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/gamenook-doppelkopf-score/calculate": {
      "post": {
        "operationId": "calculateGamenookDoppelkopfScore",
        "summary": "Doppelkopf game points from card points, announcements and special points (DDV rules).",
        "description": "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 Gamenook app scores every game with the same function.\n\nMethodology:\n- Winner (DDV 7.1): Re needs 121 card points, Kontra 120; if only Kontra was announced, Re wins with 120 and Kontra needs 121. A party that said keine 90/60/30 needs 151/181/211, after Schwarz every trick; the other party then wins with 90/60/30 or one trick. If both parties fail their Absagen, nobody wins.\n- Points (DDV 7.2): won 1, against the Queens of Clubs 1 (Kontra wins a normal game), under 90/60/30 and Schwarz 1 each, Re and Kontra announced 2 each, every Absage 1, reaching 120/90/60/30 against an Absage 1 each (also without a winner). Special points (normal games only): every fox caught, Karlchen and every Doppelkopf 1 for the party that made it; they are set off against each other.\n- Plus-minus scoring: each Re player gets the value, each Kontra player its negative; a soloist gets three times the value.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "gamenook_doppelkopf_score",
        "x-owner-app": "gamenook",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GamenookDoppelkopfScoreInput"
              },
              "examples": {
                "example1": {
                  "summary": "Re wins with 150, Re announced, one fox caught",
                  "value": {
                    "reAugen": 150,
                    "reTricks": 8,
                    "kontraTricks": 4,
                    "reAnnounce": "1",
                    "reFox": 1
                  }
                },
                "example2": {
                  "summary": "Kontra wins against the Queens with 125",
                  "value": {
                    "reAugen": 115,
                    "reTricks": 5,
                    "kontraTricks": 7,
                    "kontraAnnounce": "1",
                    "kontraDoppelkopf": 1
                  }
                },
                "example3": {
                  "summary": "Re said keine 90 but got only 140",
                  "value": {
                    "reAugen": 140,
                    "reTricks": 7,
                    "kontraTricks": 5,
                    "reAnnounce": "2"
                  }
                },
                "example4": {
                  "summary": "Queens solo won keine 60",
                  "value": {
                    "solo": true,
                    "reAugen": 185,
                    "reTricks": 10,
                    "kontraTricks": 2,
                    "reAnnounce": "1"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GamenookDoppelkopfScoreResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/gamenook-bridge-score/calculate": {
      "post": {
        "operationId": "calculateGamenookBridgeScore",
        "summary": "Bridge score of one contract: duplicate points, rubber entries above and below the line, IMPs.",
        "description": "Scores one Contract Bridge deal by the scoring tables of the Laws of Duplicate Bridge: points for the tricks bid and made, overtricks, the bonus for making a doubled or redoubled contract, slam bonuses and the penalties for undertricks, not vulnerable or vulnerable, doubled or redoubled. Duplicate scoring adds the part-score or game bonus; rubber scoring splits the result into the points below the line (towards game, with your existing part score) and above it, with honours. Enter the other table’s score to get the IMP difference. The Gamenook app scores every deal with the same engine.\n\nMethodology:\n- Tricks bid and made: Clubs and Diamonds 20 each, Hearts and Spades 30, no trumps 40 for the first and 30 for the others; doubled × 2, redoubled × 4. A game needs 100 of these points.\n- Overtricks: the trick value undoubled; doubled 100 (not vulnerable) or 200 (vulnerable) each, redoubled twice that. Making a doubled contract scores 50, redoubled 100. Small slam 500 / 750, grand slam 1000 / 1500.\n- Undertricks: undoubled 50 / 100 each; doubled not vulnerable 100 for the first, 200 for the second and third, 300 for each further one; doubled vulnerable 200 for the first and 300 for each further one; redoubled twice the doubled penalty.\n- Duplicate adds 50 for a part score, 300 for a game not vulnerable, 500 vulnerable; honours do not count. Rubber bridge enters the trick score below the line (game at 100, with the part score you already have) and everything else above it, honours included (four trump honours in one hand 100, five 150, four Aces at no trumps 150). IMPs follow the WBF scale (20–40 = 1 … 4000+ = 24).",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "gamenook_bridge_score",
        "x-owner-app": "gamenook",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GamenookBridgeScoreInput"
              },
              "examples": {
                "example1": {
                  "summary": "4♠ made with an overtrick, not vulnerable",
                  "value": {
                    "level": 4,
                    "strain": "S",
                    "tricks": 11
                  }
                },
                "example2": {
                  "summary": "3NT doubled, two down, vulnerable",
                  "value": {
                    "level": 3,
                    "strain": "N",
                    "doubled": "1",
                    "vulnerable": true,
                    "tricks": 7
                  }
                },
                "example3": {
                  "summary": "6♥ doubled making 13 (rubber, honours)",
                  "value": {
                    "level": 6,
                    "strain": "H",
                    "doubled": "1",
                    "tricks": 13,
                    "scoring": "rubber",
                    "honours": "four"
                  }
                },
                "example4": {
                  "summary": "2♠+2 against 4♠ at the other table (IMPs)",
                  "value": {
                    "level": 2,
                    "strain": "S",
                    "tricks": 10,
                    "otherTable": "420"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GamenookBridgeScoreResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/gamenook-draughts-check/calculate": {
      "post": {
        "operationId": "calculateGamenookDraughtsCheck",
        "summary": "Checks every move of a draughts or checkers game in PDN, with compulsory and majority captures.",
        "description": "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 Gamenook app imports PDN with the same engine.\n\nMethodology:\n- International draughts (FMJD): 10×10, 20 men each, White moves first. Men move one square diagonally forward and capture forward and backward; kings move and capture along whole diagonals (flying kings). Capturing is compulsory and the sequence that takes the most pieces must be chosen (kings and men count the same). Captured pieces are removed only after the move and cannot be jumped twice. A man that passes the far row during a capture and leaves it again stays a man.\n- English checkers (English Draughts Association / WCDF): 8×8, 12 men each, Black moves first. Men move and capture forward only; kings move and capture one square in every direction. Capturing is compulsory, but any capture may be chosen; a capture sequence must be completed, and a man that reaches the king row ends its move there.\n- Moves are matched in square numbers: a-b for moves, axb for captures (written with x, or with - in older files); when two captures lead between the same squares, the full path (axbxc) is required. Comments {…}, variations (…), NAGs and move numbers are skipped.\n- The position decides a result when the side to move has no legal move (it loses), after a threefold repetition, or after the quiet-move limit: 25 moves each with kings only and no capture (international) or 40 moves each without a capture or a man move (English). Special endgame limits of the FMJD rules (for example 16 moves for three kings against one) are not applied.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "gamenook_draughts_check",
        "x-owner-app": "gamenook",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GamenookDraughtsCheckInput"
              },
              "examples": {
                "example1": {
                  "summary": "International opening with exchanges",
                  "value": {
                    "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 *"
                  }
                },
                "example2": {
                  "summary": "Majority rule broken (only one piece taken)",
                  "value": {
                    "variant": "international",
                    "pdn": "[FEN \"W:W28,33:B11,22,29\"]\n1. 33x24 *"
                  }
                },
                "example3": {
                  "summary": "English checkers: a missed capture",
                  "value": {
                    "variant": "english",
                    "pdn": "[GameType \"21\"]\n1. 11-15 22-18 2. 9-13 *"
                  }
                },
                "example4": {
                  "summary": "English checkers opening, legal",
                  "value": {
                    "pdn": "[GameType \"21\"]\n[Result \"*\"]\n1. 11-15 23-19 2. 8-11 22-17 3. 9-13 17-14 *"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GamenookDraughtsCheckResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/gamenook-board-solver/calculate": {
      "post": {
        "operationId": "calculateGamenookBoardSolver",
        "summary": "Solves Four in a Row and Kalah positions exactly: win, loss or draw and the value of every move.",
        "description": "Enter a Four in a Row position as the moves played so far (column digits 1–7, e.g. 4453) or as a 6-line grid, and the solver searches it to the end of the game: does the player to move win, lose or draw with perfect play, how fast, and what is every column worth. Positions with many empty cells take too long to solve exactly — the solver then stops at the node limit and says so instead of guessing. The Gamenook computer player uses the same solver near the end of a game. Kalah endgames work the same way: enter both rows of pits with their stores and who is to move, and the solver plays every line to the end and gives the final store difference for each pit.\n\nMethodology:\n- Exact game-tree search (negamax with alpha-beta pruning, centre columns first, a transposition table of upper bounds and an immediate-win check) from the given position to the end of the game; no heuristics decide the answer.\n- Score convention used by published Four in a Row test sets: 0 for a draw; for a win (43 − stones on the board before the winning stone) ÷ 2, rounded down — that is 22 minus the number of stones the winner has dropped. A loss is the negative. Column scores are the scores after dropping in that column, from the point of view of the player who drops.\n- The search stops at the node limit. Early positions (more than about 20 empty cells) usually need far more nodes than the limit allows; the answer is then “not solved” rather than an estimate. The empty board is a first-player win (Allis 1988, Allen 1988), which this tool cannot verify within its limit.\n- Kalah (6 pits, any number of seeds): exhaustive minimax over every line of play to the end of the game with a table of positions already solved; the value is the final store difference for the player to move with best play by both sides (an extra turn keeps the same player on move). The default rules capture only when the opposite pit holds seeds; the line “empty capture: on” switches to the house rule that also captures the last seed alone.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "gamenook_board_solver",
        "x-owner-app": "gamenook",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GamenookBoardSolverInput"
              },
              "examples": {
                "example1": {
                  "summary": "A win in one move (14 stones)",
                  "value": {
                    "game": "fourinrow",
                    "position": "44444433333322"
                  }
                },
                "example2": {
                  "summary": "Middle game after 23 moves",
                  "value": {
                    "game": "fourinrow",
                    "position": "52753311433677442422121"
                  }
                },
                "example3": {
                  "summary": "Late position from a published test set",
                  "value": {
                    "game": "fourinrow",
                    "position": "2252576253462244111563365343671351441"
                  }
                },
                "example4": {
                  "summary": "Grid input: X threatens on two columns",
                  "value": {
                    "game": "fourinrow",
                    "position": ".......\n.......\n.......\n.......\n...O...\n.XXX.O."
                  }
                },
                "example5": {
                  "summary": "Kalah endgame: an extra turn wins it",
                  "value": {
                    "game": "kalah",
                    "position": "south: 0 0 0 2 1 1 | 20\nnorth: 1 0 2 0 0 1 | 20\nto move: south"
                  }
                },
                "example6": {
                  "summary": "Kalah endgame with the empty-capture house rule",
                  "value": {
                    "game": "kalah",
                    "position": "south: 1 0 0 0 3 0 | 22\nnorth: 0 2 0 1 0 2 | 17\nto move: north\nempty capture: on"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GamenookBoardSolverResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/gamenook-go-score/calculate": {
      "post": {
        "operationId": "calculateGamenookGoScore",
        "summary": "Counts a finished Go game from its SGF: area or territory scoring, dead stones, komi and the result.",
        "description": "Paste a finished Go game as SGF (any board size up to 19×19) and the counter replays it, removes the dead stones and scores it: area scoring (stones on the board plus surrounded empty points, as in Chinese and AGA rules) or territory scoring (surrounded points plus captured stones, as in Japanese and Korean rules), with komi for White. Dead stones come from the territory marks most Go programs write into the SGF at the end of a game, from your own list, or from a rough computer estimate. You get the result in SGF form (B+3.5), the count for both sides, a picture of the final board with territory and dead stones, and the SGF with the counted territory. The Gamenook Go table scores with the same engine.\n\nMethodology:\n- The main line of the SGF is replayed from the setup stones: captures are applied and counted per colour; an occupied point or a suicide is an error (ko is not checked, so games from rule sets with other ko rules can still be counted).\n- Dead stones are removed. Every empty area (including the points of the removed stones) that touches stones of only one colour is that colour’s territory; areas that touch both colours are neutral (dame).\n- Area scoring: live stones + territory. Territory scoring: territory + stones captured during play + dead stones removed at the end. White adds komi. Seki is not detected separately: empty points inside a seki touch both colours and stay neutral, as most rule sets count them.\n- Territory marks (TB/TW) in an SGF are how many Go programs store the agreed end of a game: a stone standing on a point marked as the other colour’s territory is taken as dead. The computer estimate plays a few hundred quick random games from the final position and calls a stone dead when the other colour owns its point at the end of most of them — useful for clear cases, unreliable in close fights.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "gamenook_go_score",
        "x-owner-app": "gamenook",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GamenookGoScoreInput"
              },
              "examples": {
                "example1": {
                  "summary": "Finished 9×9 game with territory marks (area scoring)",
                  "value": {
                    "sgf": "(;GM[1]FF[4]SZ[9]KM[7.5]RU[Chinese]PB[Black]PW[White]RE[B+1.5]\nAB[ea][eb][ec][ed][ee][ef][eg][eh][ei][hh]\nAW[fa][fb][fc][fd][fe][ff][fg][fh][fi][bb]\nTB[aa][ab][ac][ad][ae][af][ag][ah][ai][ba][bb][bc][bd][be][bf][bg][bh][bi][ca][cb][cc][cd][ce][cf][cg][ch][ci][da][db][dc][dd][de][df][dg][dh][di]\nTW[ga][gb][gc][gd][ge][gf][gg][gh][gi][ha][hb][hc][hd][he][hf][hg][hh][hi][ia][ib][ic][id][ie][if][ig][ih][ii])"
                  }
                },
                "example2": {
                  "summary": "The same game counted with territory scoring",
                  "value": {
                    "sgf": "(;GM[1]FF[4]SZ[9]KM[7.5]RU[Chinese]PB[Black]PW[White]RE[B+1.5]\nAB[ea][eb][ec][ed][ee][ef][eg][eh][ei][hh]\nAW[fa][fb][fc][fd][fe][ff][fg][fh][fi][bb]\nTB[aa][ab][ac][ad][ae][af][ag][ah][ai][ba][bb][bc][bd][be][bf][bg][bh][bi][ca][cb][cc][cd][ce][cf][cg][ch][ci][da][db][dc][dd][de][df][dg][dh][di]\nTW[ga][gb][gc][gd][ge][gf][gg][gh][gi][ha][hb][hc][hd][he][hf][hg][hh][hi][ia][ib][ic][id][ie][if][ig][ih][ii])",
                    "rules": "territory"
                  }
                },
                "example3": {
                  "summary": "Dead stones listed by hand",
                  "value": {
                    "sgf": "(;GM[1]FF[4]SZ[9]KM[7.5]RU[Chinese]PB[Black]PW[White]RE[B+1.5]\nAB[ea][eb][ec][ed][ee][ef][eg][eh][ei][hh]\nAW[fa][fb][fc][fd][fe][ff][fg][fh][fi][bb])",
                    "deadFrom": "list",
                    "deadStones": "B8 H2"
                  }
                },
                "example4": {
                  "summary": "Beginner game with captures, Japanese rules, territory marks",
                  "value": {
                    "sgf": "(;GM[1]FF[4]CA[UTF-8]SZ[9]KM[6.5]RU[Japanese]PB[Anna]PW[Ben];B[dc];W[gf];B[eg];W[de];B[ff];W[ch];B[gg];W[dh];B[bh];W[bf];B[he];W[ac]\n;B[ee];W[cd];B[gc];W[ed];B[bb];W[fc];B[da];W[eb];B[cg];W[cc];B[dd];W[db]\n;B[dg];W[bg];B[eh];W[id];B[ib];W[gd];B[cf];W[hd];B[ce];W[be];B[fe];W[hb]\n;B[bd];W[bc];B[fd];W[ic];B[ad];W[cb];B[hc];W[hf];B[if];W[ig];B[ie];W[ge]\n;B[gb];W[ga];B[ha];W[fa];B[he];W[ie];B[ih];W[hg];B[fb];W[hb];B[ae];W[ea]\n;B[af];W[gh];B[ec];W[ag];B[ba];W[ca];B[af];W[ii];B[ci];W[ah];B[fh];W[gc]\n;B[ad];W[bd];B[hi];W[aa];B[fi];W[ab];B[bb];W[ef];B[di];W[fb];B[ed];W[bi]\n;B[dh];W[fg];B[ff];W[dc];B[gi];W[gg];B[ch];W[ed];B[ee];W[ia];B[hh];W[ba]\n;B[fd];W[ai];B[df];W[fe];B[dd];W[ef];B[de];W[ff];B[];W[]TB[ei][ii]TW[da][ha][bb][gb][ib][ec][hc][ad][fd][ae][he][af][if])"
                  }
                },
                "example5": {
                  "summary": "The same game with the dead stones estimated by the computer",
                  "value": {
                    "sgf": "(;GM[1]FF[4]CA[UTF-8]SZ[9]KM[6.5]RU[Japanese]PB[Anna]PW[Ben];B[dc];W[gf];B[eg];W[de];B[ff];W[ch];B[gg];W[dh];B[bh];W[bf];B[he];W[ac]\n;B[ee];W[cd];B[gc];W[ed];B[bb];W[fc];B[da];W[eb];B[cg];W[cc];B[dd];W[db]\n;B[dg];W[bg];B[eh];W[id];B[ib];W[gd];B[cf];W[hd];B[ce];W[be];B[fe];W[hb]\n;B[bd];W[bc];B[fd];W[ic];B[ad];W[cb];B[hc];W[hf];B[if];W[ig];B[ie];W[ge]\n;B[gb];W[ga];B[ha];W[fa];B[he];W[ie];B[ih];W[hg];B[fb];W[hb];B[ae];W[ea]\n;B[af];W[gh];B[ec];W[ag];B[ba];W[ca];B[af];W[ii];B[ci];W[ah];B[fh];W[gc]\n;B[ad];W[bd];B[hi];W[aa];B[fi];W[ab];B[bb];W[ef];B[di];W[fb];B[ed];W[bi]\n;B[dh];W[fg];B[ff];W[dc];B[gi];W[gg];B[ch];W[ed];B[ee];W[ia];B[hh];W[ba]\n;B[fd];W[ai];B[df];W[fe];B[dd];W[ef];B[de];W[ff];B[];W[]TB[ei][ii]TW[da][ha][bb][gb][ib][ec][hc][ad][fd][ae][he][af][if])",
                    "deadFrom": "estimate"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GamenookGoScoreResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/tournament-bracket-maker/calculate": {
      "post": {
        "operationId": "calculateTournamentBracketMaker",
        "summary": "Single or double elimination or round robin: seeded brackets, byes, results and downloads.",
        "description": "Paste the entrants (in seed order, or let a seeded random draw decide) and pick single elimination, double elimination or round robin. Get a bracket with standard seeding and byes for the top seeds, a match list, and — as you enter results — winners advancing, standings and the champion. Download the bracket as JSON or CSV to share it.\n\nMethodology:\n- Elimination brackets are padded to the next power of two. Seeds are placed in the standard order (1 v 8, 4 v 5, 2 v 7, 3 v 6 for eight), so the top seeds can only meet late and the byes go to the highest seeds.\n- Double elimination: losers of winners-round 1 meet in losers-round 1; afterwards losers-bracket rounds alternate between taking in the losers of the next winners round (in reversed order on alternate rounds to reduce early rematches) and pairing up survivors. The winners-bracket champion meets the losers-bracket champion in the grand final; if the losers-bracket player wins it, an optional reset match decides.\n- Round robin uses the circle method (Berger tables): with an odd number of players one player rests each round. Standings: 3 points for a win, 1 for a draw, then wins, then name.\n- Results advance the winner (and, in double elimination, drop the loser into the losers bracket). Results naming someone who is not in that match, or for matches whose players are not known yet, are ignored with a warning.\n- A random draw shuffles the entrants with a seeded generator, so the same seed always gives the same bracket. To share a bracket, download the JSON (it contains the input, so it can be re-run via the API) or the CSV match list.",
        "tags": [
          "fun"
        ],
        "x-mcp-tool": "tournament_bracket_maker",
        "x-owner-app": "fieldday",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TournamentBracketMakerInput"
              },
              "examples": {
                "example1": {
                  "summary": "Six players, single elimination, two rounds played",
                  "value": {
                    "title": "Office ping-pong",
                    "entrants": [
                      "Ana",
                      "Ben",
                      "Chloe",
                      "Dev",
                      "Emil",
                      "Fatima"
                    ],
                    "format": "single",
                    "seeding": "listed",
                    "thirdPlace": true,
                    "results": [
                      {
                        "match": "W1-2",
                        "winner": "Dev",
                        "score": "11–8"
                      },
                      {
                        "match": "W1-4",
                        "winner": "Fatima",
                        "score": "11–9"
                      },
                      {
                        "match": "W2-1",
                        "winner": "Ana",
                        "score": "2–1"
                      }
                    ]
                  }
                },
                "example2": {
                  "summary": "Double elimination for 8 teams",
                  "value": {
                    "title": "Pub quiz cup",
                    "entrants": [
                      "Quizzly Bears",
                      "Smarty Pints",
                      "Les Quizerables",
                      "Agatha Quiztie",
                      "The Know-Its",
                      "Trivia Newton-John",
                      "Universally Challenged",
                      "Brainy Bunch"
                    ],
                    "format": "double",
                    "seeding": "listed",
                    "results": [
                      {
                        "match": "W1-1",
                        "winner": "Quizzly Bears"
                      },
                      {
                        "match": "W1-2",
                        "winner": "The Know-Its"
                      }
                    ]
                  }
                },
                "example3": {
                  "summary": "Round robin for five",
                  "value": {
                    "title": "Chess club",
                    "entrants": [
                      "Ivy",
                      "Jon",
                      "Kai",
                      "Lea",
                      "Mo"
                    ],
                    "format": "round-robin",
                    "seeding": "random",
                    "seed": "autumn",
                    "results": [
                      {
                        "match": "R1-1",
                        "winner": "draw"
                      },
                      {
                        "match": "R1-2",
                        "winner": "Kai"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TournamentBracketMakerResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflows": {
      "get": {
        "operationId": "listWorkflows",
        "summary": "Multi-tool workflows",
        "responses": {
          "200": {
            "description": "Workflow list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details. 422 responses include per-field `errors`.",
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "field",
                "message"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "GamenookSkatGameValueInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "game": {
            "title": "Game",
            "type": "string",
            "enum": [
              "D",
              "H",
              "S",
              "C",
              "grand",
              "null"
            ],
            "default": "C"
          },
          "matadorsWith": {
            "title": "Matadors",
            "type": "string",
            "enum": [
              "with",
              "without"
            ],
            "default": "with"
          },
          "matadors": {
            "title": "Number of matadors",
            "description": "Consecutive top trumps you hold (with) or miss (without), counting the Skat. Grand: at most 4.",
            "type": "integer",
            "minimum": 1,
            "maximum": 11,
            "default": 2
          },
          "hand": {
            "title": "Hand game (Skat not picked up)",
            "type": "boolean",
            "default": false
          },
          "schneider": {
            "title": "Schneider reached (90+ or 30 or less)",
            "type": "boolean",
            "default": false
          },
          "schneiderAnnounced": {
            "title": "Schneider announced (Hand only)",
            "type": "boolean",
            "default": false
          },
          "schwarz": {
            "title": "Schwarz reached (one side took every trick)",
            "type": "boolean",
            "default": false
          },
          "schwarzAnnounced": {
            "title": "Schwarz announced (Hand only)",
            "type": "boolean",
            "default": false
          },
          "ouvert": {
            "title": "Ouvert (cards open)",
            "type": "boolean",
            "default": false
          },
          "bid": {
            "title": "Your bid",
            "description": "0 = no bid check. Bids are game values from 18 upwards.",
            "type": "integer",
            "minimum": 0,
            "maximum": 264,
            "default": 0
          },
          "declarerPoints": {
            "title": "Declarer’s card points incl. Skat (optional)",
            "description": "With points the tool says whether the game is won and what it scores.",
            "type": "string",
            "maxLength": 3,
            "default": ""
          },
          "scoring": {
            "title": "Score sheet",
            "type": "string",
            "enum": [
              "isko",
              "seeger"
            ],
            "default": "isko"
          }
        },
        "required": []
      },
      "GamenookSkatGameValueResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "game",
              "baseValue",
              "multiplier",
              "value",
              "factors",
              "highestBidCovered",
              "bid",
              "overbid",
              "lostValue",
              "won",
              "score"
            ],
            "properties": {
              "game": {
                "type": "string"
              },
              "baseValue": {
                "type": "integer"
              },
              "multiplier": {
                "type": "integer"
              },
              "value": {
                "type": "integer"
              },
              "factors": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "label",
                    "count"
                  ],
                  "properties": {
                    "label": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    }
                  }
                }
              },
              "highestBidCovered": {
                "type": "integer"
              },
              "bid": {
                "type": "integer"
              },
              "overbid": {
                "type": "boolean"
              },
              "lostValue": {
                "type": "integer",
                "description": "Value counted when the game is lost (at least the next multiple of the base value above an overbid)."
              },
              "won": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "score": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Score-sheet entry for the declarer (null without card points)."
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "GamenookDoppelkopfScoreInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "solo": {
            "title": "Solo (Re is one player)",
            "type": "boolean",
            "default": false
          },
          "reAugen": {
            "title": "Card points of the Re party",
            "description": "Kontra has 240 minus this.",
            "type": "integer",
            "minimum": 0,
            "maximum": 240,
            "default": 121
          },
          "reTricks": {
            "title": "Tricks won by Re",
            "type": "integer",
            "minimum": 0,
            "maximum": 12,
            "default": 6
          },
          "kontraTricks": {
            "title": "Tricks won by Kontra",
            "type": "integer",
            "minimum": 0,
            "maximum": 12,
            "default": 6
          },
          "reAnnounce": {
            "title": "Highest announcement of Re",
            "type": "string",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "default": "0"
          },
          "kontraAnnounce": {
            "title": "Highest announcement of Kontra",
            "type": "string",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "default": "0"
          },
          "reFox": {
            "title": "Foxes caught by Re",
            "type": "integer",
            "minimum": 0,
            "maximum": 2,
            "default": 0
          },
          "reKarlchen": {
            "title": "Karlchen for Re (last trick won with the Jack of Clubs)",
            "type": "integer",
            "minimum": 0,
            "maximum": 1,
            "default": 0
          },
          "reDoppelkopf": {
            "title": "Doppelköpfe won by Re (tricks with 40+ points)",
            "type": "integer",
            "minimum": 0,
            "maximum": 6,
            "default": 0
          },
          "kontraFox": {
            "title": "Foxes caught by Kontra",
            "type": "integer",
            "minimum": 0,
            "maximum": 2,
            "default": 0
          },
          "kontraKarlchen": {
            "title": "Karlchen for Kontra",
            "type": "integer",
            "minimum": 0,
            "maximum": 1,
            "default": 0
          },
          "kontraDoppelkopf": {
            "title": "Doppelköpfe won by Kontra",
            "type": "integer",
            "minimum": 0,
            "maximum": 6,
            "default": 0
          }
        },
        "required": []
      },
      "GamenookDoppelkopfScoreResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "winner",
              "reAugen",
              "kontraAugen",
              "lines",
              "value",
              "perPlayer"
            ],
            "properties": {
              "winner": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "re",
                  "kontra",
                  null
                ]
              },
              "reAugen": {
                "type": "integer"
              },
              "kontraAugen": {
                "type": "integer"
              },
              "lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "label",
                    "party",
                    "points"
                  ],
                  "properties": {
                    "label": {
                      "type": "string"
                    },
                    "party": {
                      "type": "string"
                    },
                    "points": {
                      "type": "integer"
                    }
                  }
                }
              },
              "value": {
                "type": "integer",
                "description": "Points per Re player (negative when Re lost); Kontra players get the opposite."
              },
              "perPlayer": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "re",
                  "kontra"
                ],
                "properties": {
                  "re": {
                    "type": "integer"
                  },
                  "kontra": {
                    "type": "integer"
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "GamenookBridgeScoreInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "level": {
            "title": "Contract level",
            "description": "Odd tricks bid: 1 (seven tricks) to 7 (all thirteen).",
            "type": "integer",
            "minimum": 1,
            "maximum": 7,
            "default": 4
          },
          "strain": {
            "title": "Trumps",
            "type": "string",
            "enum": [
              "C",
              "D",
              "H",
              "S",
              "N"
            ],
            "default": "S"
          },
          "doubled": {
            "title": "Doubled",
            "type": "string",
            "enum": [
              "0",
              "1",
              "2"
            ],
            "default": "0"
          },
          "vulnerable": {
            "title": "Declarer’s side vulnerable",
            "type": "boolean",
            "default": false
          },
          "tricks": {
            "title": "Tricks won by declarer’s side",
            "type": "integer",
            "minimum": 0,
            "maximum": 13,
            "default": 10
          },
          "scoring": {
            "title": "Scoring",
            "type": "string",
            "enum": [
              "duplicate",
              "rubber"
            ],
            "default": "duplicate"
          },
          "partScore": {
            "title": "Part score already below the line (rubber)",
            "description": "Points the declarer’s side already has towards the current game.",
            "type": "integer",
            "minimum": 0,
            "maximum": 90,
            "default": 0
          },
          "honours": {
            "title": "Honours in one hand (rubber)",
            "type": "string",
            "enum": [
              "none",
              "four",
              "five",
              "aces"
            ],
            "default": "none"
          },
          "honoursSide": {
            "title": "Honours held by",
            "type": "string",
            "enum": [
              "declarer",
              "defenders"
            ],
            "default": "declarer"
          },
          "otherTable": {
            "title": "Other table’s score for the same side (optional)",
            "description": "With a score from the other table the tool converts the difference to IMPs.",
            "type": "string",
            "maxLength": 6,
            "default": ""
          }
        },
        "required": []
      },
      "GamenookBridgeScoreResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "contract",
              "made",
              "overtricks",
              "undertricks",
              "trickScore",
              "overtrickScore",
              "insult",
              "slamBonus",
              "undertrickPenalty",
              "gameBonus",
              "duplicateScore",
              "belowLine",
              "aboveLine",
              "gameCompleted",
              "honours",
              "imps"
            ],
            "properties": {
              "contract": {
                "type": "string"
              },
              "made": {
                "type": "boolean"
              },
              "overtricks": {
                "type": "integer"
              },
              "undertricks": {
                "type": "integer"
              },
              "trickScore": {
                "type": "integer",
                "description": "Points for the tricks bid and made (below the line in rubber bridge)."
              },
              "overtrickScore": {
                "type": "integer"
              },
              "insult": {
                "type": "integer",
                "description": "50 for making a doubled contract, 100 redoubled."
              },
              "slamBonus": {
                "type": "integer"
              },
              "undertrickPenalty": {
                "type": "integer",
                "description": "Points for the defenders when the contract fails."
              },
              "gameBonus": {
                "type": "integer",
                "description": "Duplicate: 50 part score, 300 game not vulnerable, 500 game vulnerable (0 when defeated)."
              },
              "duplicateScore": {
                "type": "integer",
                "description": "Duplicate score for the declarer’s side (negative = the defenders score)."
              },
              "belowLine": {
                "type": "integer"
              },
              "aboveLine": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "declarer",
                  "defenders"
                ],
                "properties": {
                  "declarer": {
                    "type": "integer"
                  },
                  "defenders": {
                    "type": "integer"
                  }
                }
              },
              "gameCompleted": {
                "type": "boolean",
                "description": "Rubber: the part score plus this contract reaches 100 below the line."
              },
              "honours": {
                "type": "integer"
              },
              "imps": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "IMPs for the declarer’s side against the other table (null without a comparison)."
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "GamenookDraughtsCheckInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "pdn": {
            "title": "PDN game",
            "description": "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.",
            "type": "string",
            "maxLength": 200000,
            "default": "[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 *"
          },
          "variant": {
            "title": "Rules",
            "type": "string",
            "enum": [
              "auto",
              "international",
              "english"
            ],
            "default": "auto"
          }
        },
        "required": []
      },
      "GamenookDraughtsCheckResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "variant",
              "legal",
              "totalMoves",
              "checkedMoves",
              "firstIllegal",
              "startFen",
              "finalFen",
              "sideToMove",
              "legalMovesNext",
              "resultClaimed",
              "resultOnBoard",
              "moves",
              "pdn"
            ],
            "properties": {
              "variant": {
                "type": "string",
                "enum": [
                  "international",
                  "english"
                ]
              },
              "legal": {
                "type": "boolean"
              },
              "totalMoves": {
                "type": "integer"
              },
              "checkedMoves": {
                "type": "integer",
                "description": "Legal moves replayed before the first illegal one (or all)."
              },
              "firstIllegal": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "index",
                  "move",
                  "side",
                  "reason"
                ],
                "properties": {
                  "index": {
                    "type": "integer",
                    "description": "1-based half-move number."
                  },
                  "move": {
                    "type": "string"
                  },
                  "side": {
                    "type": "string"
                  },
                  "reason": {
                    "type": "string"
                  }
                }
              },
              "startFen": {
                "type": "string"
              },
              "finalFen": {
                "type": "string"
              },
              "sideToMove": {
                "type": "string"
              },
              "legalMovesNext": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "resultClaimed": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "resultOnBoard": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "win/draw decided by the position (no legal move, repetition, quiet-move rule) or null while the game is open."
              },
              "moves": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "n",
                    "side",
                    "written",
                    "move",
                    "captured",
                    "crowned"
                  ],
                  "properties": {
                    "n": {
                      "type": "integer"
                    },
                    "side": {
                      "type": "string"
                    },
                    "written": {
                      "type": "string"
                    },
                    "move": {
                      "type": "string"
                    },
                    "captured": {
                      "type": "array",
                      "items": {
                        "type": "integer"
                      }
                    },
                    "crowned": {
                      "type": "boolean"
                    }
                  }
                }
              },
              "pdn": {
                "type": "string",
                "description": "The legal part of the game as clean PDN."
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "GamenookBoardSolverInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "game": {
            "title": "Game",
            "type": "string",
            "enum": [
              "fourinrow",
              "kalah"
            ],
            "default": "fourinrow"
          },
          "position": {
            "title": "Position",
            "description": "Four in a Row: moves as column digits 1–7 from the first move on, or 6 lines of 7 cells (X = first player, O = second, . = empty), top row first. Kalah: “south: 0 0 0 2 1 1 | 20”, “north: …” (pits from each player’s left, store after |) and “to move: south”.",
            "type": "string",
            "maxLength": 400,
            "default": "52753311433677442422121"
          },
          "maxNodes": {
            "title": "Search limit (positions)",
            "description": "The solver stops after this many positions and reports “not solved”.",
            "type": "integer",
            "minimum": 10000,
            "maximum": 5000000,
            "default": 2000000
          }
        },
        "required": []
      },
      "GamenookBoardSolverResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "game",
              "sideToMove",
              "stones",
              "solved",
              "outcome",
              "score",
              "winnerStoneCount",
              "bestMoves",
              "columns",
              "nodes"
            ],
            "properties": {
              "game": {
                "type": "string"
              },
              "sideToMove": {
                "type": "string",
                "enum": [
                  "first",
                  "second",
                  "none"
                ]
              },
              "stones": {
                "type": "integer"
              },
              "solved": {
                "type": "boolean"
              },
              "outcome": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "win",
                  "loss",
                  "draw",
                  null
                ],
                "description": "For the side to move, with perfect play by both sides."
              },
              "score": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Positive: the side to move wins; 22 minus the stones the winner has on the board when the line is completed (higher = faster). 0 = draw."
              },
              "winnerStoneCount": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How many stones the winner has dropped in total when the four is completed."
              },
              "bestMoves": {
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "columns": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "column",
                    "score",
                    "outcome"
                  ],
                  "properties": {
                    "column": {
                      "type": "integer"
                    },
                    "score": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "outcome": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              },
              "nodes": {
                "type": "integer"
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "GamenookGoScoreInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "sgf": {
            "title": "SGF game",
            "description": "A Go game in SGF: (;GM[1]SZ[9]KM[7.5];B[ee];W[gc]…). Only the main line is read. Setup stones (AB/AW) count as part of the position.",
            "type": "string",
            "maxLength": 300000,
            "default": "(;GM[1]FF[4]SZ[9]KM[7.5]RU[Chinese]PB[Black]PW[White]RE[B+1.5]\nAB[ea][eb][ec][ed][ee][ef][eg][eh][ei][hh]\nAW[fa][fb][fc][fd][fe][ff][fg][fh][fi][bb]\nTB[aa][ab][ac][ad][ae][af][ag][ah][ai][ba][bb][bc][bd][be][bf][bg][bh][bi][ca][cb][cc][cd][ce][cf][cg][ch][ci][da][db][dc][dd][de][df][dg][dh][di]\nTW[ga][gb][gc][gd][ge][gf][gg][gh][gi][ha][hb][hc][hd][he][hf][hg][hh][hi][ia][ib][ic][id][ie][if][ig][ih][ii])"
          },
          "deadFrom": {
            "title": "Dead stones",
            "type": "string",
            "enum": [
              "marks",
              "list",
              "estimate"
            ],
            "default": "marks"
          },
          "deadStones": {
            "title": "Dead stones (optional)",
            "description": "Points like D4 (A1 = bottom left, no letter I) or SGF pairs like dd. One stone marks its whole chain as dead.",
            "type": "string",
            "maxLength": 2000,
            "default": ""
          },
          "rules": {
            "title": "Scoring",
            "type": "string",
            "enum": [
              "sgf",
              "area",
              "territory"
            ],
            "default": "sgf"
          },
          "komi": {
            "title": "Komi (optional)",
            "description": "Points for White. Empty: the KM property, else 7.5 (area) or 6.5 (territory).",
            "type": "string",
            "maxLength": 6,
            "default": ""
          }
        },
        "required": []
      },
      "GamenookGoScoreResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "size",
              "moves",
              "rules",
              "komi",
              "black",
              "white",
              "winner",
              "margin",
              "result",
              "resultInSgf",
              "deadStones",
              "dame",
              "sgf"
            ],
            "properties": {
              "size": {
                "type": "integer"
              },
              "moves": {
                "type": "integer",
                "description": "Moves in the main line (passes included)."
              },
              "rules": {
                "type": "string",
                "enum": [
                  "area",
                  "territory"
                ]
              },
              "komi": {
                "type": "number"
              },
              "black": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "stones",
                  "territory",
                  "prisoners",
                  "dead",
                  "komi",
                  "total"
                ],
                "properties": {
                  "stones": {
                    "type": "integer",
                    "description": "Live stones on the board (area scoring counts them)."
                  },
                  "territory": {
                    "type": "integer",
                    "description": "Empty points (and points of dead stones) surrounded only by this colour."
                  },
                  "prisoners": {
                    "type": "integer",
                    "description": "Stones this colour captured during play (territory scoring counts them)."
                  },
                  "dead": {
                    "type": "integer",
                    "description": "Opposing stones removed as dead at the end (territory scoring counts them as prisoners)."
                  },
                  "komi": {
                    "type": "number"
                  },
                  "total": {
                    "type": "number"
                  }
                }
              },
              "white": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "stones",
                  "territory",
                  "prisoners",
                  "dead",
                  "komi",
                  "total"
                ],
                "properties": {
                  "stones": {
                    "type": "integer",
                    "description": "Live stones on the board (area scoring counts them)."
                  },
                  "territory": {
                    "type": "integer",
                    "description": "Empty points (and points of dead stones) surrounded only by this colour."
                  },
                  "prisoners": {
                    "type": "integer",
                    "description": "Stones this colour captured during play (territory scoring counts them)."
                  },
                  "dead": {
                    "type": "integer",
                    "description": "Opposing stones removed as dead at the end (territory scoring counts them as prisoners)."
                  },
                  "komi": {
                    "type": "number"
                  },
                  "total": {
                    "type": "number"
                  }
                }
              },
              "winner": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "black",
                  "white",
                  null
                ]
              },
              "margin": {
                "type": "number"
              },
              "result": {
                "type": "string",
                "description": "SGF result: B+3.5, W+0.5 or 0 for a tie (jigo)."
              },
              "resultInSgf": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The RE property of the file, if any."
              },
              "deadStones": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Dead stones as points (A1 = bottom left)."
              },
              "dame": {
                "type": "integer",
                "description": "Neutral empty points (touching both colours)."
              },
              "sgf": {
                "type": "string",
                "description": "The game with RE set and the counted territory (incl. dead stones) as TB/TW marks."
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "TournamentBracketMakerInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "title": "Tournament name",
            "type": "string",
            "maxLength": 80,
            "default": "Tournament"
          },
          "entrants": {
            "title": "Entrants (one per line, best seed first)",
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 64
          },
          "format": {
            "title": "Format",
            "type": "string",
            "enum": [
              "single",
              "double",
              "round-robin"
            ],
            "default": "single"
          },
          "seeding": {
            "title": "Seeding",
            "type": "string",
            "enum": [
              "listed",
              "random"
            ],
            "default": "listed"
          },
          "thirdPlace": {
            "title": "Third-place match (single elimination)",
            "type": "boolean",
            "default": false
          },
          "grandFinalReset": {
            "title": "Grand-final reset if the losers-bracket player wins (double elimination)",
            "type": "boolean",
            "default": true
          },
          "results": {
            "title": "Results",
            "description": "Match id from the match list (e.g. W1-2, L1-1, GF-1, R3-2) and the winner’s name. Round robin: write “draw” for a draw.",
            "type": "array",
            "maxItems": 200,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "match": {
                  "title": "Match",
                  "type": "string",
                  "maxLength": 10
                },
                "winner": {
                  "title": "Winner",
                  "type": "string",
                  "maxLength": 40
                },
                "score": {
                  "title": "Score (optional)",
                  "type": "string",
                  "maxLength": 20
                }
              },
              "required": [
                "match",
                "winner"
              ]
            }
          },
          "seed": {
            "title": "Random draw seed (optional)",
            "description": "Only for a random draw. Empty = derived from the entrant list.",
            "type": "string",
            "maxLength": 60
          }
        },
        "required": [
          "entrants"
        ]
      },
      "TournamentBracketMakerResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "title",
              "format",
              "seed",
              "entrants",
              "bracketSize",
              "byes",
              "matches",
              "nextMatches",
              "champion",
              "standings",
              "completed"
            ],
            "properties": {
              "title": {
                "type": "string"
              },
              "format": {
                "type": "string",
                "enum": [
                  "single",
                  "double",
                  "round-robin"
                ]
              },
              "seed": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "entrants": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "seed",
                    "name"
                  ],
                  "properties": {
                    "seed": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    }
                  }
                }
              },
              "bracketSize": {
                "type": "integer"
              },
              "byes": {
                "type": "integer"
              },
              "matches": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "bracket",
                    "round",
                    "roundName",
                    "a",
                    "b",
                    "aFrom",
                    "bFrom",
                    "winner",
                    "loser",
                    "score",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "bracket": {
                      "type": "string",
                      "enum": [
                        "W",
                        "L",
                        "GF",
                        "3P",
                        "RR"
                      ]
                    },
                    "round": {
                      "type": "integer"
                    },
                    "roundName": {
                      "type": "string"
                    },
                    "a": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "b": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "aFrom": {
                      "type": "string"
                    },
                    "bFrom": {
                      "type": "string"
                    },
                    "winner": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "loser": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "score": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "ready",
                        "done",
                        "bye",
                        "not-needed",
                        "draw"
                      ]
                    }
                  }
                }
              },
              "nextMatches": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Ids of matches whose players are known but that have no result yet."
              },
              "champion": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "standings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "rank",
                    "name",
                    "played",
                    "won",
                    "drawn",
                    "lost",
                    "points"
                  ],
                  "properties": {
                    "rank": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "played": {
                      "type": "integer"
                    },
                    "won": {
                      "type": "integer"
                    },
                    "drawn": {
                      "type": "integer"
                    },
                    "lost": {
                      "type": "integer"
                    },
                    "points": {
                      "type": "integer"
                    }
                  }
                }
              },
              "completed": {
                "type": "integer"
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    }
  }
}