{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "gdelt.caseyjhand.com",
    "site": "caseyjhand.com",
    "addresses": [
      {
        "address": "104.26.11.117",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.26.0.0/20",
          "country": "US"
        }
      },
      {
        "address": "172.67.72.95",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "172.67.64.0/20",
          "country": "US"
        }
      },
      {
        "address": "104.26.10.117",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.26.0.0/20",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:20::681a:a75",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:20::/44",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:20::ac43:485f",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:20::/44",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:20::681a:b75",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:20::/44",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "104.26.11.117",
          "172.67.72.95",
          "104.26.10.117",
          "2606:4700:20::681a:a75",
          "2606:4700:20::ac43:485f",
          "2606:4700:20::681a:b75"
        ],
        "first_seen": "2026-11-22T20:24:02.489Z",
        "last_seen": "2026-11-22T20:24:02.489Z",
        "checks": 1
      },
      {
        "addresses": [
          "104.26.10.117",
          "172.67.72.95",
          "104.26.11.117",
          "2606:4700:20::ac43:485f",
          "2606:4700:20::681a:b75",
          "2606:4700:20::681a:a75"
        ],
        "first_seen": "2026-11-21T16:02:00.745Z",
        "last_seen": "2026-11-21T16:02:00.745Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "gdelt-mcp-server",
      "version": "0.10.1",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare",
      "strict-transport-security": "max-age=63072000; includeSubDomains; preload",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 130,
      "sample": [
        {
          "id": "6671",
          "url": "https://mcp.amperis.com/mcp",
          "server_name": "com.amperis/catalog",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:49:03.164Z"
        },
        {
          "id": "28574",
          "url": "https://art-institute-chicago.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/art-institute-chicago-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:36:02.219Z"
        },
        {
          "id": "28575",
          "url": "https://arxiv.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/arxiv-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:37:01.411Z"
        },
        {
          "id": "28576",
          "url": "https://astronomy.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/astronomy-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:38:01.840Z"
        },
        {
          "id": "28577",
          "url": "https://aviation-weather.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/aviation-weather-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:39:01.575Z"
        },
        {
          "id": "28578",
          "url": "https://biorxiv.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/biorxiv-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:40:02.169Z"
        },
        {
          "id": "28579",
          "url": "https://bls-labor.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/bls-labor-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:41:01.131Z"
        },
        {
          "id": "28580",
          "url": "https://bluesky.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/bluesky-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:42:01.856Z"
        },
        {
          "id": "28581",
          "url": "https://brapi.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/brapi-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:43:01.729Z"
        },
        {
          "id": "28582",
          "url": "https://browser-compat.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/browser-compat-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:44:06.619Z"
        },
        {
          "id": "28583",
          "url": "https://calculator.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/calculator-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:45:03.772Z"
        },
        {
          "id": "28584",
          "url": "https://canada-parliament.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/canada-parliament-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:46:02.033Z"
        },
        {
          "id": "28585",
          "url": "https://cdc.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cdc-health-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:47:01.894Z"
        },
        {
          "id": "28586",
          "url": "https://census.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/census-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:48:01.794Z"
        },
        {
          "id": "28587",
          "url": "https://cern-inspire.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cern-inspire-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:49:02.069Z"
        },
        {
          "id": "28588",
          "url": "https://cern-opendata.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cern-opendata-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:50:02.886Z"
        },
        {
          "id": "28589",
          "url": "https://chembl.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/chembl-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:51:01.709Z"
        },
        {
          "id": "28590",
          "url": "https://cisa-cybersecurity.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cisa-cybersecurity-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:52:01.906Z"
        },
        {
          "id": "28591",
          "url": "https://clinicaltrials.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/clinicaltrialsgov-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:53:01.814Z"
        },
        {
          "id": "28592",
          "url": "https://college-scorecard.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/college-scorecard-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:54:10.959Z"
        }
      ]
    },
    "same_site": {
      "total": 133,
      "sample": [
        {
          "id": "28574",
          "url": "https://art-institute-chicago.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/art-institute-chicago-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:36:02.219Z"
        },
        {
          "id": "28575",
          "url": "https://arxiv.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/arxiv-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:37:01.411Z"
        },
        {
          "id": "28576",
          "url": "https://astronomy.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/astronomy-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:38:01.840Z"
        },
        {
          "id": "28577",
          "url": "https://aviation-weather.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/aviation-weather-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:39:01.575Z"
        },
        {
          "id": "28578",
          "url": "https://biorxiv.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/biorxiv-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:40:02.169Z"
        },
        {
          "id": "28579",
          "url": "https://bls-labor.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/bls-labor-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:41:01.131Z"
        },
        {
          "id": "28580",
          "url": "https://bluesky.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/bluesky-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:42:01.856Z"
        },
        {
          "id": "28581",
          "url": "https://brapi.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/brapi-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:43:01.729Z"
        },
        {
          "id": "28582",
          "url": "https://browser-compat.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/browser-compat-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:44:06.619Z"
        },
        {
          "id": "28583",
          "url": "https://calculator.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/calculator-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:45:03.772Z"
        },
        {
          "id": "28584",
          "url": "https://canada-parliament.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/canada-parliament-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:46:02.033Z"
        },
        {
          "id": "28585",
          "url": "https://cdc.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cdc-health-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:47:01.894Z"
        },
        {
          "id": "28586",
          "url": "https://census.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/census-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:48:01.794Z"
        },
        {
          "id": "28587",
          "url": "https://cern-inspire.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cern-inspire-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:49:02.069Z"
        },
        {
          "id": "28588",
          "url": "https://cern-opendata.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cern-opendata-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:50:02.886Z"
        },
        {
          "id": "28589",
          "url": "https://chembl.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/chembl-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:51:01.709Z"
        },
        {
          "id": "28590",
          "url": "https://cisa-cybersecurity.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cisa-cybersecurity-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:52:01.906Z"
        },
        {
          "id": "28591",
          "url": "https://clinicaltrials.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/clinicaltrialsgov-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:53:01.814Z"
        },
        {
          "id": "28592",
          "url": "https://college-scorecard.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/college-scorecard-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:54:10.959Z"
        },
        {
          "id": "28593",
          "url": "https://congressgov.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/congressgov-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:55:03.324Z"
        }
      ]
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.cyanheads",
      "total": 165,
      "sample": [
        {
          "name": "io.github.cyanheads/anime-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/art-institute-chicago-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/arxiv-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/astronomy-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/attack-surface-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/aviation-weather-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/biorxiv-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/bls-labor-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/bls-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/bluesky-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/brapi-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/browser-compat-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/calculator-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/canada-parliament-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/cdc-health-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/census-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/cern-inspire-mcp-server",
          "title": "cern-inspire-mcp-server"
        },
        {
          "name": "io.github.cyanheads/cern-opendata-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/chembl-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/cisa-cybersecurity-mcp-server",
          "title": null
        }
      ]
    },
    "same_repository": {
      "repository_url": "https://github.com/cyanheads/gdelt-mcp-server",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "28622",
    "server_name": "io.github.cyanheads/gdelt-mcp-server",
    "url": "https://gdelt.caseyjhand.com/mcp",
    "host": "gdelt.caseyjhand.com",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T20:24:02.489Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "ae12a870bbfcecd5285123b0848985931fe11c24fefd29eec5ff48ec41b6ef5b",
    "first_listed_at": "2026-11-21T16:02:00.745Z",
    "created_at": "2026-11-21T09:30:14.156Z",
    "resolved_addresses": [
      "104.26.11.117",
      "172.67.72.95",
      "104.26.10.117",
      "2606:4700:20::681a:a75",
      "2606:4700:20::ac43:485f",
      "2606:4700:20::681a:b75"
    ]
  },
  "server": {
    "name": "io.github.cyanheads/gdelt-mcp-server",
    "title": null,
    "description": "Search and analyze global news coverage and US TV transcripts via the GDELT Project APIs.",
    "version": "0.10.1",
    "registry_status": "active",
    "repository_url": "https://github.com/cyanheads/gdelt-mcp-server",
    "website_url": null,
    "published_at": "2026-11-18T07:28:40.834Z",
    "updated_at": "2026-11-18T07:28:40.834Z",
    "first_seen": "2026-11-21T09:30:13.540Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:45:11.802Z"
  },
  "operator": {
    "key": "caseyjhand.com",
    "name": "caseyjhand.com",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 2,
    "answered": 2,
    "answered_percent": 100,
    "avg_listing_latency_ms": 771,
    "first_check_in_window": "2026-11-21T16:02:00.745Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "ae12a870bbfcecd5285123b0848985931fe11c24fefd29eec5ff48ec41b6ef5b",
    "tools": 11,
    "resources": 1,
    "prompts": 0,
    "first_seen": "2026-11-21T16:02:01.468Z",
    "tool_names": [
      "gdelt_search_articles",
      "gdelt_search_sentences",
      "gdelt_get_coverage_timeline",
      "gdelt_get_tone_distribution",
      "gdelt_get_coverage_breakdown",
      "gdelt_search_themes",
      "gdelt_search_tv",
      "gdelt_get_tv_breakdown",
      "gdelt_get_tv_clips",
      "gdelt_get_tv_context",
      "gdelt_list_tv_stations"
    ],
    "declared": {
      "tools": [
        {
          "name": "gdelt_search_articles",
          "title": "Search GDELT Articles",
          "description": "Search the last 3 months of global news coverage (65+ languages) using the GDELT DOC API. Fetches up to 250 articles with URL, title, source domain, language, country, the date GDELT saw each one, and social image URL, and returns every fetched article inside the requested window. Query supports full GDELT syntax: phrases (\"bird flu\"), boolean OR ((flu OR pandemic)), source country (sourcecountry:china), source language (sourcelang:spanish), domain (domain:who.int), GKG theme (theme:TAX_DISEASE_OUTBREAK — find identifiers with gdelt_search_themes), tone filter (tone<-5 for negative), proximity (near20:\"flu virus\"), and repeat (repeat3:\"outbreak\"). 250 is a hard per-call ceiling and GDELT offers no cursor: when a query fills it, re-query narrower startDatetime/endDatetime windows — the response hands back the exact windows to use. Note: this API covers only the most recent 3 months — use gdelt_search_tv for historical TV transcripts back to 2009.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query"
            ],
            "properties": {
              "sort": {
                "enum": [
                  "relevance",
                  "dateDesc",
                  "dateAsc",
                  "toneDesc",
                  "toneAsc",
                  "hybridRel"
                ],
                "type": "string",
                "default": "relevance",
                "description": "Sort order: relevance (default), dateDesc/dateAsc, toneDesc/toneAsc, or hybridRel (GDELT hybrid relevance and recency)."
              },
              "query": {
                "type": "string",
                "pattern": "\\S",
                "description": "Search query. Supports GDELT operators: phrases (\"bird flu\"), boolean OR ((flu OR pandemic)), sourcecountry:china, sourcelang:spanish, domain:who.int, theme:TAX_DISEASE_OUTBREAK (GKG theme identifiers come from gdelt_search_themes), tone<-5, near20:\"flu virus\", repeat3:\"outbreak\"."
              },
              "timespan": {
                "type": "string",
                "description": "Time window relative to now, a number followed by its unit, minimum \"15min\"; other examples: \"24h\", \"7d\", \"1m\". Ignored when startDatetime/endDatetime are set. Article search reaches back 3 months, the full DOC API window: a longer timespan is sent as given and runs on 3 months, disclosed in windowClamp. Defaults to the full 3-month window."
              },
              "maxRecords": {
                "type": "number",
                "default": 75,
                "minimum": 1,
                "multipleOf": 1,
                "description": "Maximum number of articles to fetch. Defaults to 75; values above 250 run at 250 with a limitClamp disclosure unless clamping is disabled. Every fetched in-window record is returned. 250 is GDELT's hard per-call ceiling, with no cursor; split a query that fills it into narrower startDatetime/endDatetime windows."
              },
              "endDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "End of date range in GDELT format YYYYMMDDHHMMSS — exactly 14 digits, no separators (e.g. 20240131235959). Must be supplied together with startDatetime; supplying only one of the two is rejected. The window must span at least 30 minutes, the shortest the GDELT DOC API accepts; a shorter one is answered from the server's local GKG mirror where one runs, and refused otherwise."
              },
              "startDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "Start of date range in GDELT format YYYYMMDDHHMMSS — exactly 14 digits, no separators (e.g. 20240101000000). Must be supplied together with endDatetime; supplying only one of the two is rejected. The window must span at least 30 minutes, the shortest the GDELT DOC API accepts; a shorter one is answered from the server's local GKG mirror where one runs, and refused otherwise."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "articles",
                  "effectiveQuery",
                  "totalCount"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "invalid_date_range",
                          "invalid_query",
                          "gdelt_rate_limited",
                          "gdelt_unavailable"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `invalid_date_range`: Only one of startDatetime / endDatetime was supplied, one of them is not a real UTC calendar timestamp, startDatetime is not earlier than endDatetime, or the window spans under the 30 minutes the GDELT DOC API accepts and no local GKG mirror answers it in DOC's place. `invalid_query`: GDELT rejected the query string as malformed — bad keyword length, unbalanced parentheses, or an illegal character. `gdelt_rate_limited`: GDELT rejected the request for its one-request-per-five-seconds limit, or too many requests were already queued for this one to start in time. `gdelt_unavailable`: GDELT DOC API is unreachable or temporarily returned no usable data. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "notice": {
                "type": "string",
                "description": "Guidance on an incomplete or empty result. When no articles matched, how to broaden the query or window. When GDELT returned articles dated outside an explicit startDatetime/endDatetime window, how many were dropped. When the maxRecords cap was reached, raise maxRecords below the 250 ceiling or narrow the date window at it. When the server's local GKG mirror answered (source: gkg_mirror), why, and how its answer differs from the DOC API's. Absent when a non-empty result set from the DOC API is below the cap and no article was dropped as out of window."
              },
              "source": {
                "enum": [
                  "doc_api",
                  "gkg_mirror"
                ],
                "type": "string",
                "description": "Where this answer came from: doc_api, the GDELT DOC API, or gkg_mirror, the server's local mirror of GDELT's Global Knowledge Graph, which answers when the DOC API refuses the request or returns nothing, and in its place when the startDatetime/endDatetime window is under the 30 minutes the DOC API accepts. Present on every answer while the server runs a mirror; absent otherwise."
              },
              "articles": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "url",
                    "title",
                    "seendate",
                    "domain",
                    "language",
                    "sourcecountry"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "Article URL."
                    },
                    "title": {
                      "type": "string",
                      "description": "Article title."
                    },
                    "domain": {
                      "type": "string",
                      "description": "Source domain (e.g. \"nytimes.com\")."
                    },
                    "language": {
                      "type": "string",
                      "description": "Article language (e.g. \"English\", \"Spanish\")."
                    },
                    "seendate": {
                      "type": "string",
                      "description": "When GDELT saw the article, in GDELT format (YYYYMMDDTHHMMSSZ) — not its publication time; an old article can carry a recent seendate."
                    },
                    "socialimage": {
                      "type": "string",
                      "description": "Social sharing image URL when provided by the source."
                    },
                    "sourcecountry": {
                      "type": "string",
                      "description": "Country of the source outlet (e.g. \"United States\")."
                    }
                  },
                  "description": "A single news article with metadata.",
                  "additionalProperties": false
                },
                "description": "Matching articles sorted per the sort parameter."
              },
              "attempts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "source",
                    "outcome"
                  ],
                  "properties": {
                    "detail": {
                      "type": "string",
                      "description": "Why, when the outcome has a reason: DOC's failure message or the mirror's."
                    },
                    "source": {
                      "enum": [
                        "doc_api",
                        "gkg_mirror"
                      ],
                      "type": "string",
                      "description": "The source tried."
                    },
                    "outcome": {
                      "enum": [
                        "answered",
                        "empty",
                        "rate_limited",
                        "unavailable",
                        "window_too_short",
                        "not_ready",
                        "not_compiled",
                        "outside_coverage",
                        "store_error"
                      ],
                      "type": "string",
                      "description": "What the source did: answered, empty (answered with no matches), rate_limited, or unavailable; window_too_short when the DOC API was not asked because the window is under the 30 minutes it accepts; or why the mirror could not answer: not_ready (no completed sync), not_compiled (the query or its timespan is in a form the mirror cannot evaluate), outside_coverage (the window lies outside the days it holds), store_error."
                    }
                  },
                  "description": "One source's outcome for this call.",
                  "additionalProperties": false
                },
                "description": "Each source tried for this call, in order. Present only when the DOC API did not answer with data and the mirror was consulted."
              },
              "coverage": {
                "type": "object",
                "required": [
                  "requestedStart",
                  "requestedEnd",
                  "answeredStart",
                  "answeredEnd",
                  "missingSlots"
                ],
                "properties": {
                  "answeredEnd": {
                    "type": "string",
                    "description": "End of the window the mirror answered, ISO 8601 UTC."
                  },
                  "missingSlots": {
                    "type": "number",
                    "description": "15-minute GKG slots inside the answered window that the mirror holds no data for."
                  },
                  "requestedEnd": {
                    "type": "string",
                    "description": "End of the requested window, ISO 8601 UTC."
                  },
                  "answeredStart": {
                    "type": "string",
                    "description": "Start of the window the mirror answered, ISO 8601 UTC."
                  },
                  "requestedStart": {
                    "type": "string",
                    "description": "Start of the requested window, ISO 8601 UTC."
                  }
                },
                "description": "Present only when the mirror answered less than the requested window. Every count, share, and article in this response comes from answeredStart through answeredEnd; nothing outside it, or in a missing slot, was counted.",
                "additionalProperties": false
              },
              "timespan": {
                "type": "string",
                "description": "Echoed timespan parameter when provided."
              },
              "limitClamp": {
                "type": "object",
                "required": [
                  "parameter",
                  "requested",
                  "applied"
                ],
                "properties": {
                  "applied": {
                    "type": "number",
                    "description": "The per-call cap the call ran with instead."
                  },
                  "parameter": {
                    "enum": [
                      "maxRecords",
                      "limit"
                    ],
                    "type": "string",
                    "description": "The count input that was clamped."
                  },
                  "requested": {
                    "type": "number",
                    "description": "The value the call asked for."
                  }
                },
                "description": "Present only when the requested count exceeded the per-call cap: the call ran exactly as a call at the cap, and every count, notice, and continuation in this response reflects the applied value.",
                "additionalProperties": false
              },
              "totalCount": {
                "type": "number",
                "description": "Number of articles returned in this response."
              },
              "windowClamp": {
                "type": "object",
                "required": [
                  "parameter",
                  "requested",
                  "applied"
                ],
                "properties": {
                  "applied": {
                    "type": "string",
                    "description": "The window the search ran on, in the form of the requested value."
                  },
                  "parameter": {
                    "enum": [
                      "timespan",
                      "startDatetime"
                    ],
                    "type": "string",
                    "description": "The window input that was clamped."
                  },
                  "requested": {
                    "type": "string",
                    "description": "The value the call asked for."
                  }
                },
                "description": "Present only when the requested window reached further back than the API searches: the search ran on the applied window instead, and every count, notice, and continuation in this response reflects it. Absent when the search ran on the window requested.",
                "additionalProperties": false
              },
              "staleResponse": {
                "type": "object",
                "required": [
                  "fetchedAt",
                  "ageSeconds",
                  "reason"
                ],
                "properties": {
                  "reason": {
                    "enum": [
                      "gdelt_rate_limited",
                      "gdelt_unavailable",
                      "gdelt_empty"
                    ],
                    "type": "string",
                    "description": "Why the refetch was not used: GDELT rate-limited it, did not answer with data, or answered empty — which GDELT also does under load."
                  },
                  "fetchedAt": {
                    "type": "string",
                    "description": "ISO 8601 time GDELT returned the stored answer."
                  },
                  "ageSeconds": {
                    "type": "number",
                    "description": "Age of the stored answer when served, in whole seconds."
                  }
                },
                "description": "Present only when the refetch of this exact request was refused, failed, or came back empty, and the response is GDELT's stored answer from fetchedAt instead. It holds nothing published after fetchedAt; a relative timespan covers the window ending at fetchedAt, not now. Absent on a live answer.",
                "additionalProperties": false
              },
              "effectiveQuery": {
                "type": "string",
                "description": "Echoed query string for use in follow-up calls."
              },
              "continuationWindows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "startDatetime",
                    "endDatetime"
                  ],
                  "properties": {
                    "endDatetime": {
                      "type": "string",
                      "description": "End of this window in GDELT format YYYYMMDDHHMMSS."
                    },
                    "startDatetime": {
                      "type": "string",
                      "description": "Start of this window in GDELT format YYYYMMDDHHMMSS."
                    }
                  },
                  "description": "One window to re-query with the same query string.",
                  "additionalProperties": false
                },
                "description": "Windows to re-run this query against when maxRecords reaches its 250 ceiling: the queried window halved, overlapping by one second so no article falls through the seam. De-duplicate by url. Absent when no window is known or narrowing cannot reach further articles."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "gdelt_search_sentences",
          "title": "Search GDELT Sentences",
          "description": "Search the sentences of the last 72 hours of English-language news coverage with the GDELT Context 2.0 API, to read what coverage actually said. Every query term must fall inside one sentence; each match returns that sentence, the text around it, and its article URL, title, domain, and seen date — one sentence per article. Matches come newest first (dateDesc) or oldest first (dateAsc); there is no relevance ranking. maxRecords counts matching sentences before GDELT keeps one per article, so pages run short, and a page that is not every match hands back continuationWindow, the startDatetime/endDatetime that reaches the next matches. GDELT reads window bounds only to the minute, so a page whose matches all fall in one minute cannot be continued inside it: raise maxRecords, and at its 200 ceiling continuationWindow skips past that minute. Query operators: phrases (\"bird flu\"), OR groups ((ukraine OR gaza) ceasefire), -term to exclude an exact word, near5:\"trump putin\", and repeat2:\"ukraine\"; quotesOnly keeps sentences holding a quotation mark. For the DOC-only filters (sourcecountry:, sourcelang:, theme:, tone), domain filtering, other languages, or coverage older than 72 hours, use gdelt_search_articles.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query"
            ],
            "properties": {
              "sort": {
                "enum": [
                  "dateDesc",
                  "dateAsc"
                ],
                "type": "string",
                "default": "dateDesc",
                "description": "dateDesc (default) returns the newest matches first, dateAsc the oldest. The Context API has no relevance order."
              },
              "query": {
                "type": "string",
                "pattern": "\\S",
                "description": "Words and phrases that must all appear in one sentence. Supports phrases (\"bird flu\"), OR groups ((ukraine OR gaza) ceasefire), -term to exclude an exact word (-russia still matches \"Russian\"), near5:\"trump putin\" (words within about five words of each other), and repeat2:\"ukraine\" (a word at least twice). GDELT refuses the DOC-only operators sourcecountry:, sourcelang:, theme:, and tone here."
              },
              "timespan": {
                "type": "string",
                "description": "Window counting back from now: a whole number followed by min, h, hours, d, or days, in any case, from 31min to 72h (e.g. \"6h\", \"3days\"). A longer one runs as 72h with a windowClamp disclosure; a shorter one, or another unit such as w or m, is refused. Defaults to 72h. Ignored when startDatetime/endDatetime are set."
              },
              "maxRecords": {
                "type": "number",
                "default": 25,
                "minimum": 1,
                "multipleOf": 1,
                "description": "Matching sentences to request. Defaults to 25. GDELT counts sentences before keeping one per article, so a page usually holds fewer matches; follow continuationWindow for the rest. Values above 200 run at 200 with a limitClamp disclosure unless clamping is disabled."
              },
              "quotesOnly": {
                "type": "boolean",
                "default": false,
                "description": "Keep only sentences holding a quotation mark. The sentence may hold only part of a longer quotation."
              },
              "endDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "End of an explicit window in GDELT format YYYYMMDDHHMMSS (UTC, exactly 14 digits). Must pair with startDatetime. A window ending before the last 72 hours is refused."
              },
              "startDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "Start of an explicit window in GDELT format YYYYMMDDHHMMSS (UTC, exactly 14 digits). Must pair with endDatetime. A start older than 72 hours runs from 5 minutes inside the reach, disclosed in windowClamp. A window under 60 minutes goes upstream widened, and matches outside it are dropped."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "matches",
                  "effectiveQuery",
                  "totalCount"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "invalid_date_range",
                          "invalid_query",
                          "gdelt_rate_limited",
                          "gdelt_unavailable"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `invalid_date_range`: Only one of startDatetime / endDatetime was supplied, one of them is not a real UTC calendar timestamp, startDatetime is not earlier than endDatetime or not in the past, or the window ends before the last 72 hours the Context API searches. `invalid_query`: GDELT rejected the query — a DOC-only operator, sourcelang:, an overly short, long, or common keyword, or malformed syntax — or the timespan is not a whole number followed by min, h, hours, d, or days, or is shorter than 31 minutes. `gdelt_rate_limited`: GDELT rejected the request for its one-request-per-five-seconds limit, or too many requests were already queued for this one to start in time. `gdelt_unavailable`: GDELT Context API is unreachable or temporarily returned no usable data. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "notice": {
                "type": "string",
                "description": "Guidance on this page: when nothing matched, how to broaden the query or window; when GDELT returned matches outside an explicit window — it reads window bounds only to the minute, and a window under 60 minutes goes out widened — how many were dropped; when continuationWindow is present, that this page is not every match; when the page reached past the far edge of its window, that it holds every match in it; and when no narrower window reaches further matches, why, and whether a larger maxRecords helps — or, at the 200 ceiling, that continuationWindow skips the rest of the one minute every match on the page fell in."
              },
              "matches": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "url",
                    "title",
                    "seendate",
                    "domain",
                    "language",
                    "isquote",
                    "sentence",
                    "context"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "Article URL."
                    },
                    "title": {
                      "type": "string",
                      "description": "Article title."
                    },
                    "domain": {
                      "type": "string",
                      "description": "Source domain (e.g. \"nytimes.com\")."
                    },
                    "context": {
                      "type": "string",
                      "description": "The sentence with the text around it, exactly as GDELT returned it."
                    },
                    "isquote": {
                      "type": "boolean",
                      "description": "True when the sentence holds a quotation mark."
                    },
                    "language": {
                      "type": "string",
                      "description": "Article language as GDELT names it (e.g. \"ENGLISH\")."
                    },
                    "seendate": {
                      "type": "string",
                      "description": "When GDELT saw the article, in GDELT format (YYYYMMDDTHHMMSSZ) — not its publication time; an old article can carry a recent seendate."
                    },
                    "sentence": {
                      "type": "string",
                      "description": "The matching sentence, exactly as GDELT returned it."
                    },
                    "socialimage": {
                      "type": "string",
                      "description": "Social sharing image URL. Absent when the article has none."
                    }
                  },
                  "description": "One matching sentence and the article it came from.",
                  "additionalProperties": false
                },
                "description": "One matching sentence per article, in the requested date order."
              },
              "timespan": {
                "type": "string",
                "description": "The timespan the request ran with: the one sent, trimmed, or 72h when none was sent or a longer one was clamped. Absent when startDatetime/endDatetime were used."
              },
              "limitClamp": {
                "type": "object",
                "required": [
                  "parameter",
                  "requested",
                  "applied"
                ],
                "properties": {
                  "applied": {
                    "type": "number",
                    "description": "The per-call cap the call ran with instead."
                  },
                  "parameter": {
                    "enum": [
                      "maxRecords",
                      "limit"
                    ],
                    "type": "string",
                    "description": "The count input that was clamped."
                  },
                  "requested": {
                    "type": "number",
                    "description": "The value the call asked for."
                  }
                },
                "description": "Present only when the requested count exceeded the per-call cap: the call ran exactly as a call at the cap, and every count, notice, and continuation in this response reflects the applied value.",
                "additionalProperties": false
              },
              "totalCount": {
                "type": "number",
                "description": "Number of matches returned in this response."
              },
              "windowClamp": {
                "type": "object",
                "required": [
                  "parameter",
                  "requested",
                  "applied"
                ],
                "properties": {
                  "applied": {
                    "type": "string",
                    "description": "The window the search ran on, in the form of the requested value."
                  },
                  "parameter": {
                    "enum": [
                      "timespan",
                      "startDatetime"
                    ],
                    "type": "string",
                    "description": "The window input that was clamped."
                  },
                  "requested": {
                    "type": "string",
                    "description": "The value the call asked for."
                  }
                },
                "description": "Present only when the requested window reached further back than the API searches: the search ran on the applied window instead, and every count, notice, and continuation in this response reflects it. Absent when the search ran on the window requested.",
                "additionalProperties": false
              },
              "staleResponse": {
                "type": "object",
                "required": [
                  "fetchedAt",
                  "ageSeconds",
                  "reason"
                ],
                "properties": {
                  "reason": {
                    "enum": [
                      "gdelt_rate_limited",
                      "gdelt_unavailable",
                      "gdelt_empty"
                    ],
                    "type": "string",
                    "description": "Why the refetch was not used: GDELT rate-limited it, did not answer with data, or answered empty — which GDELT also does under load."
                  },
                  "fetchedAt": {
                    "type": "string",
                    "description": "ISO 8601 time GDELT returned the stored answer."
                  },
                  "ageSeconds": {
                    "type": "number",
                    "description": "Age of the stored answer when served, in whole seconds."
                  }
                },
                "description": "Present only when the refetch of this exact request was refused, failed, or came back empty, and the response is GDELT's stored answer from fetchedAt instead. It holds nothing published after fetchedAt; a relative timespan covers the window ending at fetchedAt, not now. Absent on a live answer.",
                "additionalProperties": false
              },
              "effectiveQuery": {
                "type": "string",
                "description": "Echoed query string for use in follow-up calls."
              },
              "continuationWindow": {
                "type": "object",
                "required": [
                  "startDatetime",
                  "endDatetime"
                ],
                "properties": {
                  "endDatetime": {
                    "type": "string",
                    "description": "End of the next window in GDELT format YYYYMMDDHHMMSS."
                  },
                  "startDatetime": {
                    "type": "string",
                    "description": "Start of the next window in GDELT format YYYYMMDDHHMMSS."
                  }
                },
                "description": "The window that reaches the next matches: re-run the same call with these as startDatetime and endDatetime. GDELT reads window bounds only to the minute, so under dateDesc it ends on the whole minute at or after the oldest match on this page and under dateAsc starts on the whole minute at or before the newest; matches seen in that minute can repeat — de-duplicate by url. On a page at the 200 maxRecords ceiling whose matches all fall in one minute, it skips past that minute instead, since no window reaches the rest of it. Absent on an empty page, on a page that holds every match in its window, and when no narrower window reaches further matches.",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "gdelt_get_coverage_timeline",
          "title": "Get GDELT Coverage Timeline",
          "description": "Retrieve a time series showing when news coverage of a topic spiked, or how average tone shifted over time. Use mode \"volume\" for normalized coverage intensity (% of all global coverage per timestep). Use \"volume_raw\" for distinct matching-article counts per timestep and norm, the unsmoothed monitored-article denominator; smoothed counts are moving averages. Use mode \"volume_with_articles\" for the same signal plus the top articles that drove each spike — this is the primary signal-detection mode: a single call reveals both the spike and its cause, avoiding a follow-up gdelt_search_articles call. Use mode \"tone\" for average sentiment score per timestep (negative = hostile/fearful, positive = celebratory). Date resolution is the one GDELT reports, or else inferred from returned intervals: 15 minutes or hours for short windows, days for longer ones. GDELT answers a timestep without matching coverage with 0 and leaves out a timestep its own data lacks; missingTimesteps counts those left out between the first and last returned. In volume_with_articles mode each timestep carries its first 3 article links and referenceCount, the number of references GDELT supplied (up to ten), not all matching articles; name timesteps' dates in points to get only those timesteps, each with its full supplied list. A response carries limit timesteps (default 10, cap 400); when more remain it returns nextOffset — pass it back as offset with otherwise identical inputs for the next page. Explicit startDatetime/endDatetime windows may predate the last 3 months in \"volume\" and \"tone\" modes; \"volume_raw\" and \"volume_with_articles\" cover only the last 3 months.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query"
            ],
            "properties": {
              "mode": {
                "enum": [
                  "volume",
                  "volume_raw",
                  "volume_with_articles",
                  "tone"
                ],
                "type": "string",
                "default": "volume",
                "description": "Timeline mode: \"volume\" returns normalized coverage % per timestep, \"volume_raw\" returns distinct matching-article counts (moving averages when smoothed) and the unsmoothed monitored denominator norm, \"volume_with_articles\" returns volume plus top articles per spike (best for signal detection), \"tone\" returns average sentiment score per timestep."
              },
              "limit": {
                "type": "number",
                "default": 10,
                "minimum": 1,
                "multipleOf": 1,
                "description": "Maximum timesteps per page (default 10, cap 400). Larger counts clamp with limitClamp; strict deployments reject them."
              },
              "query": {
                "type": "string",
                "pattern": "\\S",
                "description": "Search query using GDELT syntax. Same operators as gdelt_search_articles: phrases, boolean OR, sourcecountry:, sourcelang:, domain:, theme: (GKG theme identifiers come from gdelt_search_themes), tone<."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Zero-based timestep offset — into the timeline, or into the timesteps named in points. Pass nextOffset from the preceding response, with otherwise identical inputs, to get the next page."
              },
              "points": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Timestep dates to return alone, e.g. [\"2024-01-05T12:00:00Z\"]. Take them verbatim from series[].data[].date in a prior response, or from the list an unknown_point error prints. The response then carries only these timesteps, in timeline order, and in volume_with_articles mode each carries its complete article list instead of the first 3. A date matching no timestep is rejected rather than silently ignored."
              },
              "timespan": {
                "type": "string",
                "description": "Time window relative to now, a number followed by its unit, minimum \"15min\"; other examples: \"24h\", \"7d\", \"1m\". Ignored when startDatetime/endDatetime are set. Maximum 3 months."
              },
              "smoothing": {
                "type": "integer",
                "maximum": 30,
                "minimum": 0,
                "description": "Trailing moving-average width in timesteps (0–30; 0 or 1 leaves values unsmoothed). Width N needs N source steps, omitting leading steps without a full window and potentially shifting peaks later."
              },
              "endDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "End datetime in GDELT format YYYYMMDDHHMMSS — exactly 14 digits, no separators (e.g. 20240131235959). Must pair with startDatetime; supplying only one of the two is rejected. In \"volume\" and \"tone\" modes the window may predate the last 3 months; \"volume_raw\" and \"volume_with_articles\" cover only the last 3 months. The window must span at least 30 minutes, the shortest the GDELT DOC API accepts; a shorter one is answered from the server's local GKG mirror where one runs, and refused otherwise."
              },
              "startDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "Start datetime in GDELT format YYYYMMDDHHMMSS — exactly 14 digits, no separators (e.g. 20240101000000). Must pair with endDatetime; supplying only one of the two is rejected. In \"volume\" and \"tone\" modes the window may predate the last 3 months; \"volume_raw\" and \"volume_with_articles\" cover only the last 3 months. The window must span at least 30 minutes, the shortest the GDELT DOC API accepts; a shorter one is answered from the server's local GKG mirror where one runs, and refused otherwise."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "series",
                  "effectiveQuery",
                  "mode",
                  "totalCount"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "mode": {
                "enum": [
                  "volume",
                  "volume_raw",
                  "volume_with_articles",
                  "tone"
                ],
                "type": "string",
                "description": "Timeline mode used for this response."
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "unknown_point",
                          "offset_out_of_range",
                          "invalid_date_range",
                          "invalid_query",
                          "gdelt_rate_limited",
                          "gdelt_unavailable"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `unknown_point`: A date passed in the points input matches no timestep in a non-empty timeline. `offset_out_of_range`: The requested offset is at or beyond the last timestep of a non-empty timeline, or of the timesteps named in points. `invalid_date_range`: Only one of startDatetime / endDatetime was supplied, one of them is not a real UTC calendar timestamp, startDatetime is not earlier than endDatetime, or the window spans under the 30 minutes the GDELT DOC API accepts and no local GKG mirror answers it in DOC's place. `invalid_query`: GDELT rejected the query string as malformed — bad keyword length, unbalanced parentheses, or an illegal character. `gdelt_rate_limited`: GDELT rejected the request for its one-request-per-five-seconds limit, or too many requests were already queued for this one to start in time. `gdelt_unavailable`: GDELT DOC API is unreachable or temporarily returned no usable data. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "notice": {
                "type": "string",
                "description": "Guidance when the query matched no coverage in the window — how to broaden the query or extend the window — or, when this response is one page of several, which timesteps it returned out of how many. Which timesteps GDELT left out of the timeline (see missingTimesteps), and what smoothing omits. When the server's local GKG mirror answered (source: gkg_mirror), why, and how its figures differ from the DOC API's. Absent when the DOC API answered a complete, unsmoothed timeline that fit in one response."
              },
              "series": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "label",
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "date",
                          "value"
                        ],
                        "properties": {
                          "date": {
                            "type": "string",
                            "description": "Timestep in ISO 8601 format."
                          },
                          "norm": {
                            "type": "number",
                            "description": "Total articles monitored at this timestep, unsmoothed even when value is smoothed. Present only in volume_raw mode."
                          },
                          "value": {
                            "type": "number",
                            "description": "Normalized coverage % (volume or volume_with_articles), distinct matching-article count (volume_raw; a moving average when smoothed), or average tone score (tone mode). Tone range is approximately -100 to +100."
                          },
                          "articles": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "url",
                                "title"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "description": "Article URL."
                                },
                                "title": {
                                  "type": "string",
                                  "description": "Article title."
                                }
                              },
                              "description": "An article linked to this spike.",
                              "additionalProperties": false
                            },
                            "description": "Top articles driving coverage at this timestep — the first 3, or all of them for a timestep named in points. Present only in volume_with_articles mode."
                          },
                          "referenceCount": {
                            "type": "number",
                            "description": "Number of article references GDELT supplied for this timestep (up to ten), not all matching articles; articles carries the first 3 unless the timestep was named in points. Present whenever articles is."
                          }
                        },
                        "description": "A single time-series data point.",
                        "additionalProperties": false
                      },
                      "description": "Time-ordered data points of this series returned in this response."
                    },
                    "peak": {
                      "type": "object",
                      "required": [
                        "date",
                        "value"
                      ],
                      "properties": {
                        "date": {
                          "type": "string",
                          "description": "Timestep of the peak, in ISO 8601 format."
                        },
                        "norm": {
                          "type": "number",
                          "description": "Unsmoothed monitored-article denominator at the peak in volume_raw mode."
                        },
                        "value": {
                          "type": "number",
                          "description": "Value at the peak timestep."
                        }
                      },
                      "description": "The point of the whole series with the largest absolute value, across every page — it may lie outside data. Omitted when the series has no points.",
                      "additionalProperties": false
                    },
                    "label": {
                      "type": "string",
                      "description": "Series label (e.g. \"Volume Intensity\" or \"Average Tone\")."
                    },
                    "pointCount": {
                      "type": "number",
                      "description": "Data points in the whole series, across every page — not only those in data. Present whenever the series has points."
                    }
                  },
                  "description": "A single time series with a label and data points.",
                  "additionalProperties": false
                },
                "description": "One or more time series (typically one for volume/tone), holding the timesteps of this page."
              },
              "source": {
                "enum": [
                  "doc_api",
                  "gkg_mirror"
                ],
                "type": "string",
                "description": "Where this answer came from: doc_api, the GDELT DOC API, or gkg_mirror, the server's local mirror of GDELT's Global Knowledge Graph, which answers when the DOC API refuses the request or returns nothing, and in its place when the startDatetime/endDatetime window is under the 30 minutes the DOC API accepts. Present on every answer while the server runs a mirror; absent otherwise."
              },
              "attempts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "source",
                    "outcome"
                  ],
                  "properties": {
                    "detail": {
                      "type": "string",
                      "description": "Why, when the outcome has a reason: DOC's failure message or the mirror's."
                    },
                    "source": {
                      "enum": [
                        "doc_api",
                        "gkg_mirror"
                      ],
                      "type": "string",
                      "description": "The source tried."
                    },
                    "outcome": {
                      "enum": [
                        "answered",
                        "empty",
                        "rate_limited",
                        "unavailable",
                        "window_too_short",
                        "not_ready",
                        "not_compiled",
                        "outside_coverage",
                        "store_error"
                      ],
                      "type": "string",
                      "description": "What the source did: answered, empty (answered with no matches), rate_limited, or unavailable; window_too_short when the DOC API was not asked because the window is under the 30 minutes it accepts; or why the mirror could not answer: not_ready (no completed sync), not_compiled (the query or its timespan is in a form the mirror cannot evaluate), outside_coverage (the window lies outside the days it holds), store_error."
                    }
                  },
                  "description": "One source's outcome for this call.",
                  "additionalProperties": false
                },
                "description": "Each source tried for this call, in order. Present only when the DOC API did not answer with data and the mirror was consulted."
              },
              "coverage": {
                "type": "object",
                "required": [
                  "requestedStart",
                  "requestedEnd",
                  "answeredStart",
                  "answeredEnd",
                  "missingSlots"
                ],
                "properties": {
                  "answeredEnd": {
                    "type": "string",
                    "description": "End of the window the mirror answered, ISO 8601 UTC."
                  },
                  "missingSlots": {
                    "type": "number",
                    "description": "15-minute GKG slots inside the answered window that the mirror holds no data for."
                  },
                  "requestedEnd": {
                    "type": "string",
                    "description": "End of the requested window, ISO 8601 UTC."
                  },
                  "answeredStart": {
                    "type": "string",
                    "description": "Start of the window the mirror answered, ISO 8601 UTC."
                  },
                  "requestedStart": {
                    "type": "string",
                    "description": "Start of the requested window, ISO 8601 UTC."
                  }
                },
                "description": "Present only when the mirror answered less than the requested window. Every count, share, and article in this response comes from answeredStart through answeredEnd; nothing outside it, or in a missing slot, was counted.",
                "additionalProperties": false
              },
              "limitClamp": {
                "type": "object",
                "required": [
                  "parameter",
                  "requested",
                  "applied"
                ],
                "properties": {
                  "applied": {
                    "type": "number",
                    "description": "The per-call cap the call ran with instead."
                  },
                  "parameter": {
                    "enum": [
                      "maxRecords",
                      "limit"
                    ],
                    "type": "string",
                    "description": "The count input that was clamped."
                  },
                  "requested": {
                    "type": "number",
                    "description": "The value the call asked for."
                  }
                },
                "description": "Present only when the requested count exceeded the per-call cap: the call ran exactly as a call at the cap, and every count, notice, and continuation in this response reflects the applied value.",
                "additionalProperties": false
              },
              "nextOffset": {
                "type": "number",
                "description": "Offset of the next page, for the same inputs. Absent when this page reaches the last timestep."
              },
              "totalCount": {
                "type": "number",
                "description": "Total number of data points across all series of the full timeline, not this page."
              },
              "endDatetime": {
                "type": "string",
                "description": "Echoed end datetime when provided (YYYYMMDDHHMMSS)."
              },
              "staleResponse": {
                "type": "object",
                "required": [
                  "fetchedAt",
                  "ageSeconds",
                  "reason"
                ],
                "properties": {
                  "reason": {
                    "enum": [
                      "gdelt_rate_limited",
                      "gdelt_unavailable",
                      "gdelt_empty"
                    ],
                    "type": "string",
                    "description": "Why the refetch was not used: GDELT rate-limited it, did not answer with data, or answered empty — which GDELT also does under load."
                  },
                  "fetchedAt": {
                    "type": "string",
                    "description": "ISO 8601 time GDELT returned the stored answer."
                  },
                  "ageSeconds": {
                    "type": "number",
                    "description": "Age of the stored answer when served, in whole seconds."
                  }
                },
                "description": "Present only when the refetch of this exact request was refused, failed, or came back empty, and the response is GDELT's stored answer from fetchedAt instead. It holds nothing published after fetchedAt; a relative timespan covers the window ending at fetchedAt, not now. Absent on a live answer.",
                "additionalProperties": false
              },
              "startDatetime": {
                "type": "string",
                "description": "Echoed start datetime when provided (YYYYMMDDHHMMSS)."
              },
              "dateResolution": {
                "enum": [
                  "15min",
                  "hour",
                  "day"
                ],
                "type": "string",
                "description": "Temporal resolution of the data points — 15min, hour, or day — as GDELT reports it, or else inferred from the spacing of the returned timesteps. Omitted when GDELT reports none and fewer than two distinct timesteps came back."
              },
              "effectiveQuery": {
                "type": "string",
                "description": "Echoed query string for use in follow-up calls."
              },
              "expandedPoints": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Timestep dates this response is restricted to, each carrying its full article list — echoing the points input. Omitted when points was not supplied."
              },
              "missingTimesteps": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Timesteps GDELT left out between the first and last timestep of the whole timeline, at dateResolution — gaps in GDELT's data, not zero coverage, which GDELT returns as 0. The notice names each missing run. The same on every page and under points. Omitted when none are missing, and never reported for an answer from the local GKG mirror.",
                "exclusiveMinimum": 0
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "gdelt_get_tone_distribution",
          "title": "Get GDELT Tone Distribution",
          "description": "Get the tonal distribution of articles matching a query as a histogram (bins approximately -30 to +30). Unlike a single average tone score, the histogram reveals whether coverage is uniformly negative, bimodal (some articles extremely positive and some extremely negative), or clustered near neutral. Each bin carries its first 3 representative article links and referenceCount, how many GDELT returned; name bins in the bins input to get only those bins, each with every link. A response carries limit bins (default 10, cap 400); when more remain it returns nextOffset — pass it back as offset with otherwise identical inputs for the next page. Distinct from gdelt_get_coverage_timeline (mode: tone) — this is a snapshot distribution across all matching articles, not a time series. Use gdelt_get_coverage_timeline with mode \"tone\" to see how sentiment shifted over time.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query"
            ],
            "properties": {
              "bins": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991
                },
                "description": "Tone bins to return alone, e.g. [-7, 4]. Take them from histogram[].bin in a prior response, or from the list an unknown_bin error prints. The response then carries only these bins, in histogram order, each with every representative article link instead of the first 3. A value matching no bin is rejected rather than silently ignored."
              },
              "limit": {
                "type": "number",
                "default": 10,
                "minimum": 1,
                "multipleOf": 1,
                "description": "Maximum bins per page (default 10, cap 400). Larger counts clamp with limitClamp; strict deployments reject them."
              },
              "query": {
                "type": "string",
                "pattern": "\\S",
                "description": "Search query using GDELT syntax. Same operators as gdelt_search_articles: phrases, boolean OR, sourcecountry:, sourcelang:, domain:, theme: (GKG theme identifiers come from gdelt_search_themes)."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Zero-based bin offset — into the histogram, or into the bins named in bins. Pass nextOffset from the preceding response, with otherwise identical inputs, to get the next page."
              },
              "timespan": {
                "type": "string",
                "description": "Time window relative to now, a number followed by its unit, minimum \"15min\"; other examples: \"24h\", \"7d\", \"1m\". Ignored when startDatetime/endDatetime are set. Maximum 3 months."
              },
              "endDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "End datetime in GDELT format YYYYMMDDHHMMSS — exactly 14 digits, no separators (e.g. 20240131235959). Must pair with startDatetime; supplying only one of the two is rejected. The window may predate the last 3 months. The window must span at least 30 minutes, the shortest the GDELT DOC API accepts; a shorter one is answered from the server's local GKG mirror where one runs, and refused otherwise."
              },
              "startDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "Start datetime in GDELT format YYYYMMDDHHMMSS — exactly 14 digits, no separators (e.g. 20240101000000). Must pair with endDatetime; supplying only one of the two is rejected. The window may predate the last 3 months. The window must span at least 30 minutes, the shortest the GDELT DOC API accepts; a shorter one is answered from the server's local GKG mirror where one runs, and refused otherwise."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "histogram",
                  "summary",
                  "effectiveQuery",
                  "totalCount"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "unknown_bin",
                          "offset_out_of_range",
                          "invalid_date_range",
                          "invalid_query",
                          "gdelt_rate_limited",
                          "gdelt_unavailable"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `unknown_bin`: A value passed in the bins input matches no bin in a non-empty histogram. `offset_out_of_range`: The requested offset is at or beyond the last bin of a non-empty histogram, or of the bins named in bins. `invalid_date_range`: Only one of startDatetime / endDatetime was supplied, one of them is not a real UTC calendar timestamp, startDatetime is not earlier than endDatetime, or the window spans under the 30 minutes the GDELT DOC API accepts and no local GKG mirror answers it in DOC's place. `invalid_query`: GDELT rejected the query string as malformed — bad keyword length, unbalanced parentheses, or an illegal character. `gdelt_rate_limited`: GDELT rejected the request for its one-request-per-five-seconds limit, or too many requests were already queued for this one to start in time. `gdelt_unavailable`: GDELT DOC API is unreachable or temporarily returned no usable data. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "notice": {
                "type": "string",
                "description": "Guidance when no articles matched in the window — how to broaden the query or extend the window — or, when this response is one page of several, which bins it returned out of how many. When the server's local GKG mirror answered (source: gkg_mirror), why, and how its figures differ from the DOC API's. Absent when the DOC API answered and the whole histogram fit in one response."
              },
              "source": {
                "enum": [
                  "doc_api",
                  "gkg_mirror"
                ],
                "type": "string",
                "description": "Where this answer came from: doc_api, the GDELT DOC API, or gkg_mirror, the server's local mirror of GDELT's Global Knowledge Graph, which answers when the DOC API refuses the request or returns nothing, and in its place when the startDatetime/endDatetime window is under the 30 minutes the DOC API accepts. Present on every answer while the server runs a mirror; absent otherwise."
              },
              "summary": {
                "type": "object",
                "properties": {
                  "neutralPct": {
                    "type": "number",
                    "description": "Percentage of articles in the near-neutral range (bins -2 to +2). Omitted when the histogram counts no articles."
                  },
                  "peakNegativeBin": {
                    "type": "number",
                    "description": "Tone bin with the highest count among negative bins (bin < 0). Omitted when no negative bin was returned."
                  },
                  "peakPositiveBin": {
                    "type": "number",
                    "description": "Tone bin with the highest count among positive bins (bin > 0). Omitted when no positive bin was returned."
                  }
                },
                "description": "Summary statistics derived from the whole histogram, not this page. Each value is omitted when the histogram cannot support it — all of them on an empty result.",
                "additionalProperties": false
              },
              "attempts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "source",
                    "outcome"
                  ],
                  "properties": {
                    "detail": {
                      "type": "string",
                      "description": "Why, when the outcome has a reason: DOC's failure message or the mirror's."
                    },
                    "source": {
                      "enum": [
                        "doc_api",
                        "gkg_mirror"
                      ],
                      "type": "string",
                      "description": "The source tried."
                    },
                    "outcome": {
                      "enum": [
                        "answered",
                        "empty",
                        "rate_limited",
                        "unavailable",
                        "window_too_short",
                        "not_ready",
                        "not_compiled",
                        "outside_coverage",
                        "store_error"
                      ],
                      "type": "string",
                      "description": "What the source did: answered, empty (answered with no matches), rate_limited, or unavailable; window_too_short when the DOC API was not asked because the window is under the 30 minutes it accepts; or why the mirror could not answer: not_ready (no completed sync), not_compiled (the query or its timespan is in a form the mirror cannot evaluate), outside_coverage (the window lies outside the days it holds), store_error."
                    }
                  },
                  "description": "One source's outcome for this call.",
                  "additionalProperties": false
                },
                "description": "Each source tried for this call, in order. Present only when the DOC API did not answer with data and the mirror was consulted."
              },
              "coverage": {
                "type": "object",
                "required": [
                  "requestedStart",
                  "requestedEnd",
                  "answeredStart",
                  "answeredEnd",
                  "missingSlots"
                ],
                "properties": {
                  "answeredEnd": {
                    "type": "string",
                    "description": "End of the window the mirror answered, ISO 8601 UTC."
                  },
                  "missingSlots": {
                    "type": "number",
                    "description": "15-minute GKG slots inside the answered window that the mirror holds no data for."
                  },
                  "requestedEnd": {
                    "type": "string",
                    "description": "End of the requested window, ISO 8601 UTC."
                  },
                  "answeredStart": {
                    "type": "string",
                    "description": "Start of the window the mirror answered, ISO 8601 UTC."
                  },
                  "requestedStart": {
                    "type": "string",
                    "description": "Start of the requested window, ISO 8601 UTC."
                  }
                },
                "description": "Present only when the mirror answered less than the requested window. Every count, share, and article in this response comes from answeredStart through answeredEnd; nothing outside it, or in a missing slot, was counted.",
                "additionalProperties": false
              },
              "histogram": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "bin",
                    "count",
                    "articles",
                    "referenceCount"
                  ],
                  "properties": {
                    "bin": {
                      "type": "number",
                      "description": "Tone bin integer (typically -30 to +30; 0 is neutral)."
                    },
                    "count": {
                      "type": "number",
                      "description": "Number of articles in this bin."
                    },
                    "articles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "url",
                          "title"
                        ],
                        "properties": {
                          "url": {
                            "type": "string",
                            "description": "Article URL."
                          },
                          "title": {
                            "type": "string",
                            "description": "Article title."
                          }
                        },
                        "description": "A representative article for this tone bin.",
                        "additionalProperties": false
                      },
                      "description": "Representative articles in this tone bin — the first 3, or all of them for a bin named in bins."
                    },
                    "referenceCount": {
                      "type": "number",
                      "description": "How many representative articles GDELT returned for this bin; articles carries the first 3 unless the bin was named in bins."
                    }
                  },
                  "description": "A single tone histogram bin with article count and representative articles.",
                  "additionalProperties": false
                },
                "description": "The bins of this page, sorted from most negative to most positive — the whole histogram when it fits."
              },
              "limitClamp": {
                "type": "object",
                "required": [
                  "parameter",
                  "requested",
                  "applied"
                ],
                "properties": {
                  "applied": {
                    "type": "number",
                    "description": "The per-call cap the call ran with instead."
                  },
                  "parameter": {
                    "enum": [
                      "maxRecords",
                      "limit"
                    ],
                    "type": "string",
                    "description": "The count input that was clamped."
                  },
                  "requested": {
                    "type": "number",
                    "description": "The value the call asked for."
                  }
                },
                "description": "Present only when the requested count exceeded the per-call cap: the call ran exactly as a call at the cap, and every count, notice, and continuation in this response reflects the applied value.",
                "additionalProperties": false
              },
              "nextOffset": {
                "type": "number",
                "description": "Offset of the next page, for the same inputs. Absent when this page reaches the last bin."
              },
              "totalCount": {
                "type": "number",
                "description": "Total number of articles across all histogram bins, not only this page."
              },
              "endDatetime": {
                "type": "string",
                "description": "Echoed end datetime when provided (YYYYMMDDHHMMSS)."
              },
              "staleResponse": {
                "type": "object",
                "required": [
                  "fetchedAt",
                  "ageSeconds",
                  "reason"
                ],
                "properties": {
                  "reason": {
                    "enum": [
                      "gdelt_rate_limited",
                      "gdelt_unavailable",
                      "gdelt_empty"
                    ],
                    "type": "string",
                    "description": "Why the refetch was not used: GDELT rate-limited it, did not answer with data, or answered empty — which GDELT also does under load."
                  },
                  "fetchedAt": {
                    "type": "string",
                    "description": "ISO 8601 time GDELT returned the stored answer."
                  },
                  "ageSeconds": {
                    "type": "number",
                    "description": "Age of the stored answer when served, in whole seconds."
                  }
                },
                "description": "Present only when the refetch of this exact request was refused, failed, or came back empty, and the response is GDELT's stored answer from fetchedAt instead. It holds nothing published after fetchedAt; a relative timespan covers the window ending at fetchedAt, not now. Absent on a live answer.",
                "additionalProperties": false
              },
              "startDatetime": {
                "type": "string",
                "description": "Echoed start datetime when provided (YYYYMMDDHHMMSS)."
              },
              "effectiveQuery": {
                "type": "string",
                "description": "Echoed query string for use in follow-up calls."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "gdelt_get_coverage_breakdown",
          "title": "Get GDELT Coverage Breakdown",
          "description": "Break down news coverage volume over time by source language or source country, returning a multi-series time series (one series per language or country). Shows which countries or languages drove early vs. late coverage — useful for tracing how a story propagated geographically or across language communities. Ranks every series by the sum of its values and returns limit of them per page (default 10, cap 75); when more remain it returns nextOffset — pass it back as offset with otherwise identical inputs for the next page. otherSeriesLabels names every series not on the page — pass any labels as the series input to get only those series, complete. Every series carries sum (its ranking key), pointCount, and peak; includePoints: false leaves out its data points for a lighter ranking. GDELT answers a timestep without matching coverage with 0 and leaves out a timestep its own data lacks; missingTimesteps counts those left out between the first and last returned. Each series whose name maps to one GDELT source code carries operator (sourcecountry:<FIPS> or sourcelang:<language>) — add it to a gdelt_search_articles or gdelt_get_coverage_timeline query to read that source's articles or volume. Values are normalized: each point is the topic's share of that source's media output, not an absolute article count, so values from different sources do not add up to a share. Small media markets with concentrated coverage therefore rank above large markets with diverse output — a high value means the topic dominated that source's coverage, not that it published the most articles. Use breakdownBy \"country\" with the signal-detection chain to map geographic attention, or \"language\" to detect non-English media surges.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query",
              "breakdownBy"
            ],
            "properties": {
              "limit": {
                "type": "number",
                "default": 10,
                "minimum": 1,
                "multipleOf": 1,
                "description": "Maximum series per page (default 10, cap 75). Larger counts clamp with limitClamp; strict deployments reject them."
              },
              "query": {
                "type": "string",
                "pattern": "\\S",
                "description": "Search query using GDELT syntax. Same operators as gdelt_search_articles: phrases, boolean OR, sourcecountry:, sourcelang:, domain:, theme: (GKG theme identifiers come from gdelt_search_themes)."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Zero-based series offset — into the ranked overview, or into the series named in series. Pass nextOffset from the preceding response, with otherwise identical inputs, to get the next page."
              },
              "series": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Exact series labels to return instead of the ranked overview, e.g. [\"Portuguese Volume Intensity\", \"Vietnamese Volume Intensity\"]. Take them verbatim from otherSeriesLabels or topSeries[].label in a response, or from the label list an unknown_series error prints — labels, not operators, which go in query. Each one comes back complete under selectedSeries (its points left out only under includePoints: false), in the order requested (every series carrying it, when several do); a label that matches nothing is rejected rather than silently skipped. Omit to get the ranked overview."
              },
              "timespan": {
                "type": "string",
                "description": "Time window relative to now, a number followed by its unit, minimum \"15min\"; other examples: \"24h\", \"7d\", \"1m\". Ignored when startDatetime/endDatetime are set. Maximum 3 months."
              },
              "smoothing": {
                "type": "integer",
                "maximum": 30,
                "minimum": 0,
                "description": "Trailing moving-average width in timesteps (0–30; 0 or 1 leaves values unsmoothed). Width N needs N source steps, omitting leading steps without a full window and potentially shifting peaks later."
              },
              "breakdownBy": {
                "enum": [
                  "language",
                  "country"
                ],
                "type": "string",
                "description": "Breakdown dimension: \"language\" for source language time series, \"country\" for source country time series."
              },
              "endDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "End datetime in GDELT format YYYYMMDDHHMMSS — exactly 14 digits, no separators (e.g. 20240131235959). Must pair with startDatetime; supplying only one of the two is rejected. The window may predate the last 3 months. The window must span at least 30 minutes, the shortest the GDELT DOC API accepts; a shorter one is answered from the server's local GKG mirror where one runs, and refused otherwise."
              },
              "includePoints": {
                "type": "boolean",
                "default": true,
                "description": "Whether each series carries its data points. false returns every series of topSeries or selectedSeries without data, keeping its label, operator, sum, pointCount, and peak; ranking, paging, otherSeriesLabels, and every other field are unchanged. Default true."
              },
              "startDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "Start datetime in GDELT format YYYYMMDDHHMMSS — exactly 14 digits, no separators (e.g. 20240101000000). Must pair with endDatetime; supplying only one of the two is rejected. The window may predate the last 3 months. The window must span at least 30 minutes, the shortest the GDELT DOC API accepts; a shorter one is answered from the server's local GKG mirror where one runs, and refused otherwise."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "effectiveQuery",
                  "breakdownBy",
                  "totalCount"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "unknown_series",
                          "offset_out_of_range",
                          "invalid_date_range",
                          "invalid_query",
                          "gdelt_rate_limited",
                          "gdelt_unavailable"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `unknown_series`: A label passed in the series input matches no series in a non-empty breakdown. `offset_out_of_range`: The requested offset is at or beyond the last series of a non-empty overview, or of the series named in series. `invalid_date_range`: Only one of startDatetime / endDatetime was supplied, one of them is not a real UTC calendar timestamp, startDatetime is not earlier than endDatetime, or the window spans under the 30 minutes the GDELT DOC API accepts and no local GKG mirror answers it in DOC's place. `invalid_query`: GDELT rejected the query string as malformed — bad keyword length, unbalanced parentheses, or an illegal character. `gdelt_rate_limited`: GDELT rejected the request for its one-request-per-five-seconds limit, or too many requests were already queued for this one to start in time. `gdelt_unavailable`: GDELT DOC API is unreachable or temporarily returned no usable data. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "notice": {
                "type": "string",
                "description": "Guidance when the query matched no coverage in the window — how to broaden the query or extend the window — or, when this response is one page of several, which series it returned out of how many. Which timesteps GDELT left out of the breakdown (see missingTimesteps), and what smoothing omits. When the server's local GKG mirror answered (source: gkg_mirror), why, how its figures differ from the DOC API's, and how many matching articles a country breakdown left out for having no known source country. Absent when the DOC API answered a complete, unsmoothed breakdown whose every series fit in one response."
              },
              "source": {
                "enum": [
                  "doc_api",
                  "gkg_mirror"
                ],
                "type": "string",
                "description": "Where this answer came from: doc_api, the GDELT DOC API, or gkg_mirror, the server's local mirror of GDELT's Global Knowledge Graph, which answers when the DOC API refuses the request or returns nothing, and in its place when the startDatetime/endDatetime window is under the 30 minutes the DOC API accepts. Present on every answer while the server runs a mirror; absent otherwise."
              },
              "attempts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "source",
                    "outcome"
                  ],
                  "properties": {
                    "detail": {
                      "type": "string",
                      "description": "Why, when the outcome has a reason: DOC's failure message or the mirror's."
                    },
                    "source": {
                      "enum": [
                        "doc_api",
                        "gkg_mirror"
                      ],
                      "type": "string",
                      "description": "The source tried."
                    },
                    "outcome": {
                      "enum": [
                        "answered",
                        "empty",
                        "rate_limited",
                        "unavailable",
                        "window_too_short",
                        "not_ready",
                        "not_compiled",
                        "outside_coverage",
                        "store_error"
                      ],
                      "type": "string",
                      "description": "What the source did: answered, empty (answered with no matches), rate_limited, or unavailable; window_too_short when the DOC API was not asked because the window is under the 30 minutes it accepts; or why the mirror could not answer: not_ready (no completed sync), not_compiled (the query or its timespan is in a form the mirror cannot evaluate), outside_coverage (the window lies outside the days it holds), store_error."
                    }
                  },
                  "description": "One source's outcome for this call.",
                  "additionalProperties": false
                },
                "description": "Each source tried for this call, in order. Present only when the DOC API did not answer with data and the mirror was consulted."
              },
              "coverage": {
                "type": "object",
                "required": [
                  "requestedStart",
                  "requestedEnd",
                  "answeredStart",
                  "answeredEnd",
                  "missingSlots"
                ],
                "properties": {
                  "answeredEnd": {
                    "type": "string",
                    "description": "End of the window the mirror answered, ISO 8601 UTC."
                  },
                  "missingSlots": {
                    "type": "number",
                    "description": "15-minute GKG slots inside the answered window that the mirror holds no data for."
                  },
                  "requestedEnd": {
                    "type": "string",
                    "description": "End of the requested window, ISO 8601 UTC."
                  },
                  "answeredStart": {
                    "type": "string",
                    "description": "Start of the window the mirror answered, ISO 8601 UTC."
                  },
                  "requestedStart": {
                    "type": "string",
                    "description": "Start of the requested window, ISO 8601 UTC."
                  }
                },
                "description": "Present only when the mirror answered less than the requested window. Every count, share, and article in this response comes from answeredStart through answeredEnd; nothing outside it, or in a missing slot, was counted.",
                "additionalProperties": false
              },
              "topSeries": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "label",
                    "sum",
                    "pointCount"
                  ],
                  "properties": {
                    "sum": {
                      "type": "number",
                      "description": "Sum of the series' values over every point GDELT returned for it — the key the overview ranks series by. It ranks series and is neither a share of anything nor an article count."
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "date",
                          "value"
                        ],
                        "properties": {
                          "date": {
                            "type": "string",
                            "description": "Timestep in ISO 8601 format."
                          },
                          "value": {
                            "type": "number",
                            "description": "Normalized coverage volume at this timestep — the topic's share of this source's media output, not an absolute article count."
                          }
                        },
                        "description": "A single data point for this series.",
                        "additionalProperties": false
                      },
                      "description": "Time-ordered data points for this series. Present when includePoints is true (the default); omitted when it is false."
                    },
                    "peak": {
                      "type": "object",
                      "required": [
                        "date",
                        "value"
                      ],
                      "properties": {
                        "date": {
                          "type": "string",
                          "description": "Timestep of the peak, in ISO 8601 format."
                        },
                        "value": {
                          "type": "number",
                          "description": "Value at the peak timestep."
                        }
                      },
                      "description": "The point of the whole series with the largest absolute value, the earliest on a tie. Omitted when the series has no points.",
                      "additionalProperties": false
                    },
                    "label": {
                      "type": "string",
                      "description": "Series label (language name or country name)."
                    },
                    "operator": {
                      "type": "string",
                      "description": "Paste-ready DOC query operator for this series' source: sourcecountry:<FIPS code> for a country (FIPS, not ISO — AU is Austria) or sourcelang:<language name> for a language. Add it to a gdelt_search_articles or gdelt_get_coverage_timeline query to see that source's articles or volume. Omitted when the series name maps to no GDELT code or to more than one."
                    },
                    "pointCount": {
                      "type": "number",
                      "description": "Data points GDELT returned for the whole series — fewer than the timesteps in the window when GDELT left some out (see missingTimesteps)."
                    }
                  },
                  "description": "A single language or country coverage series.",
                  "additionalProperties": false
                },
                "description": "The ranked overview: every series ranked by the sum of its values, those of this page in rank order, each with its points unless includePoints is false. Omitted when the series input selects series instead."
              },
              "limitClamp": {
                "type": "object",
                "required": [
                  "parameter",
                  "requested",
                  "applied"
                ],
                "properties": {
                  "applied": {
                    "type": "number",
                    "description": "The per-call cap the call ran with instead."
                  },
                  "parameter": {
                    "enum": [
                      "maxRecords",
                      "limit"
                    ],
                    "type": "string",
                    "description": "The count input that was clamped."
                  },
                  "requested": {
                    "type": "number",
                    "description": "The value the call asked for."
                  }
                },
                "description": "Present only when the requested count exceeded the per-call cap: the call ran exactly as a call at the cap, and every count, notice, and continuation in this response reflects the applied value.",
                "additionalProperties": false
              },
              "nextOffset": {
                "type": "number",
                "description": "Offset of the next page, for the same inputs. Absent when this page reaches the last series."
              },
              "totalCount": {
                "type": "number",
                "description": "Total number of series GDELT returned, before paging."
              },
              "breakdownBy": {
                "enum": [
                  "language",
                  "country"
                ],
                "type": "string",
                "description": "Breakdown dimension used for this response."
              },
              "endDatetime": {
                "type": "string",
                "description": "Echoed end datetime when provided (YYYYMMDDHHMMSS)."
              },
              "staleResponse": {
                "type": "object",
                "required": [
                  "fetchedAt",
                  "ageSeconds",
                  "reason"
                ],
                "properties": {
                  "reason": {
                    "enum": [
                      "gdelt_rate_limited",
                      "gdelt_unavailable",
                      "gdelt_empty"
                    ],
                    "type": "string",
                    "description": "Why the refetch was not used: GDELT rate-limited it, did not answer with data, or answered empty — which GDELT also does under load."
                  },
                  "fetchedAt": {
                    "type": "string",
                    "description": "ISO 8601 time GDELT returned the stored answer."
                  },
                  "ageSeconds": {
                    "type": "number",
                    "description": "Age of the stored answer when served, in whole seconds."
                  }
                },
                "description": "Present only when the refetch of this exact request was refused, failed, or came back empty, and the response is GDELT's stored answer from fetchedAt instead. It holds nothing published after fetchedAt; a relative timespan covers the window ending at fetchedAt, not now. Absent on a live answer.",
                "additionalProperties": false
              },
              "startDatetime": {
                "type": "string",
                "description": "Echoed start datetime when provided (YYYYMMDDHHMMSS)."
              },
              "dateResolution": {
                "enum": [
                  "15min",
                  "hour",
                  "day"
                ],
                "type": "string",
                "description": "Temporal resolution of data points — 15min, hour, or day — as GDELT reports it, or else inferred from the spacing of the returned timesteps. Omitted when GDELT reports none and fewer than two distinct timesteps came back."
              },
              "effectiveQuery": {
                "type": "string",
                "description": "Echoed query string for use in follow-up calls."
              },
              "selectedSeries": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "label",
                    "sum",
                    "pointCount"
                  ],
                  "properties": {
                    "sum": {
                      "type": "number",
                      "description": "Sum of the series' values over every point GDELT returned for it — the key the overview ranks series by. It ranks series and is neither a share of anything nor an article count."
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "date",
                          "value"
                        ],
                        "properties": {
                          "date": {
                            "type": "string",
                            "description": "Timestep in ISO 8601 format."
                          },
                          "value": {
                            "type": "number",
                            "description": "Normalized coverage volume at this timestep — the topic's share of this source's media output, not an absolute article count."
                          }
                        },
                        "description": "A single data point for this series.",
                        "additionalProperties": false
                      },
                      "description": "Time-ordered data points for this series. Present when includePoints is true (the default); omitted when it is false."
                    },
                    "peak": {
                      "type": "object",
                      "required": [
                        "date",
                        "value"
                      ],
                      "properties": {
                        "date": {
                          "type": "string",
                          "description": "Timestep of the peak, in ISO 8601 format."
                        },
                        "value": {
                          "type": "number",
                          "description": "Value at the peak timestep."
                        }
                      },
                      "description": "The point of the whole series with the largest absolute value, the earliest on a tie. Omitted when the series has no points.",
                      "additionalProperties": false
                    },
                    "label": {
                      "type": "string",
                      "description": "Series label (language name or country name)."
                    },
                    "operator": {
                      "type": "string",
                      "description": "Paste-ready DOC query operator for this series' source: sourcecountry:<FIPS code> for a country (FIPS, not ISO — AU is Austria) or sourcelang:<language name> for a language. Add it to a gdelt_search_articles or gdelt_get_coverage_timeline query to see that source's articles or volume. Omitted when the series name maps to no GDELT code or to more than one."
                    },
                    "pointCount": {
                      "type": "number",
                      "description": "Data points GDELT returned for the whole series — fewer than the timesteps in the window when GDELT left some out (see missingTimesteps)."
                    }
                  },
                  "description": "A single language or country coverage series.",
                  "additionalProperties": false
                },
                "description": "Complete, untruncated time series for the labels requested via the series input — those of this page, in the order requested, without their points under includePoints: false. Omitted when series was not supplied."
              },
              "missingTimesteps": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Timesteps GDELT left out between the first and last timestep of the whole breakdown, across every series, at dateResolution — gaps in GDELT's data, not zero coverage, which GDELT returns as 0. The notice names each missing run. The same on every page, under series, and with or without points. Omitted when none are missing, and never reported for an answer from the local GKG mirror.",
                "exclusiveMinimum": 0
              },
              "otherSeriesLabels": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Label of every ranked series not on this page, in rank order, on every overview page. Pass any of them to the series input to retrieve that series' complete data. Omitted when this page holds every series, or when the series input selects series instead."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "gdelt_search_themes",
          "title": "Search GDELT GKG Themes",
          "description": "Find GDELT Global Knowledge Graph (GKG) theme identifiers for the theme: operator that gdelt_search_articles, gdelt_get_coverage_timeline, gdelt_get_tone_distribution, and gdelt_get_coverage_breakdown accept in query. Searches the identifiers in the GDELT GKG theme lookup, which carries no labels or descriptions: every query word must begin one of the _-separated parts of an identifier or run across consecutive parts, or all the words joined must, so \"drought\" finds NATURAL_DISASTER_DROUGHT, \"cyberattack\" finds CYBER_ATTACK, \"plant disease\" finds TAX_PLANTDISEASE, and \"wb water\" narrows to World Bank water themes. There is no stemming or synonym matching — \"displacement\" does not reach DISPLACED — except one fallback: when nothing matches, the search retries once with a trailing s dropped from each word of four or more letters, and says so. Matches rank an exact identifier first, then by the count the lookup lists — a static prevalence figure, not a live article total — and each carries a paste-ready operator such as theme:TAX_DISEASE_OUTBREAK. Page with offset and limit (up to 100 matches per page; a larger limit runs at 100).",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query"
            ],
            "properties": {
              "limit": {
                "type": "number",
                "default": 25,
                "minimum": 1,
                "multipleOf": 1,
                "description": "Maximum matches returned in this response. Values above 100 run at 100 with a limitClamp disclosure when clamping is enabled."
              },
              "query": {
                "type": "string",
                "description": "Words to find in theme identifiers (e.g. \"drought\", \"cyber attack\", \"refugee\"), a family prefix with a word (\"wb water\", \"crisislex\"), or a whole identifier to confirm it is listed (\"TAX_DISEASE_OUTBREAK\"). Case-insensitive; a leading theme: is ignored; every word must match, or all the words joined must (\"plant disease\" matches TAX_PLANTDISEASE). Must contain at least one letter or digit."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Zero-based offset into the ranked matches. Use nextOffset from the preceding response with the same query to retrieve the next page."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "matches",
                  "totalMatches",
                  "offset",
                  "limit",
                  "effectiveQuery",
                  "totalCount"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "invalid_query",
                          "offset_out_of_range",
                          "gdelt_unavailable"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `invalid_query`: The query has no letter or digit to match — blank, whitespace, or only punctuation such as \"___\". `offset_out_of_range`: The requested offset is at or beyond the end of a non-empty match list. `gdelt_unavailable`: The GDELT GKG theme lookup could not be downloaded, or came back empty or not as THEME<TAB>count lines. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "limit": {
                "type": "number",
                "description": "Maximum matches this page holds — the requested limit, or 100 when a larger one was clamped."
              },
              "notice": {
                "type": "string",
                "description": "Search outcome: that the plural fallback supplied the matches and which words it tried, or, when nothing matched, how to retry. Absent when the query as given matched."
              },
              "offset": {
                "type": "number",
                "description": "Zero-based offset of this page."
              },
              "matches": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "theme",
                    "count",
                    "operator"
                  ],
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Count the GDELT theme lookup lists for this theme — a static prevalence figure, not a live article total."
                    },
                    "theme": {
                      "type": "string",
                      "description": "GKG theme identifier (e.g. \"NATURAL_DISASTER_DROUGHT\")."
                    },
                    "operator": {
                      "type": "string",
                      "description": "Paste-ready query operator for the DOC tools (e.g. \"theme:NATURAL_DISASTER_DROUGHT\")."
                    }
                  },
                  "description": "A matching GKG theme.",
                  "additionalProperties": false
                },
                "description": "Matches on this page: an exact identifier match first, then by count descending, then by identifier."
              },
              "limitClamp": {
                "type": "object",
                "required": [
                  "parameter",
                  "requested",
                  "applied"
                ],
                "properties": {
                  "applied": {
                    "type": "number",
                    "description": "The per-call cap the call ran with instead."
                  },
                  "parameter": {
                    "enum": [
                      "maxRecords",
                      "limit"
                    ],
                    "type": "string",
                    "description": "The count input that was clamped."
                  },
                  "requested": {
                    "type": "number",
                    "description": "The value the call asked for."
                  }
                },
                "description": "Present only when the requested count exceeded the per-call cap: the call ran exactly as a call at the cap, and every count, notice, and continuation in this response reflects the applied value.",
                "additionalProperties": false
              },
              "nextOffset": {
                "type": "number",
                "description": "Offset for the next page with the same query. Absent when this is the final page."
              },
              "totalCount": {
                "type": "number",
                "description": "Total themes matching the query — the same figure as totalMatches."
              },
              "totalMatches": {
                "type": "number",
                "description": "Total themes matching the query, across all pages."
              },
              "effectiveQuery": {
                "type": "string",
                "description": "Echoed query string for use in follow-up calls."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "gdelt_search_tv",
          "title": "Search GDELT TV News",
          "description": "Search television news closed captions for spoken mentions of a query. Returns a bounded, paged per-station time series showing airtime devoted to the topic — 500 points by default, up to 20,000 per page. Each series carries GDELT's display name for the station and, when that name resolves to one, the station ID gdelt_get_tv_clips takes as stations. Use stations to select station IDs (e.g. [\"CNN\", \"FOXNEWS\", \"MSNBC\"]), or select with station:, network:, or quoted market: operators in query. TV query also supports in-query operators: station:CNN, network:CBS, market:\"National\", show:\"Anderson Cooper 360\", context:\"vaccine\". Archive coverage varies by station; use gdelt_list_tv_stations for station IDs, network and market values, and monitoring date ranges.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query"
            ],
            "properties": {
              "limit": {
                "type": "number",
                "default": 500,
                "minimum": 1,
                "multipleOf": 1,
                "description": "Maximum timeline points returned per page (default 500, cap 20,000). Larger counts clamp with limitClamp; strict deployments reject them."
              },
              "query": {
                "type": "string",
                "minLength": 1,
                "description": "Search query for TV transcript content. Supports TV operators: station:CNN, network:CBS, market:\"National\", show:\"Anderson Cooper\", context:\"vaccine\". Boolean OR and phrase operators also work."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Zero-based point offset into the deterministic date-then-station-name ordering. Use nextOffset from the preceding response with the same query inputs to retrieve the next page."
              },
              "dateres": {
                "enum": [
                  "hour",
                  "day",
                  "week",
                  "month",
                  "year"
                ],
                "type": "string",
                "description": "Optional GDELT aggregation resolution. Omit to let GDELT choose from the window length — hourly up to 7 days, daily under 3 years, monthly beyond; the effective recognized or inferred resolution is returned as dateResolution. Each point counts one whole UTC period: a clock hour, day, Sunday–Saturday week, month, or year."
              },
              "combined": {
                "type": "boolean",
                "default": false,
                "description": "Pool selected stations into one Combined timeline. Normalized values divide pooled matching clips by pooled monitored clips; false keeps separate station series."
              },
              "stations": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Station IDs to filter to (e.g. [\"CNN\", \"FOXNEWS\", \"MSNBC\"]) — the stationId values gdelt_list_tv_stations returns, not display labels such as \"FOX News\". Every supplied ID is forwarded. Alternatively use station:, network:, or quoted market: selectors in query; a selector is required. Obtain network and market values and per-station archive ranges from gdelt_list_tv_stations."
              },
              "timespan": {
                "type": "string",
                "description": "Relative window counting back from now (a number and unit such as d, m, or y). Now is past the end of most stations' monitoring, so for archived periods set startDatetime/endDatetime inside a station's range from gdelt_list_tv_stations. Ignored when startDatetime/endDatetime are set."
              },
              "normalize": {
                "type": "boolean",
                "default": true,
                "description": "When true (default), values are normalized as % of total airtime, enabling cross-station comparison. When false, returns raw matching 15-second clip counts."
              },
              "smoothing": {
                "type": "integer",
                "maximum": 30,
                "minimum": 0,
                "description": "Trailing moving-average width in timesteps, 0–30 (0 or 1 = none). Width N needs N source steps; leading steps cannot produce averages and peaks may appear later."
              },
              "endDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "End datetime in GDELT format YYYYMMDDHHMMSS — exactly 14 digits, no separators (e.g. 20200131235959). Must pair with startDatetime; supplying only one of the two is rejected. GDELT extends it through the end of its UTC period at the response resolution — an end exactly on the clock hour counts as the second before it, so it adds no period starting there; notice then names the window the values cover."
              },
              "startDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "Start datetime in GDELT format YYYYMMDDHHMMSS — exactly 14 digits, no separators (e.g. 20200101000000). Must pair with endDatetime; supplying only one of the two is rejected. GDELT widens it back to the start of its UTC period at the response resolution; notice then names the window the values cover."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "combined",
                  "series",
                  "normalized",
                  "totalPoints",
                  "offset",
                  "limit",
                  "effectiveQuery",
                  "totalCount"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "invalid_date_range",
                          "offset_out_of_range",
                          "invalid_query",
                          "gdelt_rate_limited",
                          "gdelt_unavailable"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `invalid_date_range`: Only one of startDatetime / endDatetime was supplied, one of them is not a real UTC calendar timestamp, or startDatetime is not earlier than endDatetime. `offset_out_of_range`: The requested point offset is at or beyond the end of a non-empty timeline. `invalid_query`: A stations entry is not a station ID, GDELT rejected the query — no station was selected, or the query string is malformed — or the TV timespan is malformed. `gdelt_rate_limited`: GDELT rejected the request for its one-request-per-five-seconds limit, or too many requests were already queued for this one to start in time. `gdelt_unavailable`: GDELT TV API is unreachable or temporarily returned no usable data. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "limit": {
                "type": "number",
                "description": "Maximum points this page holds — the requested limit, or 20,000 when a larger one was clamped."
              },
              "notice": {
                "type": "string",
                "description": "When smoothing is above 1, that leading steps without a full window have no values and peaks may lag. When the query matched no TV coverage: the resolved timespan window; for each selected station whose monitoring range the window misses, that range and how to search inside it; and how to check station coverage. When an explicit startDatetime or endDatetime falls inside a UTC period of the response resolution: the resolution and the UTC window the values cover. When a returned series has no station ID, why: GDELT returned it without a station label, or its station catalog did not load or has no entry for the named label — with how to look the ID up. Absent when coverage was returned, smoothing is at most 1, the window is a timespan or sits on period boundaries, and every series carries its station ID or combined is true."
              },
              "offset": {
                "type": "number",
                "description": "Zero-based offset of this point page."
              },
              "series": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "stationName",
                    "data",
                    "pointCount",
                    "peak"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "date",
                          "value"
                        ],
                        "properties": {
                          "date": {
                            "type": "string",
                            "description": "Label of the UTC period the point covers, in ISO 8601: the hour's start for hourly points, and 12:00:00Z of the period's first day for day, week, month, and year points."
                          },
                          "value": {
                            "type": "number",
                            "description": "Coverage value (normalized % or raw matching 15-second clip count)."
                          }
                        },
                        "description": "A single coverage data point.",
                        "additionalProperties": false
                      },
                      "description": "Time-ordered coverage data for this station on this page."
                    },
                    "peak": {
                      "type": "object",
                      "required": [
                        "date",
                        "value"
                      ],
                      "properties": {
                        "date": {
                          "type": "string",
                          "description": "Label of the UTC period the point covers, in ISO 8601: the hour's start for hourly points, and 12:00:00Z of the period's first day for day, week, month, and year points."
                        },
                        "value": {
                          "type": "number",
                          "description": "Value at the peak."
                        }
                      },
                      "description": "The point of the whole series with the largest absolute value, the earliest timestep on a tie, across every page — it may lie outside data.",
                      "additionalProperties": false
                    },
                    "station": {
                      "type": "string",
                      "description": "Station ID — the value the stations input and the station: operator take (e.g. \"FOXNEWS\"). Absent when GDELT's label for the station could not be resolved to an ID; notice says why."
                    },
                    "pointCount": {
                      "type": "number",
                      "description": "Points in the whole series, across every page — not only those in data."
                    },
                    "stationName": {
                      "type": "string",
                      "description": "GDELT's display label for the station (e.g. \"FOX News\"). Empty when GDELT returned the series without one; notice says so."
                    }
                  },
                  "description": "Coverage time series for a single station.",
                  "additionalProperties": false
                },
                "description": "Station series represented in this point page."
              },
              "combined": {
                "type": "boolean",
                "description": "True for one pooled Combined timeline; false for separate station series."
              },
              "timeRange": {
                "type": "object",
                "required": [
                  "start",
                  "end"
                ],
                "properties": {
                  "end": {
                    "type": "string",
                    "description": "Latest date in the returned data."
                  },
                  "start": {
                    "type": "string",
                    "description": "Earliest date in the returned data."
                  }
                },
                "description": "Date range spanned by this returned point page. Omitted when the page is empty.",
                "additionalProperties": false
              },
              "limitClamp": {
                "type": "object",
                "required": [
                  "parameter",
                  "requested",
                  "applied"
                ],
                "properties": {
                  "applied": {
                    "type": "number",
                    "description": "The per-call cap the call ran with instead."
                  },
                  "parameter": {
                    "enum": [
                      "maxRecords",
                      "limit"
                    ],
                    "type": "string",
                    "description": "The count input that was clamped."
                  },
                  "requested": {
                    "type": "number",
                    "description": "The value the call asked for."
                  }
                },
                "description": "Present only when the requested count exceeded the per-call cap: the call ran exactly as a call at the cap, and every count, notice, and continuation in this response reflects the applied value.",
                "additionalProperties": false
              },
              "nextOffset": {
                "type": "number",
                "description": "Offset for the next page using the same query inputs. Absent when this is the final page."
              },
              "normalized": {
                "type": "boolean",
                "description": "True when values are normalized coverage percentages."
              },
              "totalCount": {
                "type": "number",
                "description": "Number of station series returned."
              },
              "totalPoints": {
                "type": "number",
                "description": "Total points available across all matched station series before pagination."
              },
              "staleResponse": {
                "type": "object",
                "required": [
                  "fetchedAt",
                  "ageSeconds",
                  "reason"
                ],
                "properties": {
                  "reason": {
                    "enum": [
                      "gdelt_rate_limited",
                      "gdelt_unavailable",
                      "gdelt_empty"
                    ],
                    "type": "string",
                    "description": "Why the refetch was not used: GDELT rate-limited it, did not answer with data, or answered empty — which GDELT also does under load."
                  },
                  "fetchedAt": {
                    "type": "string",
                    "description": "ISO 8601 time GDELT returned the stored answer."
                  },
                  "ageSeconds": {
                    "type": "number",
                    "description": "Age of the stored answer when served, in whole seconds."
                  }
                },
                "description": "Present only when the refetch of this exact request was refused, failed, or came back empty, and the response is GDELT's stored answer from fetchedAt instead. It holds nothing published after fetchedAt; a relative timespan covers the window ending at fetchedAt, not now. Absent on a live answer.",
                "additionalProperties": false
              },
              "dateResolution": {
                "enum": [
                  "hour",
                  "day",
                  "week",
                  "month",
                  "year"
                ],
                "type": "string",
                "description": "Temporal resolution of data points — as GDELT reported it, as requested via dateres, or inferred from the returned intervals. Omitted when none of those can establish it."
              },
              "effectiveQuery": {
                "type": "string",
                "description": "Echoed query string for use in follow-up calls."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "gdelt_get_tv_breakdown",
          "title": "Get GDELT TV Breakdown",
          "description": "Rank TV stations or shows mentioning a query. Station values are percentages of each station’s monitored airtime, or raw matching 15-second clip counts with normalize=false. Show values always represent percentages of matching clips, even with normalize=false. Labels are preserved exactly; ellipsized show labels may not work as exact show: selectors. Returns 25 rows by default, up to 10,000 per page. Archive coverage varies by station; use gdelt_list_tv_stations for station IDs, network and market selectors, and monitoring date ranges.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query",
              "breakdownBy"
            ],
            "properties": {
              "limit": {
                "type": "number",
                "default": 25,
                "minimum": 1,
                "multipleOf": 1,
                "description": "Maximum ranking rows per page (default 25, cap 10,000). Larger counts clamp with limitClamp; strict deployments reject them."
              },
              "query": {
                "type": "string",
                "minLength": 1,
                "description": "TV transcript query. Supports phrases, Boolean OR, station:CNN, network:CBS, market:\"National\", show:\"Bloomberg Best\", and context:\"vaccine\"."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Zero-based row offset after descending-value and exact-label sorting. Use nextOffset with the same query inputs for the next page."
              },
              "stations": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Station IDs to select (e.g. [\"CNN\", \"FOXNEWS\"]) — the stationId values gdelt_list_tv_stations returns, not display labels such as \"FOX News\"; every supplied ID is forwarded. Alternatively select station:, network:, or quoted market: in query. A selector is required; obtain network and market values from gdelt_list_tv_stations."
              },
              "timespan": {
                "type": "string",
                "description": "Relative window counting back from now (a number and unit such as d, m, or y). Now is past the end of most stations' monitoring, so for archived periods set startDatetime/endDatetime inside a station's range from gdelt_list_tv_stations. Ignored when startDatetime/endDatetime are set."
              },
              "normalize": {
                "type": "boolean",
                "default": true,
                "description": "Station rankings: true returns station-airtime percentages; false returns matching 15-second clip counts. Show rankings always return matching-clip percentages."
              },
              "breakdownBy": {
                "enum": [
                  "station",
                  "show"
                ],
                "type": "string",
                "description": "Rank stations by their airtime share or matching clip count, or shows by percentage of matching clips."
              },
              "endDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "UTC end in YYYYMMDDHHMMSS format. Must pair with an earlier startDatetime. An end exactly on the clock hour counts as the second before it, so it adds no period starting there. Rankings count whole UTC periods at the resolution GDELT picks from the window length — clock hours up to 7 days, days under 3 years, months beyond — so GDELT widens the window outward to them; notice then names the window the values cover."
              },
              "startDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "UTC start in YYYYMMDDHHMMSS format. Must pair with a later endDatetime. Rankings count whole UTC periods at the resolution GDELT picks from the window length — clock hours up to 7 days, days under 3 years, months beyond — so GDELT widens the window outward to them; notice then names the window the values cover."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "rows",
                  "valueUnit",
                  "totalRows",
                  "offset",
                  "limit",
                  "truncated",
                  "effectiveQuery"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "label",
                    "value"
                  ],
                  "properties": {
                    "label": {
                      "type": "string",
                      "description": "Exact provider station or show label, including any ellipsis."
                    },
                    "value": {
                      "type": "number",
                      "description": "Ranking value in valueUnit; no rescaling is applied."
                    },
                    "station": {
                      "type": "string",
                      "description": "Catalog station ID for a resolved station row; absent for shows or unresolved labels."
                    }
                  },
                  "description": "A station or show ranking row.",
                  "additionalProperties": false
                },
                "description": "Rows sorted by descending value, breaking ties by exact label, from the requested page."
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "invalid_date_range",
                          "offset_out_of_range",
                          "invalid_query",
                          "gdelt_rate_limited",
                          "gdelt_unavailable"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `invalid_date_range`: Only one explicit datetime was supplied, a datetime is not a real UTC timestamp, or startDatetime is not earlier than endDatetime. `offset_out_of_range`: The requested row offset is at or beyond the end of a non-empty ranking. `invalid_query`: A stations entry is not a station ID, GDELT rejected the query, or the TV timespan is malformed. `gdelt_rate_limited`: GDELT rejected its request-spacing limit, or the request queue could not start this call in time. `gdelt_unavailable`: GDELT TV API is unreachable or temporarily returned no usable data. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "limit": {
                "type": "number",
                "description": "Applied maximum rows on this page."
              },
              "notice": {
                "type": "string",
                "description": "When no rows matched: the resolved timespan window; for each selected station whose monitoring range the window misses, that range and how to search inside it; and how to check station monitoring ranges. When an explicit startDatetime or endDatetime falls inside a UTC period of the ranking resolution: the resolution and the UTC window the values cover. On show rankings, that values are percentages of matching clips and ellipsized labels may not work as show: selectors. On station rankings whose page has rows without a station ID, why: the station catalog did not load, or has no entry for the named labels. Absent on a non-empty station ranking whose rows on the page all carry station IDs and whose window is a timespan or sits on period boundaries."
              },
              "offset": {
                "type": "number",
                "description": "Zero-based offset of this ranking page."
              },
              "totalRows": {
                "type": "number",
                "description": "Full ranking row count before pagination."
              },
              "truncated": {
                "type": "boolean",
                "description": "True when additional rows remain after this page."
              },
              "valueUnit": {
                "enum": [
                  "percent_station_airtime",
                  "percent_matching_clips",
                  "matching_clips"
                ],
                "type": "string",
                "description": "Station-airtime percentage, matching-clip percentage for shows, or raw matching 15-second clip count for stations."
              },
              "limitClamp": {
                "type": "object",
                "required": [
                  "parameter",
                  "requested",
                  "applied"
                ],
                "properties": {
                  "applied": {
                    "type": "number",
                    "description": "The per-call cap the call ran with instead."
                  },
                  "parameter": {
                    "enum": [
                      "maxRecords",
                      "limit"
                    ],
                    "type": "string",
                    "description": "The count input that was clamped."
                  },
                  "requested": {
                    "type": "number",
                    "description": "The value the call asked for."
                  }
                },
                "description": "Present only when the requested count exceeded the per-call cap: the call ran exactly as a call at the cap, and every count, notice, and continuation in this response reflects the applied value.",
                "additionalProperties": false
              },
              "nextOffset": {
                "type": "number",
                "description": "Offset of the next page; absent when no rows remain."
              },
              "staleResponse": {
                "type": "object",
                "required": [
                  "fetchedAt",
                  "ageSeconds",
                  "reason"
                ],
                "properties": {
                  "reason": {
                    "enum": [
                      "gdelt_rate_limited",
                      "gdelt_unavailable",
                      "gdelt_empty"
                    ],
                    "type": "string",
                    "description": "Why the refetch was not used: GDELT rate-limited it, did not answer with data, or answered empty — which GDELT also does under load."
                  },
                  "fetchedAt": {
                    "type": "string",
                    "description": "ISO 8601 time GDELT returned the stored answer."
                  },
                  "ageSeconds": {
                    "type": "number",
                    "description": "Age of the stored answer when served, in whole seconds."
                  }
                },
                "description": "Present only when the refetch of this exact request was refused, failed, or came back empty, and the response is GDELT's stored answer from fetchedAt instead. It holds nothing published after fetchedAt; a relative timespan covers the window ending at fetchedAt, not now. Absent on a live answer.",
                "additionalProperties": false
              },
              "effectiveQuery": {
                "type": "string",
                "description": "Echoed query for follow-up calls."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "gdelt_get_tv_clips",
          "title": "Get GDELT TV Clips",
          "description": "Retrieve the top matching TV news clips for a query from the Internet Archive's Television News Archive: returns every fetched in-window clip, up to 3,000. Each clip includes show name, the station's display name — with its station ID when that name resolves to one — air timestamp, a 15-second transcript excerpt, and a direct link to view the full one-minute clip. Use after gdelt_search_tv to read the actual transcript content driving a coverage spike — pass a series' station value as stations here. GDELT answers a TV window in whole clock hours when it spans up to 7 days, whole UTC days when shorter than 3 years, and whole UTC months beyond, so clips it returns from outside an explicit startDatetime/endDatetime window are dropped — though they still spend maxRecords. 3,000 is a hard per-call ceiling and GDELT offers no cursor: when a query fills it, re-query narrower startDatetime/endDatetime windows — the response hands back the exact windows to use. Archive coverage varies by station; use gdelt_list_tv_stations for station IDs and monitoring date ranges.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query"
            ],
            "properties": {
              "sort": {
                "enum": [
                  "relevance",
                  "dateDesc",
                  "dateAsc"
                ],
                "type": "string",
                "default": "relevance",
                "description": "Sort order: relevance (default), dateDesc (newest first), dateAsc (oldest first)."
              },
              "query": {
                "type": "string",
                "minLength": 1,
                "description": "Search query for TV transcript content. Same TV operators as gdelt_search_tv: station:CNN, network:CBS, market:\"National\", show:\"Anderson Cooper\", context:\"vaccine\"."
              },
              "stations": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Station IDs to filter to (e.g. [\"CNN\", \"FOXNEWS\"]) — the stationId values gdelt_list_tv_stations returns, not display labels such as \"FOX News\". Alternatively use station:, network:, or quoted market: selectors in query. A selector is required; use gdelt_list_tv_stations for networks, markets, and monitoring dates."
              },
              "timespan": {
                "type": "string",
                "description": "Relative window counting back from now (a number and unit such as d, m, or y). Now is past the end of most stations' monitoring, so for archived periods set startDatetime/endDatetime inside a station's range from gdelt_list_tv_stations. Ignored when startDatetime/endDatetime are set."
              },
              "maxRecords": {
                "type": "number",
                "default": 50,
                "minimum": 1,
                "multipleOf": 1,
                "description": "Maximum number of clips to fetch. Defaults to 50; values above 3000 run at 3000 with a limitClamp disclosure unless clamping is disabled. Every fetched in-window record is returned. 3000 is GDELT's hard per-call ceiling, with no cursor; split a query that fills it into narrower startDatetime/endDatetime windows."
              },
              "endDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "End datetime in GDELT format YYYYMMDDHHMMSS — exactly 14 digits, no separators (e.g. 20200131235959). Must pair with startDatetime; supplying only one of the two is rejected."
              },
              "startDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "Start datetime in GDELT format YYYYMMDDHHMMSS — exactly 14 digits, no separators (e.g. 20200101000000). Must pair with endDatetime; supplying only one of the two is rejected."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "clips",
                  "effectiveQuery",
                  "totalCount"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "clips": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "show",
                    "stationName",
                    "date",
                    "snippet",
                    "archiveUrl"
                  ],
                  "properties": {
                    "date": {
                      "type": "string",
                      "description": "Air datetime in ISO 8601 format."
                    },
                    "show": {
                      "type": "string",
                      "description": "Show name (e.g. \"Anderson Cooper 360\")."
                    },
                    "snippet": {
                      "type": "string",
                      "description": "15-second transcript excerpt surrounding the match."
                    },
                    "station": {
                      "type": "string",
                      "description": "Station ID — the value the stations input and the station: operator take (e.g. \"FOXNEWS\"). Absent when GDELT's label for the station could not be resolved to an ID; notice says why."
                    },
                    "thumbnail": {
                      "type": "string",
                      "description": "Clip thumbnail URL when provided by the archive."
                    },
                    "archiveUrl": {
                      "type": "string",
                      "description": "Internet Archive URL to view the full 1-minute clip."
                    },
                    "stationName": {
                      "type": "string",
                      "description": "GDELT's display label for the station (e.g. \"FOX News\"). Empty when GDELT returned the clip without one; notice says so."
                    }
                  },
                  "description": "A single TV news clip with transcript excerpt and archive link.",
                  "additionalProperties": false
                },
                "description": "Matching TV clips sorted per the sort parameter."
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "invalid_date_range",
                          "invalid_query",
                          "gdelt_rate_limited",
                          "gdelt_unavailable"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `invalid_date_range`: Only one of startDatetime / endDatetime was supplied, one of them is not a real UTC calendar timestamp, or startDatetime is not earlier than endDatetime. `invalid_query`: A stations entry is not a station ID, GDELT rejected the query — no station was selected, or the query string is malformed — or the TV timespan is malformed. `gdelt_rate_limited`: GDELT rejected the request for its one-request-per-five-seconds limit, or too many requests were already queued for this one to start in time. `gdelt_unavailable`: GDELT TV API is unreachable or temporarily returned no usable data. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "notice": {
                "type": "string",
                "description": "Guidance on an incomplete or empty result. When no clips matched, or every returned clip aired outside the requested window: the resolved timespan window; for each selected station whose monitoring range the window misses, that range and how to search inside it; and how to check station monitoring dates and choose an explicit window. When GDELT returned clips aired outside the requested window, how many were dropped. When the maxRecords cap was reached, raise maxRecords below the 3000 ceiling or narrow the date window at it. When a returned clip has no station ID, why: GDELT returned it without a station label, or its station catalog did not load or has no entry for the named label — with how to look the ID up. Absent when a non-empty result set is below the cap, no clip was dropped as out of window, and every clip carries its station ID."
              },
              "limitClamp": {
                "type": "object",
                "required": [
                  "parameter",
                  "requested",
                  "applied"
                ],
                "properties": {
                  "applied": {
                    "type": "number",
                    "description": "The per-call cap the call ran with instead."
                  },
                  "parameter": {
                    "enum": [
                      "maxRecords",
                      "limit"
                    ],
                    "type": "string",
                    "description": "The count input that was clamped."
                  },
                  "requested": {
                    "type": "number",
                    "description": "The value the call asked for."
                  }
                },
                "description": "Present only when the requested count exceeded the per-call cap: the call ran exactly as a call at the cap, and every count, notice, and continuation in this response reflects the applied value.",
                "additionalProperties": false
              },
              "totalCount": {
                "type": "number",
                "description": "Number of clips returned."
              },
              "staleResponse": {
                "type": "object",
                "required": [
                  "fetchedAt",
                  "ageSeconds",
                  "reason"
                ],
                "properties": {
                  "reason": {
                    "enum": [
                      "gdelt_rate_limited",
                      "gdelt_unavailable",
                      "gdelt_empty"
                    ],
                    "type": "string",
                    "description": "Why the refetch was not used: GDELT rate-limited it, did not answer with data, or answered empty — which GDELT also does under load."
                  },
                  "fetchedAt": {
                    "type": "string",
                    "description": "ISO 8601 time GDELT returned the stored answer."
                  },
                  "ageSeconds": {
                    "type": "number",
                    "description": "Age of the stored answer when served, in whole seconds."
                  }
                },
                "description": "Present only when the refetch of this exact request was refused, failed, or came back empty, and the response is GDELT's stored answer from fetchedAt instead. It holds nothing published after fetchedAt; a relative timespan covers the window ending at fetchedAt, not now. Absent on a live answer.",
                "additionalProperties": false
              },
              "effectiveQuery": {
                "type": "string",
                "description": "Echoed query string for use in follow-up calls."
              },
              "continuationWindows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "startDatetime",
                    "endDatetime"
                  ],
                  "properties": {
                    "endDatetime": {
                      "type": "string",
                      "description": "End of this window in GDELT format YYYYMMDDHHMMSS."
                    },
                    "startDatetime": {
                      "type": "string",
                      "description": "Start of this window in GDELT format YYYYMMDDHHMMSS."
                    }
                  },
                  "description": "One window to re-query with the same query string.",
                  "additionalProperties": false
                },
                "description": "Windows to re-run this query against when maxRecords reaches its 3000 ceiling: the queried window split in two on a clock hour, with no shared second. Absent when no window is known or narrowing cannot reach further clips."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "gdelt_get_tv_context",
          "title": "Get GDELT TV Context",
          "description": "Get the top co-occurring words and phrases from TV news clips matching a query — the vocabulary framing a topic on television. Returns the most frequent non-stopword terms with relative frequency scores (0–100, where 100 = the query term itself). Terms and scores come from GDELT's relevance-ranked sample of matching clips, documented as the 200 most relevant, not all matching coverage — compare windows or stations with a separate, narrower call for each. Use to understand narrative framing, identify related concepts mentioned alongside a topic, or generate follow-up search terms. Returns 25 terms by default, with count pages up to 25,000 terms. Archive coverage varies by station; check gdelt_list_tv_stations for each station’s monitoring date range.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query"
            ],
            "properties": {
              "limit": {
                "type": "number",
                "default": 25,
                "minimum": 1,
                "multipleOf": 1,
                "description": "Maximum score-sorted terms returned per page (default 25, cap 25,000). Larger counts clamp with limitClamp; strict deployments reject them."
              },
              "query": {
                "type": "string",
                "minLength": 1,
                "description": "Search query for TV transcript content. Same TV operators as gdelt_search_tv: station:CNN, network:CBS, market:\"National\", show:\"Anderson Cooper\", context:\"vaccine\"."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Zero-based term offset in descending score order, ties broken by exact label. Use nextOffset with the same query inputs for the next page."
              },
              "stations": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Station IDs to filter to (e.g. [\"CNN\", \"FOXNEWS\"]) — the stationId values gdelt_list_tv_stations returns, not display labels such as \"FOX News\". Alternatively use station:, network:, or quoted market: selectors in query; a selector is required. Obtain network and market values and per-station archive ranges from gdelt_list_tv_stations."
              },
              "timespan": {
                "type": "string",
                "description": "Relative window counting back from now (a number and unit such as d, m, or y). Now is past the end of most stations' monitoring, so for archived periods set startDatetime/endDatetime inside a station's range from gdelt_list_tv_stations. Ignored when startDatetime/endDatetime are set."
              },
              "endDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "End datetime in GDELT format YYYYMMDDHHMMSS — exactly 14 digits, no separators (e.g. 20200131235959). Must pair with startDatetime; supplying only one of the two is rejected. An end exactly on the clock hour counts as the second before it, so it adds no period starting there. Terms and scores count whole UTC periods at the resolution GDELT picks from the window length — clock hours up to 7 days, days under 3 years, months beyond — so GDELT widens the window outward to them; notice then names the window the terms and scores cover."
              },
              "startDatetime": {
                "type": "string",
                "pattern": "^\\d{14}$",
                "description": "Start datetime in GDELT format YYYYMMDDHHMMSS — exactly 14 digits, no separators (e.g. 20200101000000). Must pair with endDatetime; supplying only one of the two is rejected. Check station monitoring dates with gdelt_list_tv_stations. Terms and scores count whole UTC periods at the resolution GDELT picks from the window length — clock hours up to 7 days, days under 3 years, months beyond — so GDELT widens the window outward to them; notice then names the window the terms and scores cover."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "truncated",
                  "totalTerms",
                  "offset",
                  "words",
                  "effectiveQuery"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "offset_out_of_range",
                          "invalid_date_range",
                          "invalid_query",
                          "gdelt_rate_limited",
                          "gdelt_unavailable"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `offset_out_of_range`: The requested term offset is at or beyond the end of a non-empty result. `invalid_date_range`: Only one of startDatetime / endDatetime was supplied, one of them is not a real UTC calendar timestamp, or startDatetime is not earlier than endDatetime. `invalid_query`: A stations entry is not a station ID, GDELT rejected the query — no station was selected, or the query string is malformed — or the TV timespan is malformed. `gdelt_rate_limited`: GDELT rejected the request for its one-request-per-five-seconds limit, or too many requests were already queued for this one to start in time. `gdelt_unavailable`: GDELT TV API is unreachable or temporarily returned no usable data. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "words": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "label",
                    "score"
                  ],
                  "properties": {
                    "label": {
                      "type": "string",
                      "description": "Co-occurring word or phrase."
                    },
                    "score": {
                      "type": "number",
                      "description": "Relative frequency score (0–100). The query term itself scores 100; other terms are proportional to their co-occurrence frequency within GDELT's relevance-ranked sample of matching clips, documented as the 200 most relevant, not all matching coverage."
                    }
                  },
                  "description": "A co-occurring term with its relative frequency score.",
                  "additionalProperties": false
                },
                "description": "Co-occurring terms from GDELT's relevance-ranked sample of matching clips, documented as the 200 most relevant, not all matching coverage, sorted by score descending, ties broken by exact label."
              },
              "notice": {
                "type": "string",
                "description": "On every non-empty result, that terms and scores come from GDELT's relevance-ranked sample of matching clips, documented as the 200 most relevant, not all matching coverage — compare windows or stations with a separate, narrower call for each — and, when an explicit startDatetime or endDatetime falls inside a UTC period of the resolution GDELT picks from the window length, the resolution and the UTC window the terms and scores cover. When no clips matched, so there is no vocabulary to report: the resolved timespan window; for each selected station whose monitoring range the window misses, that range and how to search inside it; and how to broaden the query or check station monitoring dates."
              },
              "offset": {
                "type": "number",
                "description": "Zero-based offset of this term page."
              },
              "truncated": {
                "type": "boolean",
                "description": "True when more terms remain after this page; use nextOffset to retrieve them."
              },
              "limitClamp": {
                "type": "object",
                "required": [
                  "parameter",
                  "requested",
                  "applied"
                ],
                "properties": {
                  "applied": {
                    "type": "number",
                    "description": "The per-call cap the call ran with instead."
                  },
                  "parameter": {
                    "enum": [
                      "maxRecords",
                      "limit"
                    ],
                    "type": "string",
                    "description": "The count input that was clamped."
                  },
                  "requested": {
                    "type": "number",
                    "description": "The value the call asked for."
                  }
                },
                "description": "Present only when the requested count exceeded the per-call cap: the call ran exactly as a call at the cap, and every count, notice, and continuation in this response reflects the applied value.",
                "additionalProperties": false
              },
              "nextOffset": {
                "type": "number",
                "description": "Offset of the next term page; absent on the final page."
              },
              "totalTerms": {
                "type": "number",
                "description": "Total co-occurring terms before pagination; never a clip count."
              },
              "staleResponse": {
                "type": "object",
                "required": [
                  "fetchedAt",
                  "ageSeconds",
                  "reason"
                ],
                "properties": {
                  "reason": {
                    "enum": [
                      "gdelt_rate_limited",
                      "gdelt_unavailable",
                      "gdelt_empty"
                    ],
                    "type": "string",
                    "description": "Why the refetch was not used: GDELT rate-limited it, did not answer with data, or answered empty — which GDELT also does under load."
                  },
                  "fetchedAt": {
                    "type": "string",
                    "description": "ISO 8601 time GDELT returned the stored answer."
                  },
                  "ageSeconds": {
                    "type": "number",
                    "description": "Age of the stored answer when served, in whole seconds."
                  }
                },
                "description": "Present only when the refetch of this exact request was refused, failed, or came back empty, and the response is GDELT's stored answer from fetchedAt instead. It holds nothing published after fetchedAt; a relative timespan covers the window ending at fetchedAt, not now. Absent on a live answer.",
                "additionalProperties": false
              },
              "effectiveQuery": {
                "type": "string",
                "description": "Echoed query string for use in follow-up calls."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "gdelt_list_tv_stations",
          "title": "List GDELT TV Stations",
          "description": "List the television stations available for TV search with their market, network, monitoring start date, and monitoring end date — every station by default, or only those matching the optional stations, network, and market filters (each an exact, case-insensitive match; combined with AND). activeCount and totalCount count the returned stations. Stations with an end date within the last 24 hours are flagged as active; stations with earlier end dates are discontinued. Use before querying to verify a station was active during the target time period, or to discover valid station IDs for the stations parameter in other TV tools. Archive coverage varies by station; check each station’s monitoring date range. Use the returned network values with network: and market values with quoted market: selectors in TV queries.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "market": {
                "type": "string",
                "description": "Market to narrow to (e.g. \"National\", \"San Francisco\"), matched as a whole value case-insensitively after trimming — \"National\" does not match \"NationalSpecialty\". Values come from the market field of the unfiltered list. Blank is ignored."
              },
              "network": {
                "type": "string",
                "description": "Network to narrow to (e.g. \"CNN\", \"ABC\"), matched as a whole value case-insensitively after trimming — \"FOX\" does not match \"FOXNEWS\". Values come from the network field of the unfiltered list. Blank is ignored."
              },
              "stations": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Station IDs to return (e.g. [\"CNN\", \"FOXNEWS\", \"MSNBC\"]) — the IDs the stations parameter of the other TV tools takes. Matches any listed ID, exactly and case-insensitively after trimming; IDs that match no station are named in the notice. Blank entries are ignored; omit it or pass [] to include every station."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "stations",
                  "activeCount",
                  "totalCount"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "gdelt_rate_limited",
                          "gdelt_unavailable"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `gdelt_rate_limited`: GDELT rejected the request for its one-request-per-five-seconds limit, or too many requests were already queued for this one to start in time. `gdelt_unavailable`: GDELT TV API is unreachable or temporarily returned no usable data, including an empty station catalog. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "notice": {
                "type": "string",
                "description": "Filter outcome: names the filters when no station matched, and names requested station IDs that are not in the catalog or that another filter excluded. Absent when every requested ID was returned and the result is not empty."
              },
              "stations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "stationId",
                    "description",
                    "market",
                    "network",
                    "startDate",
                    "endDate",
                    "isActive"
                  ],
                  "properties": {
                    "market": {
                      "type": "string",
                      "description": "Market (e.g. \"National\", \"San Francisco\")."
                    },
                    "endDate": {
                      "type": "string",
                      "description": "Monitoring end date in ISO 8601 format."
                    },
                    "network": {
                      "type": "string",
                      "description": "Network affiliation (e.g. \"CNN\", \"NBC\")."
                    },
                    "isActive": {
                      "type": "boolean",
                      "description": "True when the end date is within the last 24 hours (recently updated feed). False for discontinued stations."
                    },
                    "startDate": {
                      "type": "string",
                      "description": "Monitoring start date in ISO 8601 format."
                    },
                    "stationId": {
                      "type": "string",
                      "description": "Station ID used in TV query operators (e.g. \"CNN\")."
                    },
                    "description": {
                      "type": "string",
                      "description": "Human-readable station description."
                    }
                  },
                  "description": "A single TV station with monitoring metadata.",
                  "additionalProperties": false
                },
                "description": "Stations matching every supplied filter — all stations when none is given — sorted by station ID."
              },
              "totalCount": {
                "type": "number",
                "description": "Number of stations returned — the whole catalog when no filter is given."
              },
              "activeCount": {
                "type": "number",
                "description": "Number of returned stations currently flagged as active."
              },
              "staleResponse": {
                "type": "object",
                "required": [
                  "fetchedAt",
                  "ageSeconds",
                  "reason"
                ],
                "properties": {
                  "reason": {
                    "enum": [
                      "gdelt_rate_limited",
                      "gdelt_unavailable",
                      "gdelt_empty"
                    ],
                    "type": "string",
                    "description": "Why the refetch was not used: GDELT rate-limited it, did not answer with data, or answered empty — which GDELT also does under load."
                  },
                  "fetchedAt": {
                    "type": "string",
                    "description": "ISO 8601 time GDELT returned the stored answer."
                  },
                  "ageSeconds": {
                    "type": "number",
                    "description": "Age of the stored answer when served, in whole seconds."
                  }
                },
                "description": "Present only when the refetch of this exact request was refused, failed, or came back empty, and the response is GDELT's stored answer from fetchedAt instead. It holds nothing published after fetchedAt; a relative timespan covers the window ending at fetchedAt, not now. Absent on a live answer.",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [
        {
          "name": "gdelt-guide",
          "uri": "skill://gdelt-guide/SKILL.md",
          "mimeType": "text/markdown",
          "description": "Investigate recent news spikes and compare historical television coverage with gdelt_* tools. Use for theme resolution, evidence searches, station comparisons, or coverage and framing claims that require date-range, identifier, sampling, and completeness checks."
        }
      ],
      "prompts": []
    },
    "instructions": "Search recent global news with DOC tools and station-specific television archives with TV tools; no API key is required. Resolve theme operators with gdelt_search_themes and station IDs and monitoring dates with gdelt_list_tv_stations before filtering. Investigate recent spikes with gdelt_get_coverage_timeline, then inspect article evidence; investigate historical TV with gdelt_search_tv, then gdelt_get_tv_clips. Article search and timespan cover the last three months; explicit dates reach older windows in the volume and tone timelines, the language and country breakdowns, and the tone distribution. Read what the last 72 hours of English-language coverage said with gdelt_search_sentences, which matches every query term inside one sentence. TV coverage varies by station, so verify the requested dates before interpreting absence. DOC, Context, and TV requests share pacing of at least five seconds; theme lookup uses a separate host. Follow pagination and continuation notices before claiming completeness. Where the server keeps a local GKG mirror, DOC tools may answer from it when the DOC API refuses a request or returns nothing, or for an explicit window under 30 minutes, and mark those answers source: gkg_mirror."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}