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.

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": "list_candidates"
  }
}

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.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description goes well beyond that with domain-level behavior the agent could not infer: roughly a third of rows carry an FEC filer id, only sitting members of Congress carry a Bioguide id, both are null otherwise, and rows carry people_id only when a voting record exists. These sparsity caveats directly shape how an agent should interpret filter results.

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?

Four tight sentences, front-loaded with what the tool is and where it sits, then the coverage caveats, then the hand-off to sibling tools. No restated boilerplate and 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?

There is no output schema, and the description only sketches a few row fields (fec_id, bioguide, people_id) rather than the full return shape. Combined with zero required parameters and 7 optional filters, the definition is still sufficient for correct invocation, but a brief note on ordering or result volume would close the remaining gap.

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, but the description adds meaning the schema lacks: the AND-combination of filters and the null-distribution of fec_id/bioguide hints at how selective those filters really are. It doesn't add per-parameter syntax beyond the schema, which is already thorough, so it stops short of a 5.

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') and even names the backing endpoint. It distinguishes itself from siblings by routing to get_candidate for full records and to get_legislator/get_legislator_scorecard for voting history.

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

Usage Guidelines5/5

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

Gives concrete usage context: filters combine with AND, coverage spans STATE and federal candidates, and it explicitly names the alternative tools and the condition that selects them (pass a candidate id to get_candidate; pass people_id for voting history). Nothing important is left to inference.

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