Search Federal Accounts
usaspending_search_federal_accountsList and keyword-search federal accounts by directory toptier code or title keyword. Returns account numbers, names, managing agencies, and budgetary resources. fiscal_year selects the resource amounts, not account membership; omit it for the latest available submission year. Search and detail totals use different calculations and can differ for the same year. Use account_number from results as input to usaspending_get_federal_account for full budget detail. Use usaspending_list_agencies to look up the input agency_identifier (directory toptier_code, e.g. "097" for DoD or "1601" for Labor); account rows return their account-prefix agency_identifier, e.g. "016" for Labor.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "usaspending_search_federal_accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-based) | |
| limit | No | Accounts per page. Default 10, at most 100 per call. | |
| keyword | No | Filter accounts by name or title keyword (e.g., "defense", "transportation") | |
| sort_field | No | Field to sort results by | budgetary_resources |
| 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. | |
| sort_direction | No | Sort direction | desc |
| agency_identifier | No | Directory toptier_code from usaspending_list_agencies (e.g., "097" for Defense, "1601" for Labor). This differs from the account-prefix agency_identifier returned in account rows (e.g., "016" for Labor). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Current page number returned | |
| error | No | Present when the call failed. Absent on success. | |
| notice | No | A reduced limit, and a recovery hint when results are empty — echoes applied filters and suggests how to broaden. Absent when neither applies. | |
| results | No | Matching federal accounts | |
| has_next | No | Whether there are more pages of results | |
| limitClamp | No | Present when a count input above its per-call cap was reduced to the cap. | |
| totalCount | No | Total number of matching accounts across all pages (when available) | |
| fiscal_year | No | Effective fiscal year of the budgetary resources, as reported by USAspending; account membership spans all submitted years | |
| page_metadata | No | Pagination metadata |