Skip to main content
Glama
lichess-mcp

lichess-mcp

by jupiutrera

Probe the endgame tablebase

probe_tablebase
Read-onlyIdempotent

Queries Syzygy endgame tablebases to return perfect-play win, draw, or loss outcomes plus every legal move ranked best first for positions with seven or fewer pieces.

Instructions

Perfect-play result of an endgame with 7 pieces or fewer (kings included) from the Syzygy tablebases: whether the side to move wins, draws or loses, and every legal move with the result it leads to, best first. A "cursed-win" is a win that the 50-move rule turns into a draw; a "blessed-loss" is the same seen from the other side.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fen": "<fen>"
    },
    "name": "probe_tablebase"
  }
}

Input Schema

NameRequiredDescriptionDefault
fenYesPosition in FEN, for example "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1". Use "startpos" for the initial position.
movesNoHow many moves to return, best first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered; the description adds genuine value beyond that by disclosing the seven-piece coverage ceiling, the ordering of returned moves (best first), and definitions of the non-obvious 'cursed-win' and 'blessed-loss' labels an agent could otherwise misread as ordinary wins and losses. It stops short of describing external-service behavior, cost, or the failure mode for over-limit positions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the result and scope, followed by the two glossary terms that would otherwise cause misinterpretation. No filler, no repetition of the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description does explain the substance of the return value (game-theoretic result plus ordered move list with per-move results), which is what an agent needs. It leaves the concrete response shape and the over-seven-piece failure behavior unspecified, so it is strong but not exhaustive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with fen documented including an example and the 'startpos' shortcut, and moves documented with default and bounds, so the schema carries the parameter burden. The description adds nothing about either parameter, and in particular does not say that moves controls how many of the best-ordered lines come back, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States the specific resource (Syzygy endgame tablebase result), the exact scope (seven pieces or fewer, kings included), and the payload (win/draw/loss for the side to move plus every legal move with its resulting evaluation, best first). An agent can immediately tell this is a perfect-play lookup rather than an engine evaluation or a database game search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The seven-piece cap is an implicit constraint that helps an agent avoid calling it on midgame positions, but there is no explicit statement of when to use this versus an evaluation tool like get_cloud_eval, nor what happens if the position exceeds the limit. Usage is implied by scope rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.