Skip to main content
Glama
lichess-mcp

lichess-mcp

by jupiutrera

Get the engine evaluation of a position

get_cloud_eval
Read-onlyIdempotent

Retrieve Stockfish evaluations and best lines for a chess position from Lichess's cloud database; scores use White's perspective. Use only for analyzed positions, as unknown positions return an error.

Instructions

Stockfish evaluation of a position from the Lichess cloud database, with the best line or lines. Scores are always from White's point of view: positive favours White, negative favours Black. Only positions that someone has analysed on Lichess are stored, mostly openings and well-known positions; an unknown position returns an error and is not worth retrying.

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": "get_cloud_eval"
  }
}

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.
linesNoHow many best lines to return, 1 to 5.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description adds genuinely useful context beyond that: the coverage limits of the cloud database, the failure mode for unknown positions, the advice not to retry, and the sign convention for scores. It does not explain the evaluation payload format, such as centipawns versus mate scores or depth, which is a meaningful gap because there is no output schema.

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?

The two-to-three-sentence description is front-loaded with what the tool returns and its data source, followed by the score convention and the failure case. Every sentence adds usable information, with no redundant restatement of the title or schema.

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?

For a two-parameter read-only lookup with no output schema, the description is nearly complete: it covers the data source, score sign convention, line count purpose, and the unknown-position failure mode. The remaining gap is the shape of the returned evaluation, such as depth or mate notation, which the description does not describe.

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%, and the schema fully documents both 'fen', including a startpos shortcut and an example, and 'lines' with its 1–5 range. The description adds no meaning beyond what the input schema already provides, so the baseline of 3 is appropriate.

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?

The description states a specific verb and resource: retrieve Stockfish engine evaluations from the Lichess cloud database, including the best line(s). It is clearly distinguishable from sibling tools such as probe_tablebase or explore_masters because it names its engine, data source, and scope.

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

Usage Guidelines4/5

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

It clearly defines when the tool will succeed and when it will not: only positions already analysed on Lichess, mostly openings and well-known positions, while unknown positions return an error and are not worth retrying. It does not name a specific alternative tool, such as the tablebase, for positions the cloud database lacks, which keeps this from a 5.

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