# USAspending agency budget by year

Budgetary resources, obligations and outlays of one US federal agency for every fiscal year since 2017, with obligations by reporting period. Needs toptier code. Served by USAspending.gov.

Budgetary resources, obligations and outlays of one US federal agency for every fiscal year since 2017, with obligations by reporting period. Tells how large an agency's budget is and how fast it is being committed. Codes: 097 Defense, 075 HHS, 089 Energy, 070 Homeland Security, 036 Veterans Affairs, 069 Transportation, 012 Agriculture, 013 Commerce, 020 Treasury, 080 NASA, 068 EPA, 047 GSA, 1601 Labor.

- Tool ID: `usaspending/agency-budget`
- Provider: [USAspending.gov](/providers/usaspending.md)
- Capability: [B2B data](/tools/b2b-data.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": {
    "toptier_code": {
      "type": "string",
      "pattern": "^[0-9]{3,4}$",
      "description": "Agency toptier code, e.g. '089' (Department of Energy)"
    }
  },
  "required": [
    "toptier_code"
  ],
  "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": "usaspending/agency-budget",
  "input": {
    "toptier_code": "089"
  }
}
```

## 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 USAspending.gov (U.S. Department of the Treasury, Bureau of the Fiscal Service).

[Provider documentation](https://api.usaspending.gov/docs/endpoints)

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

---

[HTML page](/providers/usaspending/agency-budget) · [Agent index](/llms.txt)
