analyze_game
Run a full Stockfish analysis of a Lichess or Chess.com game to classify moves, measure accuracy and errors, and identify critical moments for coaching.
Instructions
Run a full engine analysis of one game and classify every move.
Returns evaluation before/after each move, centipawn loss, a label (best/good/inaccuracy/mistake/blunder), the engine's best move and line, per-player accuracy and error counts, and the five most critical moments with their FEN so you can explain why a move was bad. Results are cached, so repeat calls are instant.
Args: game_id: Game id or URL from Lichess or Chess.com (as returned by get_recent_games). platform: "lichess" or "chesscom". Guessed from the id when omitted. username: The player to coach. Required for Chess.com games that were not fetched via get_recent_games; otherwise optional (adds user_color/user_result). depth: Engine search depth (default 14; 18+ is slower but more precise).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| game_id | Yes | ||
| platform | No | ||
| username | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||