Election Index

Neutral, sourced election calendar: polling days, when provisional and final results are due.

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
91%
Naming quality
86%
Poisoning risk
80%
Permission match
100%
Protocol compliance
100%

Findings (2)

  • HIGHTool poisoning patterns detected
  • MEDIUMTool description contains URL to non-standard domainin submit_correction

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~12,105Tokens (tool definitions)
~14.8 KBTypical response size
Significant attention impact (9.46% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "elections": {
      "url": "https://electionindex.org/mcp"
    }
  }
}

Remote endpoints

https://electionindex.org/mcpstreamable-http

What it can do

Tool inventory

Tools (10)

🟒 Read-only🟑 WriteπŸ”΄ Deleteβšͺ Unknown
🟒next_election(country, count, level)

The next elections in one country, however far ahead: polling day and whether it is declared, still tentative, or only expected within a period, what is elected, the counting authority, and when results are expected. Answers "When is the next election in Austria?" or "When are the US midterms?". National elections by default; level "regional" answers "When are the next state elections in Germany?". Covers 390 elections in 100 countries, 2021–2030, including 23 of the 27 EU member states, the 2026 US midterms in all 50 states and the certified 2024 US presidential result, with vote counts, in all 50 states and DC.

Input Schema

{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "description": "Country name or ISO 3166-1 alpha-2 code, e.g. \"Austria\" or \"AT\", \"United States\" or \"US\""
    },
    "count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10,
      "description": "How many upcoming elections to return, soonest first; default 3"
    },
    "level": {
      "type": "string",
      "enum": [
        "national",
        "regional",
        "all"
      ],
      "description": "national: the country votes; regional: a state, region or autonomous community elects its own parliament or head (German LΓ€nder, Spanish autonomous communities, Italian regions). Default national; the answer also counts upcoming regional elections"
    }
  },
  "required": [
    "country"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "properties": {
        "country": {
          "type": "string",
          "description": "ISO code"
        },
        "country_name": {
          "type": "string",
          "description": "Country name"
        },
        "level": {
          "type": "string",
          "description": "national, regional or all"
        },
        "total_upcoming": {
          "type": "integer",
          "description": "All upcoming elections we list for this country at this level"
        },
        "regional_upcoming": {
          "type": "integer",
          "description": "Upcoming regional elections in this country (with level national); ask again with level \"regional\""
        },
        "elections": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Election id"
              },
              "country": {
                "type": "string",
                "description": "ISO 3166-1 alpha-2"
              },
              "country_name": {
                "type": "string",
                "description": "Country name"
              },
              "level": {
                "type": "string",
                "description": "national or regional"
              },
              "subdivision": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO 3166-2 code of the state or region, if the election belongs to one"
              },
              "subdivision_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that state or region"
              },
              "date": {
                "type": "string",
                "description": "Polling day (YYYY-MM-DD); for an expected date, the last day of date_window"
              },
              "date_status": {
                "type": "string",
                "description": "declared, tentative, or expected (no day set yet: see date_window)"
              },
              "date_window": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "Only for date_status \"expected\": the period polling day is expected in",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "First possible day (YYYY-MM-DD)"
                  },
                  "to": {
                    "type": "string",
                    "description": "Last possible day (YYYY-MM-DD)"
                  },
                  "label": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "How we name the period, e.g. \"Q2 2029\""
                  }
                }
              },
              "kind": {
                "type": "string",
                "description": "Kind of election"
              },
              "timezone": {
                "type": "string",
                "description": "IANA time zone"
              },
              "status": {
                "type": "string",
                "description": "Where the election is now: scheduled, counting, finalising, final-expected, ..."
              },
              "last_verified_at": {
                "type": "string",
                "description": "When the record was last checked against its sources"
              },
              "stale": {
                "type": "boolean",
                "description": "Not re-verified recently, or a stage is overdue"
              },
              "stale_reason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why it is stale"
              },
              "url": {
                "type": "string",
                "description": "Page on electionindex.org"
              },
              "poll_blackout": {
                "type": "object",
                "description": "Whether opinion polls for this election should be shown only behind a warning right now, checked at request time. reason \"ban\": a poll-publication ban applies under the cited law. reason \"unverified\": we hold no verified rule for this country, so we cannot say publishing is allowed; it is not a finding that polls are banned. Show polls behind a warning (mode warn) or not at all (mode withhold)",
                "properties": {
                  "active": {
                    "type": "boolean",
                    "description": "Show polls only behind a warning now (see reason)"
                  },
                  "reason": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "ban (a verified ban applies), unverified (no verified rule; warning until polls close), or null"
                  },
                  "mode": {
                    "type": "string",
                    "description": "warn: polls may be shown behind a warning; withhold: do not show them"
                  },
                  "verified": {
                    "type": "boolean",
                    "description": "We hold a rule for this country read against the law"
                  },
                  "starts_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "When the ban starts (UTC ISO); null if the law sets none or no rule is known"
                  },
                  "ends_at": {
                    "type": "string",
                    "description": "When the ban or warning ends: the last polls close (UTC ISO)"
                  },
                  "ends_at_local": {
                    "type": "string",
                    "description": "The same moment in local time, with offset"
                  },
                  "timezone": {
                    "type": "string",
                    "description": "IANA time zone of ends_at_local"
                  },
                  "date_tentative": {
                    "type": "boolean",
                    "description": "Polling day is not declared yet, so these times may move"
                  },
                  "citation": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The law and provision behind an active or upcoming ban"
                  },
                  "rule": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "The rule as recorded",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "Rule id"
                      },
                      "law": {
                        "type": "string",
                        "description": "The law, by its own title"
                      },
                      "citation": {
                        "type": "string",
                        "description": "The provision"
                      },
                      "source": {
                        "type": "string",
                        "description": "Official text the rule was read in"
                      },
                      "scope": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "What is banned: publication, exit-polls"
                      },
                      "verified_at": {
                        "type": "string",
                        "description": "When the rule was last read against the source (YYYY-MM-DD)"
                      },
                      "note": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Reading notes"
                      },
                      "legal": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "description": "Quote, English gloss, what it covers, whether it covers online publication, exemptions, penalty, enforcer"
                      }
                    }
                  }
                }
              },
              "exit_poll": {
                "type": "object",
                "description": "When is the exit poll? An exit poll is a survey of voters leaving polling stations, never an official result",
                "properties": {
                  "status": {
                    "type": "string",
                    "description": "expected (due), past (due time has passed, publication not observed), published (observed), none (checked: no exit poll is published), or unknown (not yet recorded)"
                  },
                  "race": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The race the answer is recorded on"
                  },
                  "at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The one time to show: when it was published, else when it is due (UTC ISO)"
                  },
                  "confidence": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "announced, precedent or estimate"
                  },
                  "checked_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "For none: when that was checked (YYYY-MM-DD)"
                  },
                  "observed_source": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Page that shows the publication, once observed"
                  },
                  "from": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Earliest expected publication (UTC ISO)"
                  },
                  "by": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Latest expected publication (UTC ISO)"
                  },
                  "publisher": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Who publishes it, e.g. a broadcaster and its pollster"
                  },
                  "source": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where it is published"
                  },
                  "observed_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "When it was published, once observed"
                  },
                  "basis": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "What the expectation, or the finding that none is published, rests on"
                  },
                  "official_result": {
                    "type": "boolean",
                    "description": "Always false"
                  },
                  "ban_ends": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "While a verified ban is in force: at (UTC, polls close), local, citation, scope (publication: all polls; exit-polls: exit-poll results only)"
                  }
                }
              },
              "races": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Race id"
                    },
                    "name": {
                      "type": "string",
                      "description": "Race name"
                    },
                    "status": {
                      "type": "string",
                      "description": "Race status"
                    },
                    "expected_stage_now": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Count stage expected on the authority page now"
                    },
                    "stages": {
                      "type": "array",
                      "items": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "description": "Expected window for one count stage",
                        "properties": {
                          "stage": {
                            "type": "string",
                            "description": "Count stage id"
                          },
                          "from": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Earliest expected time (ISO)"
                          },
                          "by": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Latest expected time (ISO)"
                          },
                          "replacedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "When a later stage replaces it on the authority page"
                          },
                          "confidence": {
                            "type": "string",
                            "description": "announced (law or authority), precedent (last election) or estimate"
                          },
                          "citation": {
                            "type": "string",
                            "description": "Basis for the window"
                          },
                          "source": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Source of a stage published outside the authority page"
                          },
                          "observedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "When the authority actually published it; null until observed"
                          },
                          "observedSource": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "URL that proves the observation"
                          }
                        }
                      }
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string",
                            "description": "Source URL"
                          },
                          "role": {
                            "type": "string",
                            "description": "What the page is for"
                          },
                          "kind": {
                            "type": "string",
                            "description": "race_results, feed, results_index, emb_home, directory or media"
                          },
                          "kindReason": {
                            "type": "string",
                            "description": "Why it was classified that way"
                          },
                          "resolvable": {
                            "type": "boolean",
                            "description": "Can this page answer a results question?"
                          },
                          "origin": {
                            "type": "string",
                            "description": "race, stage or authority"
                          },
                          "check": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "description": "Latest link check"
                          },
                          "figures_in_html": {
                            "type": [
                              "boolean",
                              "null"
                            ],
                            "description": "For a results page: whether its own HTML shows a count (false: figures load by script or the page only links on; null: not read)"
                          },
                          "oracle_reads": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "description": "Settlement-oracle lab reads of this URL: right, wrong, unread, lab, at"
                          }
                        }
                      }
                    },
                    "results": {
                      "type": "array",
                      "description": "Published counts we hold, oldest first (empty until a count is recorded)",
                      "items": {
                        "type": "object",
                        "properties": {
                          "stage": {
                            "type": "string",
                            "description": "Count stage of this version, e.g. final-result"
                          },
                          "published_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "When the publisher released it"
                          },
                          "source": {
                            "type": "string",
                            "description": "File or page the numbers were copied from"
                          },
                          "publisher": {
                            "type": "string",
                            "description": "Who published the count"
                          },
                          "licence": {
                            "type": "string",
                            "description": "Licence of the numbers"
                          },
                          "total_votes": {
                            "type": "integer",
                            "description": "Total votes cast in the race"
                          },
                          "electorate": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Registered voters"
                          },
                          "turnout": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Percent of registered voters who cast a ballot"
                          },
                          "rows": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "candidate": {
                                  "type": "string",
                                  "description": "Candidate or list"
                                },
                                "ballot_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Name on the ballot, as the authority's file writes it"
                                },
                                "party": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Party, where recorded"
                                },
                                "party_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Wikidata QID of the party"
                                },
                                "colour": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Party colour (#RRGGBB, from Wikidata)"
                                },
                                "votes": {
                                  "type": "integer",
                                  "description": "Votes"
                                },
                                "share": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Percent of total votes"
                                },
                                "seats": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "Seats or electoral votes won"
                                },
                                "winner": {
                                  "type": "boolean",
                                  "description": "Most votes in this count"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "id",
              "country",
              "date",
              "status",
              "url"
            ]
          }
        },
        "note": {
          "type": "string",
          "description": "Set when nothing is listed yet"
        }
      },
      "required": [
        "country",
        "elections"
      ]
    },
    "meta": {
      "type": "object",
      "description": "What this answer was built from; cite dataset_version",
      "properties": {
        "dataset_version": {
          "type": "string",
          "description": "Dataset version"
        },
        "built_at": {
          "type": "string",
          "description": "When the dataset was built"
        },
        "generated_at": {
          "type": "string",
          "description": "When this answer was generated"
        },
        "licence": {
          "type": "string",
          "description": "Licence and required credit"
        },
        "copyright": {
          "type": "string",
          "description": "Rights holder"
        },
        "doi": {
          "type": "string",
          "description": "Zenodo concept DOI: the latest archived release"
        },
        "docs": {
          "type": "string",
          "description": "Documentation URL"
        }
      },
      "required": [
        "dataset_version",
        "licence"
      ]
    }
  },
  "required": [
    "result",
    "meta"
  ]
}
🟒upcoming_elections(country, from, to, level, include_discovered, ...)

List elections by date range and/or country, soonest first, with each race's expected count stage right now. Answers "Which elections are in Europe this autumn?", "Which elections are this month?" or "What elections does Germany have coming up?". Without dates it starts today; with a country and no end date it covers every future election of that country, otherwise the next 365 days. Covers 390 elections in 100 countries, 2021–2030, including 23 of the 27 EU member states, the 2026 US midterms in all 50 states and the certified 2024 US presidential result, with vote counts, in all 50 states and DC.

Input Schema

{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "description": "Country name or ISO 3166-1 alpha-2 code, e.g. \"Austria\" or \"AT\", \"United States\" or \"US\""
    },
    "from": {
      "type": "string",
      "description": "Start date YYYY-MM-DD; default today"
    },
    "to": {
      "type": "string",
      "description": "End date YYYY-MM-DD; default +365 days, or no end when a country is given"
    },
    "level": {
      "type": "string",
      "enum": [
        "national",
        "regional",
        "all"
      ],
      "description": "national: the country votes; regional: a state, region or autonomous community elects its own parliament or head (German LΓ€nder, Spanish autonomous communities, Italian regions). Default all"
    },
    "include_discovered": {
      "type": "boolean",
      "description": "Also list elections found on Wikidata but not yet verified by Global Election Index"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200,
      "description": "Most elections to return, soonest first; default 25, max 200. Narrow with from/to or country for more."
    }
  }
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "description": "Elections matching the filters"
        },
        "returned": {
          "type": "integer",
          "description": "Elections in this answer (see limit)"
        },
        "elections": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Election id"
              },
              "country": {
                "type": "string",
                "description": "ISO 3166-1 alpha-2"
              },
              "country_name": {
                "type": "string",
                "description": "Country name"
              },
              "level": {
                "type": "string",
                "description": "national or regional"
              },
              "subdivision": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO 3166-2 code of the state or region, if the election belongs to one"
              },
              "subdivision_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that state or region"
              },
              "date": {
                "type": "string",
                "description": "Polling day (YYYY-MM-DD); for an expected date, the last day of date_window"
              },
              "date_status": {
                "type": "string",
                "description": "declared, tentative, or expected (no day set yet: see date_window)"
              },
              "date_window": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "Only for date_status \"expected\": the period polling day is expected in",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "First possible day (YYYY-MM-DD)"
                  },
                  "to": {
                    "type": "string",
                    "description": "Last possible day (YYYY-MM-DD)"
                  },
                  "label": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "How we name the period, e.g. \"Q2 2029\""
                  }
                }
              },
              "kind": {
                "type": "string",
                "description": "Kind of election"
              },
              "timezone": {
                "type": "string",
                "description": "IANA time zone"
              },
              "status": {
                "type": "string",
                "description": "Where the election is now: scheduled, counting, finalising, final-expected, ..."
              },
              "last_verified_at": {
                "type": "string",
                "description": "When the record was last checked against its sources"
              },
              "stale": {
                "type": "boolean",
                "description": "Not re-verified recently, or a stage is overdue"
              },
              "stale_reason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why it is stale"
              },
              "url": {
                "type": "string",
                "description": "Page on electionindex.org"
              },
              "poll_blackout": {
                "type": "object",
                "description": "Whether opinion polls for this election should be shown only behind a warning right now, checked at request time. reason \"ban\": a poll-publication ban applies under the cited law. reason \"unverified\": we hold no verified rule for this country, so we cannot say publishing is allowed; it is not a finding that polls are banned. Show polls behind a warning (mode warn) or not at all (mode withhold)",
                "properties": {
                  "active": {
                    "type": "boolean",
                    "description": "Show polls only behind a warning now (see reason)"
                  },
                  "reason": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "ban (a verified ban applies), unverified (no verified rule; warning until polls close), or null"
                  },
                  "mode": {
                    "type": "string",
                    "description": "warn: polls may be shown behind a warning; withhold: do not show them"
                  },
                  "verified": {
                    "type": "boolean",
                    "description": "We hold a rule for this country read against the law"
                  },
                  "starts_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "When the ban starts (UTC ISO); null if the law sets none or no rule is known"
                  },
                  "ends_at": {
                    "type": "string",
                    "description": "When the ban or warning ends: the last polls close (UTC ISO)"
                  },
                  "ends_at_local": {
                    "type": "string",
                    "description": "The same moment in local time, with offset"
                  },
                  "timezone": {
                    "type": "string",
                    "description": "IANA time zone of ends_at_local"
                  },
                  "date_tentative": {
                    "type": "boolean",
                    "description": "Polling day is not declared yet, so these times may move"
                  },
                  "citation": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The law and provision behind an active or upcoming ban"
                  },
                  "rule": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "The rule as recorded",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "Rule id"
                      },
                      "law": {
                        "type": "string",
                        "description": "The law, by its own title"
                      },
                      "citation": {
                        "type": "string",
                        "description": "The provision"
                      },
                      "source": {
                        "type": "string",
                        "description": "Official text the rule was read in"
                      },
                      "scope": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "What is banned: publication, exit-polls"
                      },
                      "verified_at": {
                        "type": "string",
                        "description": "When the rule was last read against the source (YYYY-MM-DD)"
                      },
                      "note": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Reading notes"
                      },
                      "legal": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "description": "Quote, English gloss, what it covers, whether it covers online publication, exemptions, penalty, enforcer"
                      }
                    }
                  }
                }
              },
              "exit_poll": {
                "type": "object",
                "description": "When is the exit poll? An exit poll is a survey of voters leaving polling stations, never an official result",
                "properties": {
                  "status": {
                    "type": "string",
                    "description": "expected (due), past (due time has passed, publication not observed), published (observed), none (checked: no exit poll is published), or unknown (not yet recorded)"
                  },
                  "race": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The race the answer is recorded on"
                  },
                  "at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The one time to show: when it was published, else when it is due (UTC ISO)"
                  },
                  "confidence": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "announced, precedent or estimate"
                  },
                  "checked_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "For none: when that was checked (YYYY-MM-DD)"
                  },
                  "observed_source": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Page that shows the publication, once observed"
                  },
                  "from": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Earliest expected publication (UTC ISO)"
                  },
                  "by": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Latest expected publication (UTC ISO)"
                  },
                  "publisher": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Who publishes it, e.g. a broadcaster and its pollster"
                  },
                  "source": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where it is published"
                  },
                  "observed_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "When it was published, once observed"
                  },
                  "basis": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "What the expectation, or the finding that none is published, rests on"
                  },
                  "official_result": {
                    "type": "boolean",
                    "description": "Always false"
                  },
                  "ban_ends": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "While a verified ban is in force: at (UTC, polls close), local, citation, scope (publication: all polls; exit-polls: exit-poll results only)"
                  }
                }
              },
              "races": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Race id"
                    },
                    "name": {
                      "type": "string",
                      "description": "Race name"
                    },
                    "status": {
                      "type": "string",
                      "description": "Race status"
                    },
                    "expected_stage_now": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Count stage expected on the authority page now"
                    },
                    "stages": {
                      "type": "array",
                      "items": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "description": "Expected window for one count stage",
                        "properties": {
                          "stage": {
                            "type": "string",
                            "description": "Count stage id"
                          },
                          "from": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Earliest expected time (ISO)"
                          },
                          "by": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Latest expected time (ISO)"
                          },
                          "replacedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "When a later stage replaces it on the authority page"
                          },
                          "confidence": {
                            "type": "string",
                            "description": "announced (law or authority), precedent (last election) or estimate"
                          },
                          "citation": {
                            "type": "string",
                            "description": "Basis for the window"
                          },
                          "source": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Source of a stage published outside the authority page"
                          },
                          "observedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "When the authority actually published it; null until observed"
                          },
                          "observedSource": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "URL that proves the observation"
                          }
                        }
                      }
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string",
                            "description": "Source URL"
                          },
                          "role": {
                            "type": "string",
                            "description": "What the page is for"
                          },
                          "kind": {
                            "type": "string",
                            "description": "race_results, feed, results_index, emb_home, directory or media"
                          },
                          "kindReason": {
                            "type": "string",
                            "description": "Why it was classified that way"
                          },
                          "resolvable": {
                            "type": "boolean",
                            "description": "Can this page answer a results question?"
                          },
                          "origin": {
                            "type": "string",
                            "description": "race, stage or authority"
                          },
                          "check": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "description": "Latest link check"
                          },
                          "figures_in_html": {
                            "type": [
                              "boolean",
                              "null"
                            ],
                            "description": "For a results page: whether its own HTML shows a count (false: figures load by script or the page only links on; null: not read)"
                          },
                          "oracle_reads": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "description": "Settlement-oracle lab reads of this URL: right, wrong, unread, lab, at"
                          }
                        }
                      }
                    },
                    "results": {
                      "type": "array",
                      "description": "Published counts we hold, oldest first (empty until a count is recorded)",
                      "items": {
                        "type": "object",
                        "properties": {
                          "stage": {
                            "type": "string",
                            "description": "Count stage of this version, e.g. final-result"
                          },
                          "published_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "When the publisher released it"
                          },
                          "source": {
                            "type": "string",
                            "description": "File or page the numbers were copied from"
                          },
                          "publisher": {
                            "type": "string",
                            "description": "Who published the count"
                          },
                          "licence": {
                            "type": "string",
                            "description": "Licence of the numbers"
                          },
                          "total_votes": {
                            "type": "integer",
                            "description": "Total votes cast in the race"
                          },
                          "electorate": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Registered voters"
                          },
                          "turnout": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Percent of registered voters who cast a ballot"
                          },
                          "rows": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "candidate": {
                                  "type": "string",
                                  "description": "Candidate or list"
                                },
                                "ballot_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Name on the ballot, as the authority's file writes it"
                                },
                                "party": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Party, where recorded"
                                },
                                "party_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Wikidata QID of the party"
                                },
                                "colour": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Party colour (#RRGGBB, from Wikidata)"
                                },
                                "votes": {
                                  "type": "integer",
                                  "description": "Votes"
                                },
                                "share": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Percent of total votes"
                                },
                                "seats": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "Seats or electoral votes won"
                                },
                                "winner": {
                                  "type": "boolean",
                                  "description": "Most votes in this count"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "id",
              "country",
              "date",
              "status",
              "url"
            ]
          }
        },
        "discovered_unverified": {
          "type": "array",
          "description": "Found on Wikidata, not verified",
          "items": {
            "type": "object"
          }
        }
      },
      "required": [
        "elections"
      ]
    },
    "meta": {
      "type": "object",
      "description": "What this answer was built from; cite dataset_version",
      "properties": {
        "dataset_version": {
          "type": "string",
          "description": "Dataset version"
        },
        "built_at": {
          "type": "string",
          "description": "When the dataset was built"
        },
        "generated_at": {
          "type": "string",
          "description": "When this answer was generated"
        },
        "licence": {
          "type": "string",
          "description": "Licence and required credit"
        },
        "copyright": {
          "type": "string",
          "description": "Rights holder"
        },
        "doi": {
          "type": "string",
          "description": "Zenodo concept DOI: the latest archived release"
        },
        "docs": {
          "type": "string",
          "description": "Documentation URL"
        }
      },
      "required": [
        "dataset_version",
        "licence"
      ]
    }
  },
  "required": [
    "result",
    "meta"
  ]
}
🟒poll_blackout(election, country)

Whether a country bans publishing opinion polls before a vote, checked now: verdict ban / no-ban / exit-polls-only / unverified, when a ban starts and ends (polls close), whether it is in force, the law and article, and the official text it was read in. Answers "Can I publish a poll in Spain this week?" or "When does the poll blackout end in Serbia?". Give an election id, or a country for its next vote. "unverified" means we hold no verified rule: it is not a finding that polls are allowed. Not legal advice.

Input Schema

{
  "type": "object",
  "properties": {
    "election": {
      "type": "string",
      "description": "Election id, e.g. \"spain-general-2026\""
    },
    "country": {
      "type": "string",
      "description": "Country name or ISO 3166-1 alpha-2 code, e.g. \"Austria\" or \"AT\", \"United States\" or \"US\"; answers for its next election"
    }
  }
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "properties": {
        "election": {
          "type": "string",
          "description": "Election id"
        },
        "verdict": {
          "type": "string",
          "description": "ban, no-ban, exit-polls-only, or unverified (no verified rule: not a finding that polls are allowed)"
        },
        "in_force": {
          "type": "boolean",
          "description": "A verified ban applies right now"
        },
        "starts_at": {
          "type": [
            "string",
            "null"
          ],
          "description": "When the ban starts (UTC ISO)"
        },
        "ends_at": {
          "type": "string",
          "description": "When it ends: the last polls close (UTC ISO)"
        },
        "ends_at_local": {
          "type": "string",
          "description": "The same in local time, with offset"
        },
        "citation": {
          "type": [
            "string",
            "null"
          ],
          "description": "Law and article, short form"
        },
        "rule": {
          "type": [
            "object",
            "null"
          ],
          "description": "The rule as recorded: law, citation, official source, scope, verified_at, legal detail"
        }
      },
      "required": [
        "election",
        "verdict"
      ]
    },
    "meta": {
      "type": "object",
      "description": "What this answer was built from; cite dataset_version",
      "properties": {
        "dataset_version": {
          "type": "string",
          "description": "Dataset version"
        },
        "built_at": {
          "type": "string",
          "description": "When the dataset was built"
        },
        "generated_at": {
          "type": "string",
          "description": "When this answer was generated"
        },
        "licence": {
          "type": "string",
          "description": "Licence and required credit"
        },
        "copyright": {
          "type": "string",
          "description": "Rights holder"
        },
        "doi": {
          "type": "string",
          "description": "Zenodo concept DOI: the latest archived release"
        },
        "docs": {
          "type": "string",
          "description": "Documentation URL"
        }
      },
      "required": [
        "dataset_version",
        "licence"
      ]
    }
  },
  "required": [
    "result",
    "meta"
  ]
}
🟒pollster(pollster)

A pollster's final published poll before each election we hold a certified result for, set against that result: share per party or candidate, error in points, mean absolute error, and the error on the winner's margin. Figures come from the pollster's own release or a registry, never an aggregator. Measured facts, not grades: nothing is ranked. Answers "How accurate was Novus in Sweden 2026?". Give a pollster id or name.

Input Schema

{
  "type": "object",
  "properties": {
    "pollster": {
      "type": "string",
      "description": "Pollster id or name, e.g. \"novus\" or \"Verian\""
    }
  },
  "required": [
    "pollster"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "description": "The pollster and its final polls, each with against_result (rows, mean_abs_error, margin_error, margin_towards: the count’s name for the contestant the poll leaned to, margin_towards_label: as readers know it, leader_same_as_result) or not_comparable",
      "properties": {
        "id": {
          "type": "string",
          "description": "Pollster id"
        },
        "name": {
          "type": "string",
          "description": "Name"
        },
        "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2"
        },
        "final_polls": {
          "type": "array",
          "items": {
            "type": "object"
          }
        }
      },
      "required": [
        "id",
        "name"
      ]
    },
    "meta": {
      "type": "object",
      "description": "What this answer was built from; cite dataset_version",
      "properties": {
        "dataset_version": {
          "type": "string",
          "description": "Dataset version"
        },
        "built_at": {
          "type": "string",
          "description": "When the dataset was built"
        },
        "generated_at": {
          "type": "string",
          "description": "When this answer was generated"
        },
        "licence": {
          "type": "string",
          "description": "Licence and required credit"
        },
        "copyright": {
          "type": "string",
          "description": "Rights holder"
        },
        "doi": {
          "type": "string",
          "description": "Zenodo concept DOI: the latest archived release"
        },
        "docs": {
          "type": "string",
          "description": "Documentation URL"
        }
      },
      "required": [
        "dataset_version",
        "licence"
      ]
    }
  },
  "required": [
    "result",
    "meta"
  ]
}
🟒election_status(election)

Full record of one election: races, polls-close times, every count stage window (exit poll, election night, intermediate count, final result, government) with confidence and citation, the authority, sources, recorded vote counts, whether the record is stale, whether a poll-publication ban (poll_blackout) applies now, and when the exit poll is expected (exit_poll).

Input Schema

{
  "type": "object",
  "properties": {
    "election": {
      "type": "string",
      "description": "Election id, e.g. \"latvia-parliamentary-2026\""
    }
  },
  "required": [
    "election"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Election id"
        },
        "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2"
        },
        "country_name": {
          "type": "string",
          "description": "Country name"
        },
        "level": {
          "type": "string",
          "description": "national or regional"
        },
        "subdivision": {
          "type": [
            "string",
            "null"
          ],
          "description": "ISO 3166-2 code of the state or region, if the election belongs to one"
        },
        "subdivision_name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of that state or region"
        },
        "date": {
          "type": "string",
          "description": "Polling day (YYYY-MM-DD); for an expected date, the last day of date_window"
        },
        "date_status": {
          "type": "string",
          "description": "declared, tentative, or expected (no day set yet: see date_window)"
        },
        "date_window": {
          "type": [
            "object",
            "null"
          ],
          "description": "Only for date_status \"expected\": the period polling day is expected in",
          "properties": {
            "from": {
              "type": "string",
              "description": "First possible day (YYYY-MM-DD)"
            },
            "to": {
              "type": "string",
              "description": "Last possible day (YYYY-MM-DD)"
            },
            "label": {
              "type": [
                "string",
                "null"
              ],
              "description": "How we name the period, e.g. \"Q2 2029\""
            }
          }
        },
        "kind": {
          "type": "string",
          "description": "Kind of election"
        },
        "timezone": {
          "type": "string",
          "description": "IANA time zone"
        },
        "status": {
          "type": "string",
          "description": "Where the election is now: scheduled, counting, finalising, final-expected, ..."
        },
        "last_verified_at": {
          "type": "string",
          "description": "When the record was last checked against its sources"
        },
        "stale": {
          "type": "boolean",
          "description": "Not re-verified recently, or a stage is overdue"
        },
        "stale_reason": {
          "type": [
            "string",
            "null"
          ],
          "description": "Why it is stale"
        },
        "url": {
          "type": "string",
          "description": "Page on electionindex.org"
        },
        "poll_blackout": {
          "type": "object",
          "description": "Whether opinion polls for this election should be shown only behind a warning right now, checked at request time. reason \"ban\": a poll-publication ban applies under the cited law. reason \"unverified\": we hold no verified rule for this country, so we cannot say publishing is allowed; it is not a finding that polls are banned. Show polls behind a warning (mode warn) or not at all (mode withhold)",
          "properties": {
            "active": {
              "type": "boolean",
              "description": "Show polls only behind a warning now (see reason)"
            },
            "reason": {
              "type": [
                "string",
                "null"
              ],
              "description": "ban (a verified ban applies), unverified (no verified rule; warning until polls close), or null"
            },
            "mode": {
              "type": "string",
              "description": "warn: polls may be shown behind a warning; withhold: do not show them"
            },
            "verified": {
              "type": "boolean",
              "description": "We hold a rule for this country read against the law"
            },
            "starts_at": {
              "type": [
                "string",
                "null"
              ],
              "description": "When the ban starts (UTC ISO); null if the law sets none or no rule is known"
            },
            "ends_at": {
              "type": "string",
              "description": "When the ban or warning ends: the last polls close (UTC ISO)"
            },
            "ends_at_local": {
              "type": "string",
              "description": "The same moment in local time, with offset"
            },
            "timezone": {
              "type": "string",
              "description": "IANA time zone of ends_at_local"
            },
            "date_tentative": {
              "type": "boolean",
              "description": "Polling day is not declared yet, so these times may move"
            },
            "citation": {
              "type": [
                "string",
                "null"
              ],
              "description": "The law and provision behind an active or upcoming ban"
            },
            "rule": {
              "type": [
                "object",
                "null"
              ],
              "description": "The rule as recorded",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Rule id"
                },
                "law": {
                  "type": "string",
                  "description": "The law, by its own title"
                },
                "citation": {
                  "type": "string",
                  "description": "The provision"
                },
                "source": {
                  "type": "string",
                  "description": "Official text the rule was read in"
                },
                "scope": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "What is banned: publication, exit-polls"
                },
                "verified_at": {
                  "type": "string",
                  "description": "When the rule was last read against the source (YYYY-MM-DD)"
                },
                "note": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Reading notes"
                },
                "legal": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "Quote, English gloss, what it covers, whether it covers online publication, exemptions, penalty, enforcer"
                }
              }
            }
          }
        },
        "exit_poll": {
          "type": "object",
          "description": "When is the exit poll? An exit poll is a survey of voters leaving polling stations, never an official result",
          "properties": {
            "status": {
              "type": "string",
              "description": "expected (due), past (due time has passed, publication not observed), published (observed), none (checked: no exit poll is published), or unknown (not yet recorded)"
            },
            "race": {
              "type": [
                "string",
                "null"
              ],
              "description": "The race the answer is recorded on"
            },
            "at": {
              "type": [
                "string",
                "null"
              ],
              "description": "The one time to show: when it was published, else when it is due (UTC ISO)"
            },
            "confidence": {
              "type": [
                "string",
                "null"
              ],
              "description": "announced, precedent or estimate"
            },
            "checked_at": {
              "type": [
                "string",
                "null"
              ],
              "description": "For none: when that was checked (YYYY-MM-DD)"
            },
            "observed_source": {
              "type": [
                "string",
                "null"
              ],
              "description": "Page that shows the publication, once observed"
            },
            "from": {
              "type": [
                "string",
                "null"
              ],
              "description": "Earliest expected publication (UTC ISO)"
            },
            "by": {
              "type": [
                "string",
                "null"
              ],
              "description": "Latest expected publication (UTC ISO)"
            },
            "publisher": {
              "type": [
                "string",
                "null"
              ],
              "description": "Who publishes it, e.g. a broadcaster and its pollster"
            },
            "source": {
              "type": [
                "string",
                "null"
              ],
              "description": "Where it is published"
            },
            "observed_at": {
              "type": [
                "string",
                "null"
              ],
              "description": "When it was published, once observed"
            },
            "basis": {
              "type": [
                "string",
                "null"
              ],
              "description": "What the expectation, or the finding that none is published, rests on"
            },
            "official_result": {
              "type": "boolean",
              "description": "Always false"
            },
            "ban_ends": {
              "type": [
                "object",
                "null"
              ],
              "description": "While a verified ban is in force: at (UTC, polls close), local, citation, scope (publication: all polls; exit-polls: exit-poll results only)"
            }
          }
        },
        "races": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Race id"
              },
              "name": {
                "type": "string",
                "description": "Race name"
              },
              "status": {
                "type": "string",
                "description": "Race status"
              },
              "expected_stage_now": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Count stage expected on the authority page now"
              },
              "stages": {
                "type": "array",
                "items": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "Expected window for one count stage",
                  "properties": {
                    "stage": {
                      "type": "string",
                      "description": "Count stage id"
                    },
                    "from": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Earliest expected time (ISO)"
                    },
                    "by": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Latest expected time (ISO)"
                    },
                    "replacedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "When a later stage replaces it on the authority page"
                    },
                    "confidence": {
                      "type": "string",
                      "description": "announced (law or authority), precedent (last election) or estimate"
                    },
                    "citation": {
                      "type": "string",
                      "description": "Basis for the window"
                    },
                    "source": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Source of a stage published outside the authority page"
                    },
                    "observedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "When the authority actually published it; null until observed"
                    },
                    "observedSource": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "URL that proves the observation"
                    }
                  }
                }
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "Source URL"
                    },
                    "role": {
                      "type": "string",
                      "description": "What the page is for"
                    },
                    "kind": {
                      "type": "string",
                      "description": "race_results, feed, results_index, emb_home, directory or media"
                    },
                    "kindReason": {
                      "type": "string",
                      "description": "Why it was classified that way"
                    },
                    "resolvable": {
                      "type": "boolean",
                      "description": "Can this page answer a results question?"
                    },
                    "origin": {
                      "type": "string",
                      "description": "race, stage or authority"
                    },
                    "check": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Latest link check"
                    },
                    "figures_in_html": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "For a results page: whether its own HTML shows a count (false: figures load by script or the page only links on; null: not read)"
                    },
                    "oracle_reads": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Settlement-oracle lab reads of this URL: right, wrong, unread, lab, at"
                    }
                  }
                }
              },
              "results": {
                "type": "array",
                "description": "Published counts we hold, oldest first (empty until a count is recorded)",
                "items": {
                  "type": "object",
                  "properties": {
                    "stage": {
                      "type": "string",
                      "description": "Count stage of this version, e.g. final-result"
                    },
                    "published_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "When the publisher released it"
                    },
                    "source": {
                      "type": "string",
                      "description": "File or page the numbers were copied from"
                    },
                    "publisher": {
                      "type": "string",
                      "description": "Who published the count"
                    },
                    "licence": {
                      "type": "string",
                      "description": "Licence of the numbers"
                    },
                    "total_votes": {
                      "type": "integer",
                      "description": "Total votes cast in the race"
                    },
                    "electorate": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Registered voters"
                    },
                    "turnout": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Percent of registered voters who cast a ballot"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "candidate": {
                            "type": "string",
                            "description": "Candidate or list"
                          },
                          "ballot_name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Name on the ballot, as the authority's file writes it"
                          },
                          "party": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Party, where recorded"
                          },
                          "party_id": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Wikidata QID of the party"
                          },
                          "colour": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Party colour (#RRGGBB, from Wikidata)"
                          },
                          "votes": {
                            "type": "integer",
                            "description": "Votes"
                          },
                          "share": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Percent of total votes"
                          },
                          "seats": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Seats or electoral votes won"
                          },
                          "winner": {
                            "type": "boolean",
                            "description": "Most votes in this count"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "required": [
        "id",
        "country",
        "date",
        "status",
        "url"
      ]
    },
    "meta": {
      "type": "object",
      "description": "What this answer was built from; cite dataset_version",
      "properties": {
        "dataset_version": {
          "type": "string",
          "description": "Dataset version"
        },
        "built_at": {
          "type": "string",
          "description": "When the dataset was built"
        },
        "generated_at": {
          "type": "string",
          "description": "When this answer was generated"
        },
        "licence": {
          "type": "string",
          "description": "Licence and required credit"
        },
        "copyright": {
          "type": "string",
          "description": "Rights holder"
        },
        "doi": {
          "type": "string",
          "description": "Zenodo concept DOI: the latest archived release"
        },
        "docs": {
          "type": "string",
          "description": "Documentation URL"
        }
      },
      "required": [
        "dataset_version",
        "licence"
      ]
    }
  },
  "required": [
    "result",
    "meta"
  ]
}
🟒when_final(election, race)

When will a race's final (certified) result exist? Returns the expected window, its confidence (announced / precedent / estimate) and basis, how many days the final took last time, and the final count itself once we hold it. Use this before asking or settling any "final result" question.

Input Schema

{
  "type": "object",
  "properties": {
    "election": {
      "type": "string",
      "description": "Election id, e.g. \"brazil-general-2026\"; list ids with upcoming_elections"
    },
    "race": {
      "type": "string",
      "description": "Race id, e.g. \"president\"; optional when the election has one race"
    }
  },
  "required": [
    "election"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "properties": {
        "election": {
          "type": "string",
          "description": "Election id"
        },
        "race": {
          "type": "string",
          "description": "Race id"
        },
        "final_expected_from": {
          "type": [
            "string",
            "null"
          ],
          "description": "Earliest expected time of the final result"
        },
        "final_expected_by": {
          "type": [
            "string",
            "null"
          ],
          "description": "Latest expected time of the final result"
        },
        "confidence": {
          "type": [
            "string",
            "null"
          ],
          "description": "announced, precedent or estimate"
        },
        "basis": {
          "type": "string",
          "description": "Legal or historical basis"
        },
        "observed": {
          "type": "boolean",
          "description": "True once the authority has published the final result"
        },
        "final_result": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "stage": {
              "type": "string",
              "description": "Count stage of this version, e.g. final-result"
            },
            "published_at": {
              "type": [
                "string",
                "null"
              ],
              "description": "When the publisher released it"
            },
            "source": {
              "type": "string",
              "description": "File or page the numbers were copied from"
            },
            "publisher": {
              "type": "string",
              "description": "Who published the count"
            },
            "licence": {
              "type": "string",
              "description": "Licence of the numbers"
            },
            "total_votes": {
              "type": "integer",
              "description": "Total votes cast in the race"
            },
            "electorate": {
              "type": [
                "integer",
                "null"
              ],
              "description": "Registered voters"
            },
            "turnout": {
              "type": [
                "number",
                "null"
              ],
              "description": "Percent of registered voters who cast a ballot"
            },
            "rows": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "candidate": {
                    "type": "string",
                    "description": "Candidate or list"
                  },
                  "ballot_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Name on the ballot, as the authority's file writes it"
                  },
                  "party": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Party, where recorded"
                  },
                  "party_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Wikidata QID of the party"
                  },
                  "colour": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Party colour (#RRGGBB, from Wikidata)"
                  },
                  "votes": {
                    "type": "integer",
                    "description": "Votes"
                  },
                  "share": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Percent of total votes"
                  },
                  "seats": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Seats or electoral votes won"
                  },
                  "winner": {
                    "type": "boolean",
                    "description": "Most votes in this count"
                  }
                }
              }
            }
          },
          "description": "The final count, when we hold it"
        },
        "last_time": {
          "type": [
            "object",
            "null"
          ],
          "description": "How long the final result took the last time this kind of race was held here",
          "properties": {
            "election": {
              "type": "string",
              "description": "That election, e.g. \"Bundestag 2025\""
            },
            "polling_day": {
              "type": "string",
              "description": "Its polling day"
            },
            "final_on": {
              "type": "string",
              "description": "Day of its official final act"
            },
            "days": {
              "type": "integer",
              "description": "Days from polling day to the final act"
            },
            "act": {
              "type": [
                "string",
                "null"
              ],
              "description": "What the final act was"
            },
            "source": {
              "type": [
                "string",
                "null"
              ],
              "description": "Page showing the date"
            },
            "source_kind": {
              "type": "string",
              "description": "authority or press"
            }
          }
        }
      },
      "required": [
        "election",
        "race",
        "observed"
      ]
    },
    "meta": {
      "type": "object",
      "description": "What this answer was built from; cite dataset_version",
      "properties": {
        "dataset_version": {
          "type": "string",
          "description": "Dataset version"
        },
        "built_at": {
          "type": "string",
          "description": "When the dataset was built"
        },
        "generated_at": {
          "type": "string",
          "description": "When this answer was generated"
        },
        "licence": {
          "type": "string",
          "description": "Licence and required credit"
        },
        "copyright": {
          "type": "string",
          "description": "Rights holder"
        },
        "doi": {
          "type": "string",
          "description": "Zenodo concept DOI: the latest archived release"
        },
        "docs": {
          "type": "string",
          "description": "Documentation URL"
        }
      },
      "required": [
        "dataset_version",
        "licence"
      ]
    }
  },
  "required": [
    "result",
    "meta"
  ]
}
🟒check_question(election, race, stage, ask_at)

Is a question about a given count stage answerable at a given time? Returns verdict ok / too-early / inside-window / too-late, settle_after, and the resolvable sources. Built to stop questions that read the provisional count when they mean the final one.

Input Schema

{
  "type": "object",
  "properties": {
    "election": {
      "type": "string",
      "description": "Election id, e.g. \"brazil-general-2026\"; list ids with upcoming_elections"
    },
    "race": {
      "type": "string",
      "description": "Race id, e.g. \"president\"; optional when the election has one race"
    },
    "stage": {
      "type": "string",
      "enum": [
        "exit-poll",
        "election-night",
        "media-call",
        "intermediate-count",
        "final-result",
        "court-validation",
        "government"
      ],
      "description": "Default final-result"
    },
    "ask_at": {
      "type": "string",
      "description": "ISO date-time; default now"
    }
  },
  "required": [
    "election"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "properties": {
        "election": {
          "type": "string",
          "description": "Election id"
        },
        "race": {
          "type": "string",
          "description": "Race id"
        },
        "stage": {
          "type": "string",
          "description": "Count stage asked about"
        },
        "ask_at": {
          "type": "string",
          "description": "Time the question would be asked (ISO)"
        },
        "verdict": {
          "type": "string",
          "description": "ok, too-early, inside-window, too-late or no-window"
        },
        "settle_after": {
          "type": [
            "string",
            "null"
          ],
          "description": "Earliest time the question can be settled"
        },
        "replaced_at": {
          "type": [
            "string",
            "null"
          ],
          "description": "When a later stage replaces this one"
        },
        "detail": {
          "type": "string",
          "description": "Explanation"
        },
        "window": {
          "type": [
            "object",
            "null"
          ],
          "description": "Expected window for one count stage",
          "properties": {
            "stage": {
              "type": "string",
              "description": "Count stage id"
            },
            "from": {
              "type": [
                "string",
                "null"
              ],
              "description": "Earliest expected time (ISO)"
            },
            "by": {
              "type": [
                "string",
                "null"
              ],
              "description": "Latest expected time (ISO)"
            },
            "replacedAt": {
              "type": [
                "string",
                "null"
              ],
              "description": "When a later stage replaces it on the authority page"
            },
            "confidence": {
              "type": "string",
              "description": "announced (law or authority), precedent (last election) or estimate"
            },
            "citation": {
              "type": "string",
              "description": "Basis for the window"
            },
            "source": {
              "type": [
                "string",
                "null"
              ],
              "description": "Source of a stage published outside the authority page"
            },
            "observedAt": {
              "type": [
                "string",
                "null"
              ],
              "description": "When the authority actually published it; null until observed"
            },
            "observedSource": {
              "type": [
                "string",
                "null"
              ],
              "description": "URL that proves the observation"
            }
          }
        },
        "resolution_sources": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "description": "Source URL"
              },
              "role": {
                "type": "string",
                "description": "What the page is for"
              },
              "kind": {
                "type": "string",
                "description": "race_results, feed, results_index, emb_home, directory or media"
              },
              "kindReason": {
                "type": "string",
                "description": "Why it was classified that way"
              },
              "resolvable": {
                "type": "boolean",
                "description": "Can this page answer a results question?"
              },
              "origin": {
                "type": "string",
                "description": "race, stage or authority"
              },
              "check": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "Latest link check"
              },
              "figures_in_html": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "For a results page: whether its own HTML shows a count (false: figures load by script or the page only links on; null: not read)"
              },
              "oracle_reads": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "Settlement-oracle lab reads of this URL: right, wrong, unread, lab, at"
              }
            }
          }
        },
        "secondary_source": {
          "type": [
            "object",
            "null"
          ],
          "description": "Global Election Index's own page with the count we recorded: a secondary source when the authority's page cannot be read. Null until a count is recorded.",
          "properties": {
            "url": {
              "type": "string",
              "description": "Race results page"
            },
            "stage": {
              "type": "string",
              "description": "Count stage of the figures shown"
            },
            "final": {
              "type": "boolean"
            },
            "retrieved_at": {
              "type": "string",
              "description": "When we read the count (ISO)"
            },
            "copied_from": {
              "type": "string",
              "description": "The authority file or page the figures come from"
            },
            "publisher": {
              "type": "string",
              "description": "Publisher"
            }
          }
        }
      },
      "required": [
        "election",
        "race",
        "verdict"
      ]
    },
    "meta": {
      "type": "object",
      "description": "What this answer was built from; cite dataset_version",
      "properties": {
        "dataset_version": {
          "type": "string",
          "description": "Dataset version"
        },
        "built_at": {
          "type": "string",
          "description": "When the dataset was built"
        },
        "generated_at": {
          "type": "string",
          "description": "When this answer was generated"
        },
        "licence": {
          "type": "string",
          "description": "Licence and required credit"
        },
        "copyright": {
          "type": "string",
          "description": "Rights holder"
        },
        "doi": {
          "type": "string",
          "description": "Zenodo concept DOI: the latest archived release"
        },
        "docs": {
          "type": "string",
          "description": "Documentation URL"
        }
      },
      "required": [
        "dataset_version",
        "licence"
      ]
    }
  },
  "required": [
    "result",
    "meta"
  ]
}
🟒resolution_sources(election, race, resolvable_only)

Every known source URL for a race, classified (race_results, feed, results_index, emb_home, directory, media). Only race_results and feed can answer a results question; homepages never can. A results page whose HTML shows no count once one is due (figures_in_html false) is not resolvable. Sources a settlement oracle has answered from come first (oracle_reads). For our own copy of the count, see secondary_source in check_question.

Input Schema

{
  "type": "object",
  "properties": {
    "election": {
      "type": "string",
      "description": "Election id, e.g. \"brazil-general-2026\"; list ids with upcoming_elections"
    },
    "race": {
      "type": "string",
      "description": "Race id, e.g. \"president\"; optional when the election has one race"
    },
    "resolvable_only": {
      "type": "boolean",
      "description": "Only sources that can answer a results question (race_results, feed); default false"
    }
  },
  "required": [
    "election"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Source URL"
          },
          "role": {
            "type": "string",
            "description": "What the page is for"
          },
          "kind": {
            "type": "string",
            "description": "race_results, feed, results_index, emb_home, directory or media"
          },
          "kindReason": {
            "type": "string",
            "description": "Why it was classified that way"
          },
          "resolvable": {
            "type": "boolean",
            "description": "Can this page answer a results question?"
          },
          "origin": {
            "type": "string",
            "description": "race, stage or authority"
          },
          "check": {
            "type": [
              "object",
              "null"
            ],
            "description": "Latest link check"
          },
          "figures_in_html": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "For a results page: whether its own HTML shows a count (false: figures load by script or the page only links on; null: not read)"
          },
          "oracle_reads": {
            "type": [
              "object",
              "null"
            ],
            "description": "Settlement-oracle lab reads of this URL: right, wrong, unread, lab, at"
          }
        }
      }
    },
    "meta": {
      "type": "object",
      "description": "What this answer was built from; cite dataset_version",
      "properties": {
        "dataset_version": {
          "type": "string",
          "description": "Dataset version"
        },
        "built_at": {
          "type": "string",
          "description": "When the dataset was built"
        },
        "generated_at": {
          "type": "string",
          "description": "When this answer was generated"
        },
        "licence": {
          "type": "string",
          "description": "Licence and required credit"
        },
        "copyright": {
          "type": "string",
          "description": "Rights holder"
        },
        "doi": {
          "type": "string",
          "description": "Zenodo concept DOI: the latest archived release"
        },
        "docs": {
          "type": "string",
          "description": "Documentation URL"
        }
      },
      "required": [
        "dataset_version",
        "licence"
      ]
    }
  },
  "required": [
    "result",
    "meta"
  ]
}
🟑submit_correction(claim, evidence, election, race)

Report a mistake or a missing election, with a URL that proves it (ideally the official authority page). The report is public and is checked like any other claim; it never changes the data by itself. Returns the report id; follow it at https://electionindex.org/corrections.

Input Schema

{
  "type": "object",
  "properties": {
    "claim": {
      "type": "string",
      "description": "What is wrong and what is right, 10 to 2000 characters"
    },
    "evidence": {
      "type": "string",
      "description": "http(s) URL of the page that proves it"
    },
    "election": {
      "type": "string",
      "description": "Election id, if the report is about a listed election"
    },
    "race": {
      "type": "string",
      "description": "Race id within that election, if the report is about one race"
    }
  },
  "required": [
    "claim",
    "evidence"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Report id"
        },
        "at": {
          "type": "string",
          "description": "Filed at (ISO)"
        },
        "status": {
          "type": "string",
          "description": "open until checked"
        },
        "claim": {
          "type": "string",
          "description": "The report"
        },
        "evidence": {
          "type": "string",
          "description": "Evidence URL"
        },
        "url": {
          "type": "string",
          "description": "Where to follow the report"
        }
      },
      "required": [
        "id",
        "status",
        "url"
      ]
    },
    "meta": {
      "type": "object",
      "description": "What this answer was built from; cite dataset_version",
      "properties": {
        "dataset_version": {
          "type": "string",
          "description": "Dataset version"
        },
        "built_at": {
          "type": "string",
          "description": "When the dataset was built"
        },
        "generated_at": {
          "type": "string",
          "description": "When this answer was generated"
        },
        "licence": {
          "type": "string",
          "description": "Licence and required credit"
        },
        "copyright": {
          "type": "string",
          "description": "Rights holder"
        },
        "doi": {
          "type": "string",
          "description": "Zenodo concept DOI: the latest archived release"
        },
        "docs": {
          "type": "string",
          "description": "Documentation URL"
        }
      },
      "required": [
        "dataset_version",
        "licence"
      ]
    }
  },
  "required": [
    "result",
    "meta"
  ]
}
🟒dataset_health

Coverage, stale records, races still lacking a results page, and publisher-gate warnings, as counts with the first 20 of each (full report at /v1/health). Use to judge how far to trust an answer.

Input Schema

{
  "type": "object",
  "properties": {}
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "properties": {
        "elections": {
          "type": "integer",
          "description": "Profiled elections"
        },
        "races": {
          "type": "integer",
          "description": "Races"
        },
        "authorities": {
          "type": "integer",
          "description": "Counting authorities"
        },
        "discovered_unprofiled": {
          "type": "integer",
          "description": "Found, not yet profiled"
        },
        "races_with_resolvable_results_source": {
          "type": "integer",
          "description": "Races with a page that can answer a results question"
        },
        "races_without": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "First 20 races lacking one"
        },
        "races_without_total": {
          "type": "integer",
          "description": "All races lacking one"
        },
        "stale": {
          "type": "array",
          "items": {
            "type": "object"
          },
          "description": "First 20 stale records"
        },
        "stale_total": {
          "type": "integer",
          "description": "All stale records"
        },
        "links_checked": {
          "type": "integer",
          "description": "Links checked by the Auditor"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "object"
          },
          "description": "First 20 publisher-gate warnings"
        },
        "warnings_total": {
          "type": "integer",
          "description": "All publisher-gate warnings"
        },
        "warnings_by_level": {
          "type": "object",
          "description": "Warning count per level"
        },
        "full_report": {
          "type": "string",
          "description": "URL of the full report with every warning"
        }
      },
      "required": [
        "elections",
        "races"
      ]
    },
    "meta": {
      "type": "object",
      "description": "What this answer was built from; cite dataset_version",
      "properties": {
        "dataset_version": {
          "type": "string",
          "description": "Dataset version"
        },
        "built_at": {
          "type": "string",
          "description": "When the dataset was built"
        },
        "generated_at": {
          "type": "string",
          "description": "When this answer was generated"
        },
        "licence": {
          "type": "string",
          "description": "Licence and required credit"
        },
        "copyright": {
          "type": "string",
          "description": "Rights holder"
        },
        "doi": {
          "type": "string",
          "description": "Zenodo concept DOI: the latest archived release"
        },
        "docs": {
          "type": "string",
          "description": "Documentation URL"
        }
      },
      "required": [
        "dataset_version",
        "licence"
      ]
    }
  },
  "required": [
    "result",
    "meta"
  ]
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded10 tools
verifiedversion not recorded10 tools
verifiedversion not recorded8 tools
verifiedversion not recorded8 tools
verifiedversion not recorded8 tools
verifiedversion not recorded8 tools