Skip to main content
Glama

get_fec_independent_expenditures

Read-only

FEC Schedule E independent expenditures (api.open.fec.gov): uncoordinated spending FOR ('S') or AGAINST ('O') a federal candidate. Dates: YYYY-MM-DD, inclusive, on expenditure_date. Filers FEC classes as "a person or a group" (Form 5 filers, committee types I and E) are served when the filer is a group; a filer whose name is, or may be, a natural person's is withheld per record, as is any filer KeyVex holds no committee record for (FEC sale-or-use rule, 11 CFR 104.15). Fields: keyvex.com/docs/tools/get_fec_independent_expenditures

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

Input Schema

NameRequiredDescriptionDefault
cycleNoUndercounts (often null at FEC); prefer dates.
limitNoDefault 50.
sinceNo
untilNo
sub_idNo
sort_byNoDefault expenditure_date.
max_amountNoUSD, inclusive.
min_amountNoUSD, inclusive.
payee_nameNoCase-insensitive substring.
sort_orderNoDefault desc.
descriptionNoSubstring of the stated purpose.
candidate_idNo
committee_idNoThe spender.
exclude_memosNoDefault true: drops double-counting memo rows.
support_opposeNoS support, O oppose. Omit for both.
candidate_officeNoThe target's.
candidate_office_stateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changed
    • removedInput schema / properties / candidate_id / description
      Removed value: -"Target candidate being supported or opposed."
    • changedInput schema / properties / candidate_office / description
      Previous value: -"Office of the target candidate: H/S/P."New value: +"The target's."
    • removedInput schema / properties / candidate_office_state / description
      Removed value: -"2-letter state code of the target candidate (e.g., 'PA', 'TX')."
    • changedInput schema / properties / committee_id / description
      Previous value: -"FEC committee that spent the money (typically a super PAC). A filer who is, or may be, a natural person returns no rows — see the description."New value: +"The spender."
    • changedInput schema / properties / cycle / description
      Previous value: -"Election cycle (2-year transaction period), e.g. 2026/2024/2022. INCOMPLETE — the FEC leaves this field (two_year_transaction_period) null on many rows, so filtering by cycle undercounts, and the cycle index is not provisioned (a cycle query currently returns INDEX_MISSING). For complete cycle coverage, scope by DATE instead: since='<cycle start>' (e.g. since='2025-01-01' for the 2026 cycle)."New value: +"Undercounts (often null at FEC); prefer dates."
    • changedInput schema / properties / description / description
      Previous value: -"Case-insensitive substring on disbursement_description (free-text purpose of the spend, e.g., 'tv ad', 'mailer', 'digital advertising'). Client-side filter."New value: +"Substring of the stated purpose."
    • changedInput schema / properties / exclude_memos / description
      Previous value: -"When true (DEFAULT), filters out rows flagged memoed_subtotal=true — FEC's aggregate / receipt-account duplicates that double-count the same dollars across multiple rows. Top-spender queries are misleading without this filter. Pass exclude_memos=false to include the raw memo rows."New value: +"Default true: drops double-counting memo rows."
    • changedInput schema / properties / limit / description
      Previous value: -"Max records. Default 50, max 500."New value: +"Default 50."
    • changedInput schema / properties / max_amount / description
      Previous value: -"Inclusive upper bound on expenditure_amount."New value: +"USD, inclusive."
    • changedInput schema / properties / min_amount / description
      Previous value: -"Inclusive lower bound on expenditure_amount in dollars."New value: +"USD, inclusive."
    • changedInput schema / properties / payee_name / description
      Previous value: -"Case-insensitive substring on the payee_name (ad agency, media buyer, vendor). Client-side filter."New value: +"Case-insensitive substring."
    • removedInput schema / properties / since / description
      Removed value: -"Inclusive lower bound on expenditure_date (YYYY-MM-DD)."
    • changedInput schema / properties / sort_by / description
      Previous value: -"Sort key. Default: expenditure_date."New value: +"Default expenditure_date."
    • changedInput schema / properties / sort_order / description
      Previous value: -"Default: desc."New value: +"Default desc."
    • removedInput schema / properties / sub_id / description
      Removed value: -"FEC sub_id (globally unique row ID). Direct doc lookup."
    • changedInput schema / properties / support_oppose / description
      Previous value: -"'S' = filter to ads supporting the target; 'O' = filter to ads opposing. Omit for both."New value: +"S support, O oppose. Omit for both."
    • removedInput schema / properties / until / description
      Removed value: -"Inclusive upper bound on expenditure_date (YYYY-MM-DD)."
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only cover the read-only/open-world safety profile, and the description adds substantial behavior the agent could not otherwise know: individual-named filers and filers lacking a committee record are withheld per record under 11 CFR 104.15, and memo rows are dropped by default to avoid double counting. Those caveats directly affect how partial results should be interpreted, which is exactly the value a description should add on top of annotations.

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 dense sentences: what the dataset is, how dates and filers behave, then where to find field documentation. The scoping and caveat information is front-loaded and nothing is repeated from the schema verbatim except brief restatements that anchor the semantics.

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 17-parameter tool with no output schema, the description covers the important unknowns: date format, withholding rules, memo exclusion, and a documentation pointer for returned fields. The only gap is the absence of any explicit relationship to sibling FEC tools, which would help disambiguate at selection time.

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 71%, and the description supplements it with the date format (YYYY-MM-DD) and the fact that dates are inclusive on expenditure_date, which the schema leaves undocumented for since/until. It also clarifies the spender/target distinction for committee_id and candidate_office, though most remaining parameter meaning is already carried by the schema.

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?

The description names the exact dataset and endpoint ("FEC Schedule E independent expenditures (api.open.fec.gov)") and defines the resource precisely as uncoordinated spending FOR ('S') or AGAINST ('O') a federal candidate. That verb-plus-resource specificity clearly separates it from siblings like get_fec_contributions and get_fec_disbursements.

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

Usage Guidelines3/5

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

It gives real operational guidance: use YYYY-MM-DD dates, prefer dates over cycle because cycle undercounts, and omit support_oppose to get both. But it never states when to choose this tool over an alternative such as get_fec_contributions, so the agent must infer the boundary from the resource name alone.

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