Skip to main content
Glama

Search election candidates

list_candidates
Read-only

Search the election-candidate directory (GET /v1/candidates): people running for office. Filters combine with AND. Roughly a third carry an FEC filer id and sitting members of Congress carry a Bioguide id; both are null otherwise. Rows also carry people_id where the person has a legislative voting record — pass it to get_legislator / get_legislator_scorecard to go from candidate to voting history in one hop. Covers STATE and federal candidates. Pass a candidate id to get_candidate for the full record.

Input Schema

NameRequiredDescriptionDefault
cycleNoElection cycle / year filter, e.g. 2026.
limitNoMax rows to return (default 50).
stateNo2-letter postal code filter.
fec_idNoFilter by FEC filer id.
officeNoOffice filter: H, S, P, House, Senate, President, or a whole word from a state office name (min 3 chars; unknown short values are rejected).
offsetNoPagination offset.
bioguideNoFilter by federal Bioguide id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only/open-world safety, so the description adds useful data-quality context: filters combine with AND, roughly a third of rows carry an FEC id, only sitting members carry a Bioguide id, and people_id is populated only when a voting record exists. It does not cover pagination totals or result ordering, but the behavioral context it does add is substantive.

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?

The description is dense and front-loaded with purpose, then routing hints. Every clause carries information, though the middle sentences about FEC and Bioguide ids are somewhat compressed.

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?

No output schema exists, so the description must explain return values. It describes key row fields (fec_id, bioguide, people_id) and coverage, but omits the candidate name/id field and pagination behavior, leaving minor gaps for an agent forming expectations about 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 baseline is 3. The description adds meaning beyond the schema by explaining that filters combine with AND and by clarifying when fec_id and bioguide will be non-null, which helps the agent interpret filter behavior.

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 verb and resource ('Search the election-candidate directory... people running for office') plus the underlying endpoint. This clearly separates it from siblings like list_legislators and get_candidate.

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?

Explicitly routes the agent: use get_candidate for the full record via candidate id, and get_legislator / get_legislator_scorecard for voting history via people_id. It states scope (STATE and federal candidates) but does not explicitly contrast with list_legislators.

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