Skip to main content
Glama

usaspending-mcp-server

Server Details

Access US federal award, recipient, agency, and spending analytics data from USAspending.gov.

Status
Healthy
Last Tested
Transport
Streamable HTTP
URL
Repository
cyanheads/usaspending-mcp-server
GitHub Stars
2
Server Listing
usaspending-mcp-server

Glama MCP Gateway

Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.

MCP client
Glama
MCP server

Full call logging

Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.

Tool access control

Enable or disable individual tools per connector, so you decide what your agents can and cannot do.

Managed credentials

Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.

Usage analytics

See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.

100% free. Your data is private.
Tool DescriptionsA

Average 4.5/5 across 17 of 18 tools scored.

Server CoherenceA
Disambiguation5/5

Each tool has a clearly distinct purpose, covering search, detail, aggregation, and code lookups without overlap. For example, award detail vs. award transactions vs. award subawards are well-separated.

Naming Consistency5/5

All tools follow a consistent 'usaspending_verb_noun' pattern with snake_case, making it predictable for both agents and humans.

Tool Count5/5

With 18 tools covering search, retrieval, aggregation, and code lookups, the surface is well-scoped for the domain of federal spending data without being overwhelming.

Completeness4/5

The tool set covers core CRUD-like operations (search, get, list) and aggregations by category, geography, and time. Minor gaps exist (e.g., no direct tool for listing all NAICS codes), but autocomplete mitigates this.

Available Tools

18 tools
usaspending_autocomplete_filtersAutocomplete Codes and Names
Read-onlyIdempotent
Inspect

Look up valid code values for filter fields by searching free-text descriptions. Use the type parameter to select the lookup table: naics (NAICS industry codes), psc (product/service codes), cfda (CFDA/Assistance Listing program numbers), awarding_agency (agency names and IDs), or recipient (recipient names with UEI/DUNS). Call this before filtering awards when you know a description but not the exact code. Returns matching codes and names for use in other tool filters.

ParametersJSON Schema
NameRequiredDescriptionDefault
typeYesLookup table to search: naics (industry codes), psc (product/service codes), cfda (assistance programs), awarding_agency (agency names), recipient (recipient names)
limitNoMaximum number of results to return (1–500), enforced client-side. The recipient lookup unions three upstream match buckets (name, UEI, DUNS) and can return up to 3x this value, so its results are capped to this limit before returning — the cap keeps them in bucket order, so name matches fill the page first and identifier matches appear only in whatever room is left. To resolve a specific UEI or DUNS, pass the identifier itself as search_text. naics/psc/cfda/awarding_agency honor this limit exactly.
search_textYesFree-text search string — use a description, keyword, or partial code to find matches

Output Schema

ParametersJSON Schema
NameRequiredDescription
capNoThe limit that was applied.
typeYesLookup table searched
queryYesSearch text sent to the autocomplete API
shownNoNumber of results returned.
totalYesNumber of results returned
resultsYesMatching codes and names
truncatedNoTrue when results were capped at the limit.
lookup_typeYesLookup table that was searched
search_textYesSearch text used
result_countYesNumber of matching results returned
usaspending_disaster_spendingDisaster and Emergency Spending
Read-onlyIdempotent
Inspect

Fetch disaster and emergency supplemental spending (COVID-19, hurricanes, infrastructure law, etc.) broken down by agency, CFDA assistance program, recipient, or geography. Use the dimension parameter to select the breakdown axis: overview (top-level totals), agency, cfda, recipient, or geography. Filter by DEF codes (Disaster/Emergency Funding codes) to isolate a specific emergency appropriation. DEF codes appear in usaspending_get_award account_obligations_by_defc and usaspending_get_agency def_codes fields.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (1-based)
limitNoMaximum results per page (1–100). Applies to the agency, cfda, and recipient dimensions; ignored for overview and geography, which are not paginated.
filtersNoFilters — def_codes is required for all non-overview dimensions (agency, cfda, recipient, geography)
dimensionYesBreakdown axis: overview (top-level totals and DEF code funding), agency (by awarding agency), cfda (by assistance program), recipient (by recipient), geography (by state/county)
spending_typeNoData type for the agency and recipient dimensions: award (award-level obligations and outlays) or total (includes direct non-award spending). Ignored for cfda and overview; the geography dimension is not user-controllable and always reports obligation-based amounts.award

Output Schema

ParametersJSON Schema
NameRequiredDescription
capNoThe result-set ceiling the upstream applied.
shownNoNumber of results returned on this page.
noticeNoCaveat explaining a capped total and how to bring the set under the cap.
resultsYesBreakdown results (empty for overview dimension)
overviewNoTop-level overview totals (dimension=overview only)
dimensionYesBreakdown dimension returned
truncatedNoTrue when the upstream capped the reachable result set rather than counting it.
totalCountNoTotal items for paginated dimensions (when available)
current_pageNoCurrent page (non-overview dimensions)
has_next_pageNoWhether there are more pages
page_metadataNoPagination metadata (non-overview dimensions)
spending_typeYesData type returned — award/total for agency, cfda, and recipient; obligation for geography; spending for overview
applied_dimensionYesBreakdown dimension applied
usaspending_get_agencyGet Agency Overview
Read-onlyIdempotent
Inspect

Fetch an agency's fiscal-year overview including mission, budgetary resources, obligation and outlay totals (for the most recent fiscal year), sub-agency count, and DEF codes for disaster/emergency funding. Also returns a paginated sub-agency breakdown with obligation and transaction counts. Accepts either a 3-digit toptier_code (e.g., 097 for DoD, 012 for Agriculture) or an agency_slug (e.g., department-of-defense) — both appear in usaspending_list_agencies results and award search results.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNoSub-agency breakdown page (1-based, 10 per page). Use with sub_agency_page_metadata.has_next to page through the full list.
agency_slugNoURL-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_codeNo3-digit toptier agency code (e.g., 097, 012) — from usaspending_list_agencies. Use either toptier_code or agency_slug, not both.

Output Schema

ParametersJSON Schema
NameRequiredDescription
nameNoAgency full name
noticeNoGuidance when the sub-agency breakdown is truncated — how to page for the rest. Absent when the last page is shown.
missionNoAgency mission statement
websiteNoAgency website URL
agency_idNoInternal agency ID
def_codesNoDisaster/Emergency Funding (DEF) codes applicable to this agency
fiscal_yearNoFiscal year the budgetary totals below reflect (most recent available)
abbreviationNoAgency abbreviation
sub_agenciesNoSub-agency breakdown within this toptier agency (one page)
toptier_codeNo3-digit toptier agency code
outlay_amountNoTotal outlays in USD for the fiscal year
sub_agency_pageYesCurrent sub-agency page returned
obligated_amountNoTotal amount obligated in USD for the fiscal year
sub_agency_totalNoTotal sub-agencies across all pages (when available)
subtier_agency_countNoNumber of sub-agencies within this toptier agency
has_more_sub_agenciesYesWhether more sub-agency pages are available
sub_agency_page_metadataNoPagination metadata for the sub-agency breakdown
budgetary_resources_amountNoTotal budgetary resources in USD for the fiscal year
usaspending_get_awardGet Award Details
Read-onlyIdempotent
Inspect

Fetch full details of a federal award by its generated unique award ID. Returns contract or assistance award data including recipient info, agency hierarchy, period of performance, place of performance, funding account linkages (account_obligations_by_defc), parent IDV information, and subaward count. Use generated_internal_id values from usaspending_search_awards as input. Recipient hashes can be passed to usaspending_get_recipient; NAICS codes can be used in usaspending_search_awards filters. For IDV-category awards (category="idv"), use usaspending_get_idv_awards to list the child contracts and task/delivery orders placed under them.

ParametersJSON Schema
NameRequiredDescriptionDefault
award_idYesGenerated unique award ID (e.g., CONT_AWD_FA862118F6251_9700_FA862115D6276_9700) — use generated_internal_id from usaspending_search_awards

Output Schema

ParametersJSON Schema
NameRequiredDescription
cfdaNoCFDA program (grants/assistance)
fainNoFederal Award Identification Number (for assistance)
piidNoProcurement Instrument Identifier (for contracts)
typeNoAward type code
naicsNoNAICS code (contracts)
categoryNoAward category (contract, grant, direct_payment, loan, idv, other)
recipientNoRecipient details
date_signedNoDate award was signed (YYYY-MM-DD)
descriptionNoAward description
parent_awardNoParent IDV information (contracts only)
total_outlaysNoTotal outlay amount in USD
funding_agencyNoFunding agency hierarchy
subaward_countNoNumber of subawards; use with usaspending_get_award_subawards
awarding_agencyNoAwarding agency hierarchy
total_obligationNoTotal obligation amount in USD
type_descriptionNoHuman-readable award type
place_of_performanceNoPlace of performance
period_of_performanceNoPeriod of performance dates
product_or_service_codeNoProduct or service code (contracts)
generated_unique_award_idNoGenerated unique award ID
base_and_all_options_valueNoBase and all options value in USD (contracts)
account_obligations_by_defcNoFunding breakdown by Disaster/Emergency Funding (DEF) code — links to disaster appropriations
usaspending_get_award_federal_accountsGet Award Federal Accounts
Read-onlyIdempotent
Inspect

List the Treasury federal accounts that funded an award, with the amount obligated from each and the funding agency behind it. This is the award → appropriation link: each row returns federal_account (AGENCY-MAIN format, e.g. 080-0120) to chain into usaspending_get_federal_account for the account budget detail. The award_id must be a generated_unique_award_id — from usaspending_search_awards (generated_internal_id field) or usaspending_get_award. Distinct from usaspending_get_award account_obligations_by_defc, which breaks funding down by Disaster/Emergency Funding code rather than by account. An award_id that does not exist returns an empty list rather than an error.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (1-based)
limitNoMaximum results per page (1–100)
award_idYesAward generated_unique_award_id (e.g., CONT_AWD_GSFC0198106DNAS526555_8000_-NONE-_-NONE-) — use generated_internal_id from usaspending_search_awards or generated_unique_award_id from usaspending_get_award

Output Schema

ParametersJSON Schema
NameRequiredDescription
noticeNoRecovery hint when results are empty — the award_id may not exist or may have no account linkage. Absent when results are present.
resultsYesFederal accounts funding this award
award_idYesAward ID queried
totalCountNoTotal number of funding accounts across all pages (when available)
current_pageYesCurrent page returned
has_next_pageYesWhether there are more pages of funding accounts
page_metadataYesPagination metadata
usaspending_get_award_subawardsGet Award Subawards
Read-onlyIdempotent
Inspect

List subaward contracts or grants under a prime federal award. Reveals the sub-contractor or sub-grantee layer — the organizations that actually perform the work. Each row shows the subaward number, amount, description, action date, and recipient. Check subaward_count on usaspending_get_award first to confirm subawards exist before calling this tool.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (1-based)
sortNoSort field for subawardsaction_date
limitNoMaximum subawards per page (1–100)
orderNoSort directiondesc
award_idYesGenerated unique award ID (generated_internal_id from usaspending_search_awards)

Output Schema

ParametersJSON Schema
NameRequiredDescription
noticeNoGuidance when no subawards were returned — suggests checking subaward_count from usaspending_get_award first. Absent when results are present.
resultsYesList of subawards under this prime award
award_idYesPrime award ID queried
totalCountNoTotal subaward count across all pages (when available)
current_pageYesCurrent page returned
has_next_pageYesWhether there are more pages of subawards
page_metadataYesPagination metadata
prime_award_idYesPrime award ID whose subawards were listed
usaspending_get_award_transactionsGet Award Transactions
Read-onlyIdempotent
Inspect

List individual transactions (contract modifications, grant amendments) on a federal award. Each transaction represents a change event — obligation modifications, performance period extensions, scope changes, etc. Use this to trace the spending history and obligation changes over the life of an award. Award IDs come from usaspending_search_awards (generated_internal_id field).

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (1-based)
sortNoSort field for transactionsaction_date
limitNoMaximum transactions per page (1–100)
orderNoSort directiondesc
award_idYesGenerated unique award ID (generated_internal_id from usaspending_search_awards)

Output Schema

ParametersJSON Schema
NameRequiredDescription
noticeNoGuidance when no transactions were returned — helps confirm the award_id is a valid generated_internal_id. Absent when results are present.
resultsYesList of transactions for this award
award_idYesAward ID queried
totalCountNoTotal transaction count across all pages (when available)
current_pageYesCurrent page returned
has_next_pageYesWhether there are more pages of transactions
page_metadataYesPagination metadata
queried_award_idYesAward ID whose transactions were listed
usaspending_get_federal_accountGet Federal Account
Read-onlyIdempotent
Inspect

Fetch a federal account's budget data: total obligations, gross outlays, and budgetary resources, plus the per-Treasury-Account-Symbol (TAS) component breakdown in children. 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.

ParametersJSON Schema
NameRequiredDescriptionDefault
account_codeYesFederal 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

ParametersJSON Schema
NameRequiredDescription
childrenNoTreasury 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_nameNoBureau name within the agency
fiscal_yearNoFiscal year of the financial data
account_titleNoFull account title
agency_identifierNoAgency identifier code
main_account_codeNoMain account code
parent_agency_nameNoManaging parent agency name
federal_account_codeNoFederal account code
total_obligated_amountNoTotal obligated amount in USD
total_budgetary_resourcesNoTotal budgetary resources in USD
total_gross_outlay_amountNoTotal gross outlay amount in USD
usaspending_get_federal_account_breakdownGet Federal Account Breakdown
Read-onlyIdempotent
Inspect

Fetch a federal account's obligations broken down by program activity (what the money funds) or object class (what it buys — personnel, supplies, contracts). Use the dimension parameter to select the axis. Account codes are AGENCY-MAIN format and come from usaspending_search_federal_accounts (its account_number output field), usaspending_get_award_federal_accounts (its federal_account field), or usaspending_get_federal_account. Paginated with an honest total count. For the account's own metadata and top-level totals, use usaspending_get_federal_account.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (1-based)
limitNoMaximum results per page (1–100)
dimensionYesBreakdown axis: program_activity (obligations by the program the funds support) or object_class (obligations by the category of goods/services purchased)
account_codeYesFederal 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

ParametersJSON Schema
NameRequiredDescription
noticeNoRecovery hint when results are empty — the account code may not exist or may have no obligations on this axis. Absent when results are present.
resultsYesBreakdown rows for the requested dimension
dimensionYesBreakdown dimension returned
totalCountNoTotal number of breakdown rows across all pages (when available)
account_codeYesFederal account code queried
current_pageYesCurrent page returned
has_next_pageYesWhether there are more pages of breakdown rows
page_metadataYesPagination metadata
applied_dimensionYesBreakdown dimension applied
usaspending_get_idv_awardsGet IDV Child Awards
Read-onlyIdempotent
Inspect

List child contracts and task/delivery orders placed under an IDV (Indefinite Delivery Vehicle) award. Each row includes the generated_unique_award_id to chain into usaspending_get_award for full detail. The award_id must be the generated_unique_award_id of the parent IDV — obtainable from usaspending_search_awards (generated_internal_id field) or from usaspending_get_award. IDV category awards returned by usaspending_get_award have child orders accessible via this tool.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (1-based)
sortNoField to sort child awards by (e.g., obligated_amount, period_of_performance_start_date)obligated_amount
typeNoType of child awards to list: child_awards = task/delivery orders, child_idvs = sub-IDVs, grandchild_awards = orders under sub-IDVschild_awards
limitNoMaximum results per page (1–100)
orderNoSort directiondesc
award_idYesParent IDV generated_unique_award_id (e.g., CONT_IDV_NNK14MA74C_8000) — use generated_internal_id from usaspending_search_awards or generated_unique_award_id from usaspending_get_award

Output Schema

ParametersJSON Schema
NameRequiredDescription
capNoThe per-page limit that was applied.
shownNoNumber of child awards returned on this page.
noticeNoRecovery hint when results are empty — the award may have no children of the requested type. Absent when results are present.
resultsYesChild awards placed under this IDV
award_idYesParent IDV award ID queried
truncatedNoTrue when this page was full and more child awards may remain beyond it.
current_pageYesCurrent page returned
has_next_pageYesWhether more pages of child awards may remain — set on a full page even when the upstream flag reports none.
page_metadataYesPagination metadata (no total count available from this endpoint)
parent_award_idYesParent IDV award ID whose children were listed
usaspending_get_recipientGet Recipient Profile
Read-onlyIdempotent
Inspect

Fetch a recipient's full profile including address, business type codes, parent organization, alternate names, and total transaction and loan amounts. Recipient IDs are UUID hashes with a level suffix (-P parent, -C child, -R standalone) from usaspending_search_recipients or usaspending_get_award. Optionally scope the totals to a specific fiscal year and award type. UEI and DUNS values can be used to cross-reference with SAM.gov and SEC EDGAR.

ParametersJSON Schema
NameRequiredDescriptionDefault
award_typeNoAward type category to scope award totals
fiscal_yearNoFiscal year to scope award totals (e.g., 2024)
recipient_idYesRecipient hash ID (UUID with level suffix, e.g., b97d19b0-833c-8d8f-3a2c-157d04ea55ef-P) — from usaspending_search_recipients or usaspending_get_award

Output Schema

ParametersJSON Schema
NameRequiredDescription
ueiNoUnique Entity Identifier (SAM.gov)
dunsNoDUNS number (legacy)
nameNoRecipient legal business name
locationNoRecipient address
parent_ueiNoParent organization UEI
parent_nameNoParent organization name
recipient_idNoRecipient hash ID
business_typesNoBusiness type codes
alternate_namesNoAlternate business names
recipient_levelNoHierarchy level: P = parent, C = child, R = standalone
total_transactionsNoTotal number of award transactions
total_transaction_amountNoTotal transaction (award) amount in USD; scoped by fiscal_year/award_type when provided
total_face_value_loan_amountNoTotal face value of loans in USD
total_face_value_loan_transactionsNoNumber of face-value loan transactions
usaspending_list_agenciesList Federal Agencies
Read-onlyIdempotent
Inspect

List all top-tier federal agencies with toptier codes, agency slugs, budget authority amounts, and obligation totals for the current fiscal year. 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.

ParametersJSON Schema
NameRequiredDescriptionDefault
sortNoSort field: agency_name (alphabetical), budget_authority_amount, obligated_amount, or outlay_amountagency_name
orderNoSort direction: asc or descasc

Output Schema

ParametersJSON Schema
NameRequiredDescription
totalYesTotal number of agencies returned
resultsYesList of top-tier federal agencies with budget and obligation data
agency_countYesTotal number of top-tier federal agencies returned
usaspending_search_awardsSearch Federal Awards
Read-onlyIdempotent
Inspect

Search federal awards by keyword, recipient, agency, award type, NAICS code, location, or date range. Returns ranked award summaries including recipient names, amounts, awarding agencies, and generated award IDs for use with usaspending_get_award. Award types: A/B/C/D = contracts, 02/03/04/05 = grants, 06/10 = direct payments, 07/08 = loans, IDV_A/IDV_B/IDV_C/IDV_D/IDV_E = IDVs. Dates must be ISO 8601 (YYYY-MM-DD). Earliest data: 2007-10-01 via search API. DoD contracts have a 90-day publication lag.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (1-based). Page-number pagination caps at a 50,000-result offset (page × limit), but the keyset cursor below is only returned while the offset stays under 10,000 — capture the cursor pair before paging past that, or the only way forward is page numbers.
sortNoSort field for resultsAward Amount
limitNoMaximum results per page (1–100)
orderNoSort directiondesc
filtersNoOptional analytics-style filter object mirroring the shape the spending analytics tools accept, for reusing one filter set across tools. When both this object and the equivalent top-level flat filters are given, this object wins per-field. recipient_id is intentionally not accepted — this endpoint silently ignores it; filter by recipient via recipient_name.
keywordNoFull-text search across award descriptions, recipient names, and place names
agency_nameNoFilter to a specific awarding agency by name (e.g., "Department of Defense"). Use usaspending_autocomplete_filters type=awarding_agency to find exact names.
naics_codesNoFilter by NAICS industry codes (e.g., ["541512"]). Use usaspending_autocomplete_filters type=naics to look up codes.
time_periodNoFilter awards by date range (action date)
recipient_nameNoFilter by recipient name (partial match); maps to this endpoint's recipient_search_text. This endpoint has no recipient_id filter — use usaspending_search_recipients to look up a recipient by name.
location_filterNoFilter by place of performance location. Uses FIPS codes and 2-letter state abbreviations, not place names — use a geocoding server to resolve names to codes first.
award_type_codesNoFilter by award type codes. All codes must belong to a single group: A/B/C/D (contracts), 02/03/04/05 (grants), 06/10 (direct payments), 07/08 (loans), IDV_A–IDV_E (IDVs). Defaults to contracts. Mixing groups across categories causes a 422 error.
last_record_unique_idNoKeyset-pagination cursor: the last_record_unique_id from a prior response page_metadata. Provide together with last_record_sort_value.
last_record_sort_valueNoKeyset-pagination cursor: the last_record_sort_value from a prior response page_metadata. Provide together with last_record_unique_id to fetch the next page past the 50,000-result page-number cap. The upstream stops emitting the pair once page × limit reaches 10,000, so take it from a page below that offset. When both cursor fields are supplied, page is ignored.

Output Schema

ParametersJSON Schema
NameRequiredDescription
capNoPer-page cap (limit) applied to this page.
pageYesCurrent page number returned
shownNoNumber of awards returned on this page.
noticeNoRecovery hint when results are empty — echoes applied filters and suggests how to broaden. Absent when results are present.
resultsYesMatching award summaries
has_nextYesWhether more results may remain — set on a full page even when the upstream flag reports none.
truncatedNoTrue when this page was capped at `limit` and more results may remain (continue via page or the cursor).
page_metadataYesPagination metadata. This endpoint does not return a total match count; use has_next and the cursor pair to page.
applied_keywordNoKeyword filter applied to this search
upstream_messagesNoNotices the USAspending API returned with this response — e.g. a supplied filter it ignored because this endpoint does not support it. Every successful response also carries a standing advisory that search covers 2007-10-01 onward; that advisory is boilerplate, not a verdict on the dates requested. Present whenever the API returns any messages.
applied_agency_nameNoAwarding agency name filter applied
applied_naics_codesNoNAICS codes filter applied (comma-separated)
applied_time_period_endNoEnd date filter applied (YYYY-MM-DD)
applied_time_period_startNoStart date filter applied (YYYY-MM-DD)
usaspending_search_federal_accountsSearch Federal Accounts
Read-onlyIdempotent
Inspect

List and keyword-search federal accounts by agency identifier or title keyword. Returns account numbers, names, managing agencies, and budgetary resources. Use account_number from results as input to usaspending_get_federal_account for full budget detail. Use usaspending_list_agencies to look up agency_identifier codes (3-digit strings, e.g. "097" for DoD).

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (1-based)
limitNoMaximum results per page (1–100)
keywordNoFilter accounts by name or title keyword (e.g., "defense", "transportation")
sort_fieldNoField to sort results bybudgetary_resources
sort_directionNoSort directiondesc
agency_identifierNo3-digit agency identifier code (e.g., "097" for Department of Defense). Use usaspending_list_agencies to look up codes.

Output Schema

ParametersJSON Schema
NameRequiredDescription
pageYesCurrent page number returned
noticeNoRecovery hint when results are empty — echoes applied filters and suggests how to broaden. Absent when results are present.
resultsYesMatching federal accounts
has_nextYesWhether there are more pages of results
totalCountNoTotal number of matching accounts across all pages (when available)
page_metadataYesPagination metadata
usaspending_search_recipientsSearch Award Recipients
Read-onlyIdempotent
Inspect

Search for organizations or individuals receiving federal funds by name, UEI (Unique Entity Identifier), or DUNS. Returns recipient hash IDs, UEI/DUNS identifiers, total award amounts, and hierarchy level. Results are paginated — use page to retrieve matches beyond the first page; page_metadata.total reports the full match count. Recipient hash IDs from this tool can be passed to usaspending_get_recipient for full profiles. Recipient level: P = parent organization, C = child entity, R = standalone.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (1-based) — request the next page to retrieve matches beyond the first
limitNoMaximum results per page (1–100)
keywordYesName, UEI, DUNS, or keyword to search for — partial matches are supported
award_typeNoFilter by award type category to scope the total amounts returned

Output Schema

ParametersJSON Schema
NameRequiredDescription
pageYesCurrent page number returned
noticeNoRecovery hint — how to continue to the next page when more results exist, or how to broaden the search when empty. Absent when the full match set fits on this page.
resultsYesMatching recipients
has_nextYesWhether there are more pages of results
totalCountNoTotal matching recipients across all pages
page_metadataYesPagination metadata — page through with the page input to reach later matches
recipient_countYesNumber of matching recipients returned on this page
usaspending_spending_by_categorySpending by Category
Read-onlyIdempotent
Inspect

Aggregate federal spending grouped by a specific dimension: NAICS industry code, PSC product/service code, awarding agency, funding agency, CFDA assistance program, or recipient. Returns top items with obligation amounts — useful for trend and breakdown analysis. Chain NAICS codes into usaspending_search_awards filters or usaspending_autocomplete_filters lookups.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (1-based)
limitNoMaximum items to return (1–100)
filtersNoOptional filters to scope the aggregation
categoryYesBreakdown dimension: naics (industry), psc (product/service code), awarding_agency, awarding_subagency, funding_agency, funding_subagency, cfda (assistance programs), recipient_duns, or recipient_parent_duns

Output Schema

ParametersJSON Schema
NameRequiredDescription
pageYesCurrent page returned
noticeNoRecovery hint when results are empty — suggests how to broaden filters. Absent when results are present.
resultsYesTop items in this category by obligation amount
categoryYesBreakdown dimension used
has_nextYesWhether there are more pages
totalCountNoTotal number of items in this category (when available)
page_metadataYesPagination metadata
applied_keywordsNoKeyword filters applied (comma-separated)
applied_agency_nameNoAwarding agency name filter applied
applied_naics_codesNoNAICS code filters applied (comma-separated)
applied_time_period_endNoEnd date filter applied (YYYY-MM-DD)
applied_time_period_startNoStart date filter applied (YYYY-MM-DD)
usaspending_spending_by_geographySpending by Geography
Read-onlyIdempotent
Inspect

Aggregate federal spending by state, county, or congressional district. Useful for per-capita analysis, regional comparisons, and mapping federal investment patterns. Geographic filters accept FIPS codes and 2-letter state abbreviations — NOT place names. Resolve place names to FIPS codes using a geocoding server (Census or OpenStreetMap) before applying location filters. Chain per-capita results with Census population data for meaningful comparisons.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum geographic areas to return, ranked by aggregated_amount descending (1–500). The upstream endpoint is not paginated — it returns every matching area in one response — so this caps client-side. A nationwide county query matches over 3,000 areas.
scopeYesWhich location to aggregate by: place_of_performance (where work is done) or recipient_location (where the recipient is based)
filtersNoOptional filters to scope the spending aggregation
geo_layerYesGeographic granularity: state (50 states), county (county-level), or district (congressional district)
subawardsNoInclude subaward data instead of prime award data

Output Schema

ParametersJSON Schema
NameRequiredDescription
capNoThe limit that was applied.
scopeYesLocation scope used for aggregation
shownNoNumber of geographic areas returned.
totalYesNumber of geographic areas returned
noticeNoRecovery hint when results are empty — suggests how to broaden filters. Absent when results are present.
resultsYesSpending totals by geographic area
geo_layerYesGeographic granularity used
truncatedNoTrue when the area list was capped at limit.
area_countYesNumber of geographic areas returned
applied_scopeYesLocation scope applied: place_of_performance or recipient_location
applied_keywordsNoKeyword filters applied (comma-separated)
applied_geo_layerYesGeographic granularity applied: state, county, or district
truncationCeilingNoObligation amount of the lowest-ranked area shown — an upper bound on omitted ones.
applied_agency_nameNoAwarding agency name filter applied
applied_naics_codesNoNAICS code filters applied (comma-separated)
total_areas_availableYesNumber of geographic areas the filters matched, before limit was applied
applied_time_period_endNoEnd date filter applied (YYYY-MM-DD)
applied_time_period_startNoStart date filter applied (YYYY-MM-DD)
applied_award_type_defaultNoDisclosure that no filters were supplied, so award_type_codes defaulted to the complete set. Absent when the caller supplied at least one filter.
usaspending_spending_over_timeSpending Over Time
Read-onlyIdempotent
Inspect

Fetch aggregated federal obligation amounts grouped by fiscal year, fiscal quarter, or fiscal month. All grouping is relative to the US government fiscal year (Oct–Sep), so fiscal month 1 is October, not January. Filter by award type, agency, recipient, keyword, or NAICS code to trace spending trends in a specific area. Returns per-period totals and optional breakdowns by award category (contracts, grants, direct payments, IDVs, loans, other).

ParametersJSON Schema
NameRequiredDescriptionDefault
groupYesTime grouping: fiscal_year (annual US govt FY: Oct–Sep), quarter (fiscal quarter), or month (fiscal month — an ordinal within the fiscal year, where 1 = October)
filtersNoFilters to scope the time-series aggregation. Defaults to contract awards when omitted.
subawardsNoAggregate subaward data instead of prime award data

Output Schema

ParametersJSON Schema
NameRequiredDescription
groupYesTime grouping used
noticeNoRecovery hint when no periods are returned — suggests broadening filters. Absent when results are present.
resultsYesTime-series of obligation totals
time_groupYesTime grouping applied: fiscal_year, quarter, or month
period_countYesNumber of time periods returned
total_periodsYesNumber of time periods returned
applied_keywordsNoKeyword filters applied (comma-separated)
applied_agency_nameNoAwarding agency name filter applied
applied_naics_codesNoNAICS code filters applied (comma-separated)
applied_time_period_endNoEnd date filter applied (YYYY-MM-DD)
applied_time_period_startNoStart date filter applied (YYYY-MM-DD)

Discussions

No comments yet. Be the first to start the discussion!

Try in Browser

Your Connectors

Sign in to create a connector for this server.