query
Fetch campaign finance data by selecting entity type (candidate, committee, district, office, party, cycle) and category (summary, contributions, loans, reports, etc.). Filter by date window and options like dedup or min amount.
Instructions
Flexible category selector — pick {who/where} × {what} in one call.
select: any of candidate, committee (Org ID), district, office, party, cycle. category: summary | combined | continuing_total | contributions | loans | report | filing_history | flags. window: {from, to} ISO dates (optional; defaults to the calendar). options: {dedup, min_amount, include_amended}. Returns a uniform envelope {as_of, selection, category, data, caveats}.
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": {
"select": "<select>",
"category": "<category>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| select | Yes | ||
| category | Yes | ||
| window | No | ||
| options | No | ||
| year | No |