Skip to main content
Glama

get_fec_candidate_profile

Read-only

FEC-registered candidates (House, Senate, President) from api.open.fec.gov, active in the three most recent cycles, refreshed weekly. include_committees adds committees[], principal campaign committee (designation 'P') first. Codes: keyvex.com/docs/tools/get_fec_candidate_profile

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_fec_candidate_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
cycleNoEven year, e.g. 2026.
limitNoDefault 50.
partyNoFEC code, exact, e.g. DEM, REP, LIB.
stateNo2-letter code.
officeNoH House, S Senate, P President.
sort_byNoDefault last_file_date.
districtNoHouse district, 2 digits: '01', or '00' for at-large.
sort_orderNoDefault desc.
active_onlyNotrue = candidate_inactive is false. Default false.
candidate_idNoe.g. 'S6PA00091'.
candidate_nameNoCase-insensitive substring of 'LASTNAME, FIRSTNAME'.
include_committeesNoDefault true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • changedInput schema / properties / active_only / description
      Previous value: -"When true, restricts to candidate_inactive=false (currently active filers). Default false (includes withdrawn / defeated / inactive)."New value: +"true = candidate_inactive is false. Default false."
    • changedInput schema / properties / candidate_id / description
      Previous value: -"FEC-assigned candidate ID (immutable across cycles), e.g., 'S6PA00091' for Pat Toomey, 'P80003338' for Mitt Romney's 2008 presidential bid. Direct doc lookup, fastest path."New value: +"e.g. 'S6PA00091'."
    • changedInput schema / properties / candidate_name / description
      Previous value: -"Case-insensitive substring against the FEC-filed candidate name (typically LASTNAME, FIRSTNAME format). Example: 'mccormick' or 'collins'."New value: +"Case-insensitive substring of 'LASTNAME, FIRSTNAME'."
    • changedInput schema / properties / cycle / description
      Previous value: -"Election cycle year (e.g., 2026). Returns candidates whose cycles[] includes this value. Common cycles: 2022, 2024, 2026."New value: +"Even year, e.g. 2026."
    • changedInput schema / properties / district / description
      Previous value: -"House district as 2-digit string ('01'-'53') or 'AL' for at-large. Senate/President leave blank."New value: +"House district, 2 digits: '01', or '00' for at-large."
    • changedInput schema / properties / include_committees / description
      Previous value: -"When true (default), each returned candidate is enriched with a `committees` array containing all FEC committees linked via candidate_ids[]. The principal campaign committee (designation='P') is listed first. Set false to skip the committee fetch for faster responses when you only need candidate profile fields."New value: +"Default true."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum candidates to return. Default 50, max 500."New value: +"Default 50."
    • changedInput schema / properties / office / description
      Previous value: -"Office code: H=House, S=Senate, P=President. Narrows ambiguous name matches."New value: +"H House, S Senate, P President."
    • changedInput schema / properties / party / description
      Previous value: -"Party code: DEM | REP | LIB | GRE | IND | OTH."New value: +"FEC code, exact, e.g. DEM, REP, LIB."
    • changedInput schema / properties / sort_by / description
      Previous value: -"Sort key. Default: last_file_date (most recent first)."New value: +"Default last_file_date."
    • changedInput schema / properties / sort_order / description
      Previous value: -"Default: desc."New value: +"Default desc."
    • changedInput schema / properties / state / description
      Previous value: -"2-letter state abbreviation (e.g., 'PA', 'CA'). Empty for President. Combine with office=S to find the senators from a state."New value: +"2-letter code."
  2. First observed

TDQS

B3.4/5.0
Behavior3/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 adds genuine context beyond them: weekly refresh, a three-cycle scope limit, and that include_committees nests committees[] with the principal campaign committee first. It still says nothing about how large result sets behave or what a profile record contains.

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 short sentences, front-loaded with the resource and scope, then the one non-obvious parameter behavior, then the docs pointer. Nothing is redundant and 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 12-parameter, zero-required lookup with annotations covering the safety profile, the description covers source, freshness, scope and the one surprising parameter. With no output schema, it leaves the returned candidate fields unexplained and says nothing about result volume or pagination, which keeps it below a 5.

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?

Schema description coverage is 100%, so the schema carries the burden and the baseline is 3. The description does add real meaning for one flag, explaining that include_committees returns committees[] ordered with designation 'P' first, and it bounds cycle to the three most recent, but the other ten parameters get nothing beyond the schema.

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 resource (FEC-registered candidates for House, Senate, President) plus the upstream source and refresh cadence, which makes it distinguishable from the member-profile and FEC contributions siblings. It does not explicitly contrast with get_member_profile, 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 Guidelines2/5

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

No sentence says when to reach for this tool versus get_member_profile or the FEC contribution tools. Usage is only implied by the data scope (three most recent cycles) and the docs link; there are no exclusions or selection criteria.

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