Skip to main content
Glama
cct15

Futuristic Risk Intelligence

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
NameRequiredDescriptionDefault
categoryNoOptional: filter by event category.

Implementation Reference

  • 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)
  • 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": [],
        },
    },
  • Registration of `get_political_events` in the `TOOL_HANDLERS` dictionary mapping names to handler functions.
    "get_political_events": handle_get_political_events,

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cct15/war-dashboard-data'

If you have feedback or need assistance with the MCP directory API, please join our Discord server