Skip to main content
Glama

lichess_user_games

Read-only

Return a Lichess user's games by username as JSON records with players, ratings, status and moves, newest first; max is 1 through 100 (default 20). Filter by since/until epoch milliseconds, vs opponent, rated, comma-separated perfType, color or analysed, and opt into pgnInJson, clocks, evals, accuracy, opening or ongoing games. Use lichess_game for one known game ID or lichess_user_current_game for the game in progress.

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": {
      "username": "<username>"
    },
    "name": "lichess_user_games"
  }
}

Input Schema

NameRequiredDescriptionDefault
vsNoOptional filter: only games played against this opponent username.
maxNoOptional number of games, 1 through 100; default 20. Games are newest first unless sort=dateAsc.
sortNoOptional sort order: dateAsc or dateDesc (source default).
tagsNoOptional; include the PGN tags in the pgn field (source default true).
colorNoOptional filter: only games the user played as this color.
evalsNoOptional; include analysis evaluations in an analysis field when available (source default false).
movesNoOptional; include the moves (source default true).
ratedNoOptional filter: true for rated games only, false for casual games only.
sinceNoOptional earliest game time as epoch milliseconds (at least 1356998400070).
untilNoOptional latest game time as epoch milliseconds (at least 1356998400070).
clocksNoOptional; include clock times in a clocks field (source default false).
lastFenNoOptional; include the X-FEN of the last position (source default false).
ongoingNoOptional; include ongoing games, delayed by 3 to 60 seconds (source default false).
openingNoOptional; include the opening name (source default false).
accuracyNoOptional; include each player's accuracy percent when available (source default false).
analysedNoOptional filter: only games with (true) or without (false) a computer analysis.
divisionNoOptional; include the plies that mark the start of the middlegame and endgame (source default false).
finishedNoOptional; include finished games; false returns ongoing games only (source default true).
literateNoOptional; insert textual annotations into the pgn field (source default false).
perfTypeNoOptional filter: one or more comma-separated speeds or variants from /lichess/enums user_perf_types, for example blitz,rapid.
usernameYesRequired Lichess username whose games are exported.
pgnInJsonNoOptional; include the full PGN in a pgn field of each game (source default false).

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and idempotentHint=false, so safety and idempotency are covered. The description adds genuine context beyond them: results are newest first, max is clamped 1-100 with default 20, since/until are epoch milliseconds, and ongoing games are delayed 3-60 seconds. It stops short of noting rate limits or response-size concerns for large max values.

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?

Front-loaded with purpose, scope and ordering, then filters, then alternatives – a good information hierarchy with no filler. The middle filter sentence is dense and reads as a run-on, but every clause carries usable information.

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 22-parameter export tool with full annotation coverage and an output schema, the description covers ordering, defaults, filtering, latency behavior and sibling routing. The main gap is guidance on large result sets (why to tune max) and any auth or rate-limit expectations for an open-world remote API.

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%, so every one of the 22 parameters is already documented, establishing a baseline of 3. The description contributes grouping (filters vs. inclusion toggles) and reiterates the max default and perfType comma-separated format, but adds little syntax or semantics the schema does not already carry.

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 a specific verb and resource ("Return a Lichess user's games by username") plus the record shape, ordering and cap. It explicitly distinguishes itself from lichess_game and lichess_user_current_game, so an agent can separate the three without opening any schema.

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

Usage Guidelines5/5

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

Names the two alternatives and the exact condition that selects each: lichess_game for one known game ID, lichess_user_current_game for the game in progress. Filter options (since/until, vs, rated, perfType, color, analysed) further imply the query scenarios this tool handles.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.