List Federal Agencies
usaspending_list_agenciesList top-tier federal agencies with toptier codes, agency slugs, budget authority amounts, and obligation totals for the latest reported period. Returns the full directory unless limit is supplied; optional pagination slices the provider-sorted directory. Use this as the entry point for agency navigation — toptier codes and agency slugs are required inputs for usaspending_get_agency and agency-based filters on spending analysis tools.
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_list_agencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number when limit is supplied (defaults to page 1); ignored without limit. | |
| sort | No | Sort field: agency_name (alphabetical), budget_authority_amount, obligated_amount, or outlay_amount | agency_name |
| limit | No | Agencies per page; omitted returns the full directory. No maximum. | |
| order | No | Sort direction: asc or desc | asc |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| total | No | Total number of agencies in the full directory before pagination | |
| results | No | List of top-tier federal agencies with budget and obligation data | |
| has_next | No | Whether another page exists; present only when limit is supplied | |
| totalCount | No | Total number of agencies in the full directory before pagination | |
| agency_count | No | Total number of top-tier federal agencies returned |