Get USASpending Spending By Category
get_usaspending_spending_by_categoryRetrieve spending breakdowns by award category—contracts, grants, loans, and more—for a specified federal agency and fiscal year.
Instructions
Get spending breakdown by award category (contracts, grants, loans, etc.) for an agency and fiscal year.
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": {
"agency_code": "<agency_code>"
},
"name": "get_usaspending_spending_by_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agency_code | Yes | 3-digit agency code (e.g., '075' for HHS) | |
| fiscal_year | No | Fiscal year (default: 2024) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the tool could not do what was asked: a message, or an object with a stable `code` (bad_request, not_found, upstream_error, ...) and a `message`. The call is then marked isError. | |
| warnings | No | Caveats about this result, for example a filter the upstream did not honor. |