get_wca_events
Retrieve official World Cube Association speedcubing events with their IDs, names, and formats for competition data access.
Instructions
Get all official WCA events.
Returns a list of all official World Cube Association events including event IDs, names, and formats.
Returns: List of WCA events with their details
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/wca_mcp_server/main.py:28-46 (handler)Handler function implementing the get_wca_events tool. Decorated with @mcp.tool() for automatic registration in FastMCP. Fetches official WCA events via WCAAPIClient.get_events() and handles errors.@mcp.tool() async def get_wca_events() -> List[Dict[str, Any]]: """Get all official WCA events. Returns a list of all official World Cube Association events including event IDs, names, and formats. Returns: List of WCA events with their details """ try: async with WCAAPIClient() as client: events = await client.get_events() return events except APIError as e: raise Exception(f"Failed to fetch WCA events: {e}") except Exception as e: raise Exception(f"Unexpected error fetching WCA events: {e}")