Skip to main content
Glama
Crawlora MCP

Crawlora MCP

Official

lichess_user_games

Export a Lichess user's games as JSON records with filters for time range, opponent, rating, speed, variant, color, and computer analysis so you can retrieve the specific matches you need.

Instructions

Export games of a Lichess user. Exports a user's games as source JSON records, newest first, bounded by max (1 through 100, default 20). Filters narrow by time (since and until epoch milliseconds), opponent (vs), rated or casual, speed or variant (perfType, one or more comma-separated values), color, computer analysis and ongoing or finished state; flags add the full PGN, clocks, evaluations, accuracy, opening, division, annotations and the last FEN. The anonymous source stream is throttled to 20 games per second. Person-level records (usernames, names, ratings) are returned as published under the maintainer's 2026-11-23 approval. Requests use the shared cross-replica serial gate and honor Lichess's 60-second minimum cooldown after HTTP 429.

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
vsNoOnly games played against this opponent username
maxNoNumber of games, 1 through 100; default 20
sortNoSort order; the source default is dateDesc
tagsNoInclude the PGN tags in the pgn field; source default true
colorNoOnly games the user played as this color
evalsNoInclude analysis evaluations in an analysis field when available; source default false
movesNoInclude the moves; source default true
ratedNotrue for rated games only, false for casual games only
sinceNoEarliest game time as epoch milliseconds, at least 1356998400070
untilNoLatest game time as epoch milliseconds, at least 1356998400070
clocksNoInclude clock times in a clocks field; source default false
lastFenNoInclude the X-FEN of the last position; source default false
ongoingNoInclude ongoing games, delayed by 3 to 60 seconds; source default false
openingNoInclude the opening name; source default false
accuracyNoInclude each player's accuracy percent when available; source default false
analysedNotrue for games with a computer analysis only, false for games without
divisionNoInclude the plies that mark the start of the middlegame and endgame; source default false
finishedNoInclude finished games; false returns ongoing games only; source default true
literateNoInsert textual annotations into the pgn field; source default false
perfTypeNoOne or more comma-separated speeds or variants: ultraBullet, bullet, blitz, rapid, classical, correspondence, chess960, crazyhouse, antichess, atomic, horde, kingOfTheHill, racingKings, threeCheck
usernameYesLichess username whose games are exported
pgnInJsonNoInclude the full PGN in a pgn field of each game; source default false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.17.28

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description must carry behavioral disclosure and largely does: it states ordering, the 'anonymous source stream' nature, throttling at 20 games per second, a shared cross-replica serial gate, and a 60-second cooldown after HTTP 429. It also discloses a data-governance fact (person-level records returned under a 2026-11-23 approval). What it omits is whether the call needs authentication or what error surface exists beyond 429.

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

Conciseness3/5

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

Purpose is front-loaded in the first sentence, which is good, but the middle sentences are dense semicolon-run enumerations that closely restate the schema's filter names. The trailing operational sentences (serial gate, cooldown, approval date) are useful but sit in the same undifferentiated block, making the paragraph longer than it needs to be for what it adds over the 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?

There is no output schema, so the description must indicate the return shape; it does so by saying records are 'source JSON records, newest first' and listing which flags inject fields (PGN, clocks, evals, accuracy, opening, division, last FEN). That is enough for an agent to construct a call and anticipate the payload, though per-record structure remains only implied.

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 coverage is 100%, so a 3 is the floor; the description earns above that by synthesizing 22 parameters into two usable categories, filters (which narrow) versus flags (which add fields to output), so the agent grasps the intent of the option set without reading every property. It also restates the perfType comma-separated multi-value form and the epoch-millisecond units for since/until, which are the two params most easily misused.

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?

The description names a specific verb and resource ('Export games of a Lichess user') and states the ordering and bound (newest first, max 1-100, default 20). It does not explicitly differentiate from sibling game exporters such as lichess_tournament_games, lichess_swiss_games, or lichess_tv_games, so the agent must infer scope from the word 'user' alone.

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?

Usage is implied by the filter enumeration (time, opponent, rated, perfType, color, analysis, state), which tells the agent what this tool can narrow to. There is no explicit when-to-use or when-not statement, and no sibling (e.g. tournament/tv game exporters) is named as an alternative.

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

Deploy Server

Other Tools