get_championship_details
Retrieve comprehensive details for any WCA championship including venue information, events, results, competitors, and regional significance using the championship ID.
Instructions
Get detailed information about a specific championship by its ID.
Returns comprehensive information about a WCA championship including venue details, events, results, competitors, and championship-specific information like regional significance.
Args: championship_id: Championship ID (e.g., "WC2023" for World Championship 2023, "Euro2022" for European Championship 2022)
Returns: Detailed championship information including all competition data plus championship-specific details
Example: get_championship_details("WC2023") - World Championship 2023 details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| championship_id | Yes |
Implementation Reference
- src/wca_mcp_server/main.py:371-398 (handler)The primary handler function for the 'get_championship_details' MCP tool. It is decorated with @mcp.tool() for automatic registration and implements the core logic by calling WCAAPIClient.get_championship() to fetch and return the data.@mcp.tool() async def get_championship_details(championship_id: str) -> Dict[str, Any]: """Get detailed information about a specific championship by its ID. Returns comprehensive information about a WCA championship including venue details, events, results, competitors, and championship-specific information like regional significance. Args: championship_id: Championship ID (e.g., "WC2023" for World Championship 2023, "Euro2022" for European Championship 2022) Returns: Detailed championship information including all competition data plus championship-specific details Example: get_championship_details("WC2023") - World Championship 2023 details """ try: async with WCAAPIClient() as client: championship_data = await client.get_championship(championship_id) return championship_data except APIError as e: raise Exception(f"Failed to get championship {championship_id}: {e}") except Exception as e: raise Exception(f"Unexpected error getting championship {championship_id}: {e}")
- src/wca_mcp_server/client.py:289-299 (helper)Supporting helper method in WCAAPIClient that performs the actual API request to retrieve championship details from the WCA static API endpoint.async def get_championship(self, championship_id: str) -> Dict[str, Any]: """Get a specific championship by ID. Args: championship_id: Championship ID Returns: Championship data """ return await self._make_request(f"championships/{championship_id}.json")