get_political_events
Retrieve high-impact political events with probability estimates to assess geopolitical risks and inform decision-making.
Instructions
Get high-impact political, economic, and natural disaster events with probability estimates. Includes elections, policy changes, economic risks, and natural disasters. Each event has a probability, deadline, and confidence level. Updated daily.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Optional: filter by event category. |
Implementation Reference
- mcp_server/server.py:174-183 (handler)The function `handle_get_political_events` handles the retrieval and filtering of political events data from `political_events.json`.
def handle_get_political_events(args: dict) -> str: data = _load_json("political_events.json") if "error" in data: return json.dumps(data) category = args.get("category") if category: data["events"] = [e for e in data.get("events", []) if e.get("category") == category] return json.dumps(data, indent=2) - mcp_server/server.py:112-130 (schema)The definition and input schema for the `get_political_events` tool.
"name": "get_political_events", "description": ( "Get high-impact political, economic, and natural disaster events with probability estimates. " "Includes elections, policy changes, economic risks, and natural disasters. " "Each event has a probability, deadline, and confidence level. " "Updated daily." ), "inputSchema": { "type": "object", "properties": { "category": { "type": "string", "description": "Optional: filter by event category.", "enum": ["political", "natural_disaster", "economic"], }, }, "required": [], }, }, - mcp_server/server.py:200-200 (registration)Registration of `get_political_events` in the `TOOL_HANDLERS` dictionary mapping names to handler functions.
"get_political_events": handle_get_political_events,