Import Chess PGN
game_import_pgnImport a chess game from PGN notation to create a new game and get its position. Validates PGN, rejecting malformed or illegal moves.
Instructions
Import a PGN into a new game. Returns a new game_id with the position after all PGN moves. Rejects malformed or illegal PGN.
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": "game_import_pgn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pgn | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fen | Yes | ||
| turn | Yes | ||
| isDraw | Yes | ||
| game_id | Yes | ||
| history | Yes | ||
| isCheck | Yes | ||
| castling | Yes | ||
| lastMove | Yes | ||
| revision | Yes | ||
| isGameOver | Yes | ||
| moveNumber | Yes | ||
| isCheckmate | Yes | ||
| isStalemate | Yes | ||
| isDrawByFiftyMoves | Yes | ||
| isThreefoldRepetition | Yes | ||
| isInsufficientMaterial | Yes |