Skip to main content
Glama

Election Index

Upcoming elections

upcoming_elections
Read-only

List national elections in a date range (default: today to +365 days), with each race's expected count stage right now. Use for "when is the next election in X" or "which elections are this month".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoYYYY-MM-DD
fromNoYYYY-MM-DD
countryNoISO 3166-1 alpha-2, e.g. "LV"
include_discoveredNoAlso list elections found on Wikidata but not yet verified by Election Index

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaYesWhat this answer was built from; cite dataset_version
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety and world-scope are covered. The description adds the default date window and notes that each race's expected count stage is returned, but says nothing about verification status of results or result limits. Reasonable added value given the lower bar set by annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with what is returned and the default range, followed by example phrasings. No filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return values need no explanation, and all four params are described in the schema. The description covers defaults and intent; the only gap is that it doesn't flag how unverified/discovered elections appear in results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the four parameters are documented there; baseline would be 3. The description adds the non-schema default of 'today to +365 days' for from/to, which is genuine semantic information an agent needs when omitting those arguments.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('List') and resource ('national elections') plus the scoping dimension (date range) and a default window. It does not differentiate itself from siblings like when_final or election_status, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives two concrete example questions ('when is the next election in X', 'which elections are this month') that clearly frame the use case. It names no alternatives or exclusions, so it is clear context without routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources