get_player_current_games
Retrieve a Chess.com player's active games to monitor ongoing matches, track progress, or analyze current gameplay status.
Instructions
Get a player's ongoing games on Chess.com
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes |
Implementation Reference
- src/chess_mcp/server.py:128-141 (handler)Handler function decorated with @mcp.tool that implements the get_player_current_games tool by calling the Chess.com API endpoint for the player's current games.@mcp.tool(description="Get a player's ongoing games on Chess.com") async def get_player_current_games(username: str) -> Dict[str, Any]: """ Get a list of a player's current games on Chess.com. Args: username: The Chess.com username Returns: Current games data """ logger.info("Fetching player current games", username=username) return await make_api_request(f"player/{username}/games")
- src/chess_mcp/server.py:128-128 (registration)The @mcp.tool decorator registers the function as an MCP tool with the name 'get_player_current_games'.@mcp.tool(description="Get a player's ongoing games on Chess.com")