Lichess: Get User Games
lichess_get_user_gamesFetch recent Lichess games for a username, filtered by color, rated status, date range, perf type, and output format for analysis or PGN export.
Instructions
Get recent games of a Lichess user. Returns up to the specified max number of games with optional filters.
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_get_user_games"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Maximum number of games to return (1-30, default 10) | |
| color | No | Filter by color played | |
| rated | No | Filter by rated/unrated games | |
| since | No | Only games played at or after this time (Unix ms) | |
| until | No | Only games played at or before this time (Unix ms) | |
| format | No | Output format: 'json' (default) or 'pgn' for raw PGN ready for engine analysis | |
| opening | No | Include opening information (default true) | |
| perfType | No | Filter by perf type (e.g. bullet, blitz, rapid, classical) | |
| username | Yes | Lichess username |