Skip to main content
Glama

Get a candidate

get_candidate
Read-only

Fetch one election candidate by id (GET /v1/candidates/{id}): their party, office, district and cycle, plus an FEC filer id where the campaign has filed and a Bioguide id for sitting members of Congress. When people_id is set, the candidate has a legislative voting record — pass it to get_legislator or get_legislator_scorecard to go from candidate to voting history in one hop. Get an id from list_candidates.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
idYesCandidate id from list_candidates or get_midterms.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover readOnly, destructive and openWorld, so the bar is lowered; the description still adds real value by describing what fields come back and by flagging the conditional people_id signal. It does not mention failure behavior (e.g. unknown id) or any rate/latency characteristics, keeping it out of the 5 band.

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?

Three tight sentences, front-loaded with the verb, resource and endpoint, then the payload contents, then the cross-tool routing. No filler and nothing duplicated unnecessarily.

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 no output schema, the description carries the burden of explaining returns and does so concretely (party, office, district, cycle, FEC filer id, Bioguide id). Minor gaps remain around id format and error handling for a nonexistent candidate.

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

Parameters3/5

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

Only one parameter and schema description coverage is 100%, so the schema already documents it fully; baseline 3 applies. The description repeats the sourcing hint ("Get an id from list_candidates") without adding format detail — notably it omits that the schema also accepts ids from get_midterms.

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 ("Fetch one election candidate by id") and even names the endpoint GET /v1/candidates/{id}. It immediately enumerates the returned facets (party, office, district, cycle, FEC filer id, Bioguide id), which cleanly separates it from list_candidates and get_candidate_photo.

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 routing guidance: get an id from list_candidates, and when people_id is set, hand it to get_legislator or get_legislator_scorecard to reach voting history. It lacks an explicit "do not use this for X" exclusion, so it falls just short of the top band.

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