Get Agency Overview
usaspending_get_agencyFetch an agency's fiscal-year overview including mission, budgetary resources, obligation and outlay totals (for the most recent fiscal year with reported budget data), sub-agency count, and disaster/emergency funding codes. def_codes_fiscal_year names the fiscal year covered by def_codes, which follows the budget totals when available. budget_by_fiscal_year carries the same totals for every fiscal year with reported data since FY2017, newest first, for budget trends; a row whose reported_through_period is below 12 is year-to-date, so compare it to full years with care. Also returns a paginated sub-agency breakdown with obligation and transaction counts for the same fiscal year as the budget totals (the current fiscal year when no budget year is available within 5 seconds); sub_agency_fiscal_year names the year it covers. Accepts exactly one directory toptier_code (e.g., 097 for DoD, 1601 for Labor; one/two-digit numeric inputs are zero-padded to three digits) or an agency_slug (e.g., department-of-defense) — both appear in usaspending_list_agencies results and award search results. When the budget, sub-agency or DEF code request fails, the overview is still returned and unavailable_sections names each missing section with its reason.
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_get_agency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Sub-agency breakdown page (1-based, 10 per page). Use with sub_agency_page_metadata.has_next to page through the full list. | |
| agency_slug | No | URL-friendly agency slug (e.g., department-of-defense) — from usaspending_list_agencies or award search results. Use either toptier_code or agency_slug, not both. | |
| toptier_code | No | Directory toptier agency code (e.g., 097, 012, 1601) from usaspending_list_agencies. One/two-digit numeric values are padded to three digits (80 becomes 080); three/four-digit codes are preserved. Use either toptier_code or agency_slug, not both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Agency full name | |
| error | No | Present when the call failed. Absent on success. | |
| notice | No | How to page for more sub-agencies when the breakdown is truncated, and which sections failed to load and whether a retry may recover them. Absent when neither applies. | |
| mission | No | Agency mission statement | |
| website | No | Agency website URL | |
| agency_id | No | Internal agency ID | |
| def_codes | No | Disaster/Emergency Funding (DEF) codes for the budget year, or for the default overview when no budget year is available. Empty when upstream returned no codes. Omitted when unavailable. | |
| fiscal_year | No | Fiscal year the budgetary totals below reflect: the most recent year with reported budget data, which can trail the current fiscal year (a new year has no amounts until the agency first reports in it) | |
| abbreviation | No | Agency abbreviation | |
| sub_agencies | No | Sub-agency breakdown within this toptier agency (one page) | |
| toptier_code | No | Directory toptier agency code, which can have three or four digits | |
| outlay_amount | No | Total outlays in USD for the fiscal year | |
| sub_agency_page | No | Current sub-agency page returned. Absent when the sub-agency request failed. | |
| obligated_amount | No | Total amount obligated in USD for the fiscal year | |
| sub_agency_total | No | Total sub-agencies across all pages (when available) | |
| subtier_agency_count | No | Number of sub-agencies within this toptier agency | |
| unavailable_sections | No | Sections omitted because their request failed while the agency overview loaded. Absent when every section loaded. | |
| budget_by_fiscal_year | No | Budgetary resources, obligations, and outlays for every fiscal year with reported data since FY2017, newest first. The first row is the year fiscal_year and the totals above report. Each row is as of the latest closed reporting period of its year. Absent when no year carries data or the budget request failed. | |
| def_codes_fiscal_year | No | Fiscal year covered by def_codes, when USAspending reports it | |
| has_more_sub_agencies | No | Whether more sub-agency pages are available. Absent when the sub-agency request failed, since pagination is then unknown. | |
| sub_agency_fiscal_year | No | Fiscal year the sub-agency breakdown covers, as upstream reports it: the same year as fiscal_year, or the current fiscal year when no budget year was available within 5 seconds — so it can differ from fiscal_year even when both are present. Absent when the sub-agency request failed, or when upstream reports no year for a breakdown requested without one. | |
| sub_agency_page_metadata | No | Pagination metadata for the sub-agency breakdown | |
| budgetary_resources_amount | No | Total budgetary resources in USD for the fiscal year |