Get Federal Account
usaspending_get_federal_accountFetch a federal account's budget data: total obligations, gross outlays, and budgetary resources, plus the per-Treasury-Account-Symbol (TAS) component breakdown in children. fiscal_year selects a reporting year; omit it for the current federal fiscal year. An empty year retains metadata and a notice, without substituting another year. Federal accounts connect appropriations law to actual agency spending. Account codes come from usaspending_search_federal_accounts (its account_number output field) or usaspending_get_award_federal_accounts (its federal_account field), and are formatted as AGENCY-MAIN (e.g., 097-0100 for DoD Operation and Maintenance). For obligations broken down by program activity or object class, use usaspending_get_federal_account_breakdown.
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": {
"account_code": "<account_code>"
},
"name": "usaspending_get_federal_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fiscal_year | No | Federal fiscal year (2001 through the current federal fiscal year; October 1 rollover). Omit or leave blank to preserve the endpoint default. | |
| account_code | Yes | Federal account code in AGENCY-MAIN format (e.g., 097-0100). Returned as account_number by usaspending_search_federal_accounts and as federal_account by usaspending_get_award_federal_accounts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Explains when the selected fiscal year has no financial totals or Treasury Account Symbol components; no alternative year is substituted | |
| children | No | Treasury Account Symbol (TAS) components that make up this federal account, each with its own obligated, outlay, and budgetary-resource amounts. Omitted when the upstream returns none. | |
| bureau_name | No | Bureau name within the agency | |
| fiscal_year | No | Fiscal year of the financial data | |
| account_title | No | Full account title | |
| agency_identifier | No | Agency identifier code | |
| main_account_code | No | Main account code | |
| parent_agency_name | No | Managing parent agency name | |
| federal_account_code | No | Federal account code | |
| total_obligated_amount | No | Total obligated amount in USD | |
| total_budgetary_resources | No | Total budgetary resources in USD | |
| total_gross_outlay_amount | No | Total gross outlay amount in USD |