Skip to main content
Glama
lichess-mcp

lichess-mcp

by jupiutrera

Get a player's recent games

get_recent_games
Read-onlyIdempotent

Retrieve a Lichess player's recent games with opponents, ratings, results, endings, and openings, plus their win/loss/draw record; filter by color, rating, time control, or include moves.

Instructions

Most recent games of a Lichess player, newest first, with opponents, ratings, result, how the game ended and the opening. Also returns the player's win/loss/draw record over the games returned. Set withMoves to true only when the moves themselves are needed: they make the result much longer.

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

Input Schema

NameRequiredDescriptionDefault
maxNoHow many games to return, 1 to 20.
colorNoOnly games the player had this colour in.
ratedNotrue for rated games only, false for casual games only.
perfTypeNoOnly games of this time control or variant.
usernameYesLichess username, for example "DrNykterstein". Not case sensitive.
withMovesNoInclude the moves of every game in SAN.

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 the safety profile (readOnlyHint=true, destructiveHint=false, idempotentHint=true), so the description is not responsible for that. Beyond them it adds real behavioral context: results are ordered newest first, the response includes a derived win/loss/draw record, and enabling withMoves substantially inflates payload size. It still says nothing about what happens when a user has fewer games than `max` or no games at all, which would be the remaining useful detail.

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, both front-loaded with the most decision-relevant information: what comes back and in what order, then the one parameter trade-off worth flagging. Every clause earns its place, and there is no restatement of the tool name or schema fields.

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

Completeness5/5

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

With six parameters all fully described in the schema, four annotations covering safety and open-world behavior, and no output schema, the description carries exactly the burden it should: it describes the returned fields and the aggregate record so the agent can judge the result without an output schema. Nothing needed to call the tool correctly is missing.

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 100%, so a baseline of 3 is warranted regardless. The description earns an extra point by explaining the practical consequence of withMoves ('they make the result much longer'), which is a cost consideration the schema's 'Include the moves of every game in SAN' does not convey. The other five parameters are left entirely to the schema, which is acceptable given full coverage.

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 resource and scope ('Most recent games of a Lichess player, newest first') and enumerates what each entry contains: opponents, ratings, result, termination, opening. It also states a secondary output ('win/loss/draw record'), so the agent knows this is a list-plus-aggregate tool. It does not explicitly contrast itself with the sibling get_game, which fetches a single game, so it falls one step short of full sibling differentiation.

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?

Guidance exists for exactly one decision: 'Set withMoves to true only when the moves themselves are needed: they make the result much longer.' That is a genuine when/when-not rule with a stated cost. However, there is no guidance on when to use this tool instead of get_game or how the filters (max, rated, color, perfType) should be combined, so routing between siblings is left to inference.

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