Skip to main content
Glama

2026 midterm election slate

get_midterms
Read-only

The election slate for 2026-11-03 (GET /v1/midterms): races, candidates and ballot measures per state, with official results where available. All data is official state election-office and FEC content collected by Delilah — no third-party attribution is required. live_results carries ONE ENTRY PER CONTEST, each with contest (e.g. primary:DEM, runoff:REP) and party: a closed primary returns each party separately and vote_pct is the share of THAT party's ballot, so never compare or rank candidates across two contests. Use for 'who is running for X' and results questions. Never call or project a race; report counts exactly as reported.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_midterms"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoCandidate or race name search.
yearNoElection year (default 2026).
levelNofederal | governor | state_executive | state_legislative
limitNoMax rows (default 50).
stateNoPostal code. Omit for all states.
offsetNoPagination offset.
chamberNoHouse | Senate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations: it discloses the data provenance and licensing position (official state election-office and FEC content via Delilah, no third-party attribution required) and details the live_results shape, including that closed primaries return each party as a separate contest with vote_pct measured against that party's own ballot. It also forbids projecting or calling races, which is exactly the kind of behavioral guardrail annotations cannot express.

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

Conciseness4/5

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

Front-loaded with the resource, date and endpoint before any caveats, and every sentence carries information. It is dense and slightly run-on in the live_results clause, but no sentence is 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?

For a 7-parameter tool with no output schema, the description does the important work: it describes the result collection and the contest/party semantics an agent would otherwise misread. It stops short of covering pagination behavior or the remaining result fields, which is a modest gap rather than a blocking one.

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 description coverage is 100%, so the parameters are already documented and the baseline would be 3. The description adds meaningful semantics around the result dimension — per-state scope, contest/party identifiers, and that vote_pct is relative to a single party's ballot — which clarifies how to interpret filtered results even though it does not add syntax for q, limit or offset.

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

Purpose5/5

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

States a specific resource (the 2026-11-03 election slate), names the backing endpoint (GET /v1/midterms), and enumerates the returned content: races, candidates and ballot measures per state plus official results. An agent can immediately tell this is the aggregate slate tool rather than a single-entity lookup like get_candidate or get_ballot_measure.

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 explicit triggers ('who is running for X' and results questions) and hard exclusions ('never call or project a race', 'never compare or rank candidates across two contests'). It does not, however, say when to prefer this over overlapping siblings such as list_candidates or get_candidate, so the boundary against those remains inferential.

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