Skip to main content
Glama

get_game_state

Read-onlyIdempotent

Retrieves current position, legal moves, material, attacked pieces, clock estimate and think budget for a Lichess game so an MCP client can decide its next move.

Instructions

Get current FEN, pieces by square, material, attacked own pieces, legal UCI/SAN moves, ply and clock estimate and think budget. Compact omits full move history and ASCII; full includes them. Attacks are geometric, not necessarily legal captures.

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": {
      "game_id": "<game_id>"
    },
    "name": "get_game_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNocompact
game_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description goes beyond them by flagging that attacks are geometric and not necessarily legal captures, and by describing what each detail mode contains — a caveat that materially changes how an agent should interpret the output. It stops short of noting cost, latency, or other side conditions.

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

Conciseness4/5

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

Three short sentences, front-loaded with the primary return payload and zero filler. The middle enumeration ('ply and clock estimate and think budget') is slightly run-on but each clause carries information an agent needs.

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 must convey the return shape, and it does so by listing the fields and by defining the two detail modes. For a two-parameter read-only tool with full annotation coverage, the only remaining gap is the game_id semantics, which are legible from the schema pattern.

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

Parameters4/5

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

Schema description coverage is 0%, so the description carries the burden for the two parameters. It fully explains the detail enum values (compact drops move history and ASCII; full includes them), which is meaning beyond the bare enum. The game_id parameter is left unexplained, though its 8-character pattern is visible in the schema.

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

Purpose4/5

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

Names a specific verb and resource ('Get current FEN, pieces by square, material...') and enumerates the payload fields, so an agent knows exactly what this returns. It does not explicitly name a sibling (e.g. get_game_history or preview_move) as the alternative, but the note that compact omits move history implicitly separates it from history-oriented tools.

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 compact-vs-full sentence is genuine usage guidance for the detail parameter, telling the caller the cost of each mode. However, there is no statement of when to prefer this tool over get_game_history, preview_move, or make_move — usage context is only implied by the returned fields.

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