get_player_game_archives
Retrieve all available monthly game archives for any Chess.com player by providing their username, enabling access to historical game records for analysis and review.
Instructions
Get a list of available monthly game archives for a player on Chess.com
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": "get_player_game_archives"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- tests/test_server.py:242-248 (helper)Test for the get_player_game_archives handler, verifying it calls the correct API endpoint and returns the mock response.
async def test_get_player_game_archives(): mock_archives = {"archives": ["https://api.chess.com/pub/player/username/games/2022/01"]} with patch("chess_mcp.server.make_api_request", new=AsyncMock(return_value=mock_archives)): result = await get_player_game_archives("username") assert result == mock_archives