Search games
search_gamesSearch elite over-the-board chess games (Lichess broadcasts, FIDE-identified players) with one structured query. Everything combines with AND: player/opponent/colour, result, rating, event, opening (ECO or name), time control, dates, game length; precomputed THEMES and MOTIFS (IQP, hanging pawns, minority attack, knight outposts, forks, pins, sacrifices, comebacks, time scrambles — call list_themes); registered PATTERNS (move sequences); not clauses to exclude anything; and board predicates checked move by move (partial positions, piece manoeuvres, king attacks, material imbalances like the exchange for a pawn); and sequence to compose your own 'A, then B' over themes, events and board predicates when no registered pattern fits. YOU translate the user's words into this query; if a concept has no field, say so rather than guessing. Do not pick a colour the user did not name: a material imbalance or a theme with no side given is for:'any' / side:'any'. A player name is bound to one person by FIDE id — read notes in the response to see who, and tell the user if the name was ambiguous. Each hit carries the moment to look at (focus: ply, SAN, FEN) and marks for every matched event. With a board predicate the total may be an estimate (total_exact false) — pass cursor to continue. Set stats=true for score, results, opponents' rating and the most-played openings of the result set.
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": {
"q": "<q>"
},
"name": "search_games"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | The structured query: every condition combines with AND (see the tool description) | |
| limit | No | Max hits (default 25, max 100) | |
| stats | No | Also return score, results, opponents' rating and top openings for the whole result set | |
| cursor | No | From a previous response: continue |