# OpenFEC candidate fundraising totals

US federal candidates (House, Senate, President) with their campaign finance totals for an election: receipts, disbursements, cash on hand, debts, individual. Takes q, office, state and more, all optional.

US federal candidates (House, Senate, President) with their campaign finance totals for an election: receipts, disbursements, cash on hand, debts, individual contributions, party and incumbency. Filter by name, office, state, district, party and election year; sort by receipts.

- Tool ID: `openfec/candidate-totals`
- Provider: [OpenFEC](/providers/openfec.md)
- Capability: [Knowledge & research](/tools/knowledge.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "q": {
      "type": "string",
      "minLength": 2,
      "maxLength": 100,
      "description": "Candidate name, e.g. 'McCormick'"
    },
    "office": {
      "type": "string",
      "enum": [
        "H",
        "S",
        "P"
      ],
      "description": "H House, S Senate, P President"
    },
    "state": {
      "type": "string",
      "pattern": "^[A-Z]{2}$",
      "description": "State code, e.g. 'PA'"
    },
    "district": {
      "type": "string",
      "pattern": "^[0-9]{2}$",
      "description": "House district (2 digits), e.g. '07'"
    },
    "party": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "Party code, e.g. 'DEM' or 'REP'"
    },
    "election_year": {
      "type": "integer",
      "minimum": 1980,
      "maximum": 2100,
      "description": "Election year, e.g. 2024"
    },
    "sort": {
      "type": "string",
      "enum": [
        "-receipts",
        "-disbursements",
        "-cash_on_hand_end_period",
        "-election_year",
        "name"
      ],
      "default": "-receipts",
      "description": "Sort field, '-' for descending, e.g. '-receipts'"
    },
    "per_page": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 10,
      "description": "Results per page (1-50), e.g. 10"
    },
    "page": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "default": 1,
      "description": "Page number, e.g. 1"
    }
  },
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "openfec/candidate-totals",
  "input": {
    "office": "S",
    "state": "PA",
    "election_year": 2024,
    "per_page": 2
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Licence: Public domain (U.S. Government work).

Attribution: Data from the Federal Election Commission (openFEC).

[Provider documentation](https://api.open.fec.gov/developers/)

[REST inspection](https://api.agentik.cc/v1/tools/openfec/candidate-totals) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/openfec/candidate-totals) · [Agent index](/llms.txt)
