Analyze a chess PGN game
analyze_pgn_gameParse and validate a standard chess PGN game with chess.js, detect the ECO code and opening name, count moves, captures, checks, promotions, and castling, and return the final FEN, material balance, static evaluation, and game outcome.
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": {
"pgn": "<pgn>"
},
"name": "analyze_pgn_game"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pgn | Yes | Standard chess PGN text (with optional tag headers and SAN moves), e.g. '1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5'. | |
| includeMoves | No | Optional flag to include the parsed ply-by-ply move list (up to 200 plies). Defaults to false. |