Skip to main content
Glama

get_federal_grants

Read-only

Federal grants and cooperative agreements (award types 02-05, F001, F002) from api.usaspending.gov, queried live over the full dataset (October 2007 on); in an outage, a recent cached window (source 'cache'). award_amount and total_outlays may be null (not reported), not $0. total_count is USAspending's count for the whole query. Detail: keyvex.com/docs/tools/get_federal_grants

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": "get_federal_grants"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 50.
sinceNoYYYY-MM-DD, inclusive, on last_modified_date, or start_date if sorted by it.
untilNoInclusive, same field as since.
sort_byNoDefault last_modified_date.
min_amountNoUSD, inclusive, on award_amount.
sort_orderNoDefault desc.
cfda_numberNoe.g. '93.847'.
recipient_ueiNo12 characters; that UEI's own grants only.
recipient_nameNoCase-insensitive substring; also matches parent names.
awarding_agencyNoExact, case-sensitive TOPTIER name, e.g. 'Department of Energy' (not 'DOE').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • changedInput schema / properties / awarding_agency / description
      Previous value: -"The TOPTIER awarding agency name — exact and case-sensitive; a sub-agency name (e.g. 'National Institutes of Health') or an abbreviation ('NSF') matches nothing. Examples: 'National Science Foundation', 'Department of Energy', 'Department of Health and Human Services'."New value: +"Exact, case-sensitive TOPTIER name, e.g. 'Department of Energy' (not 'DOE')."
    • changedInput schema / properties / cfda_number / description
      Previous value: -"Catalog of Federal Domestic Assistance program number (e.g., '93.847' = NIH R01 research grants, '20.939' = highway safety improvement). Filter to one program."New value: +"e.g. '93.847'."
    • changedInput schema / properties / limit / description
      Previous value: -"Max records. Default 50, max 500."New value: +"Default 50."
    • changedInput schema / properties / min_amount / description
      Previous value: -"Inclusive lower bound on award_amount in dollars."New value: +"USD, inclusive, on award_amount."
    • changedInput schema / properties / recipient_name / description
      Previous value: -"Case-insensitive substring on the recipient's name (e.g., 'Stanford', 'Mayo Clinic'), applied by USAspending — which also matches the PARENT's name, so a parent name returns its subsidiaries' grants. Combined with recipient_uei it is matched against that recipient's OWN name instead, and coverage_warning says how many grants it removed."New value: +"Case-insensitive substring; also matches parent names."
    • changedInput schema / properties / recipient_uei / description
      Previous value: -"Exact federal UEI (Unique Entity ID) — most precise: only grants made to this UEI itself. If it is also the parent of other recipients, their grants are NOT included and total_count is omitted — coverage_warning names the parent; use recipient_name with that name for the whole family."New value: +"12 characters; that UEI's own grants only."
    • changedInput schema / properties / since / description
      Previous value: -"Inclusive lower bound (YYYY-MM-DD) on last_modified_date — or on start_date when sort_by is start_date."New value: +"YYYY-MM-DD, inclusive, on last_modified_date, or start_date if sorted by it."
    • changedInput schema / properties / sort_by / description
      Previous value: -"Sort key. since/until apply to start_date when this is start_date, and to last_modified_date for every other sort. Default: last_modified_date."New value: +"Default last_modified_date."
    • changedInput schema / properties / sort_order / description
      Previous value: -"Default: desc."New value: +"Default desc."
    • changedInput schema / properties / until / description
      Previous value: -"Inclusive upper bound (YYYY-MM-DD), on the same date field as since."New value: +"Inclusive, same field as since."
  2. First observed

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only/open-world safety, and the description adds real behavior beyond them: live full-dataset query since October 2007, a degraded cached-window mode during outages, and the crucial caveat that award_amount and total_outlays can be null for unreported values rather than zero. The note that total_count reflects USAspending's count for the whole query, not the returned page, is exactly the kind of disclosure that prevents misreading results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four dense sentences with zero filler: scope and source first, then failure mode, then value semantics, then the docs pointer. Every clause carries information an agent needs before calling.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description does the necessary work of explaining key return fields' semantics (award_amount, total_outlays, total_count) and the live-vs-cache source flag. It stops short of describing the result envelope shape or how to page past the limit, though the presence of since/until and sort options makes that a modest gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all ten parameters are already documented in the schema, including defaults, formats, and the case-sensitivity warning on awarding_agency. The description adds meaning about result values (nulls, count semantics) rather than about individual parameters, so it does not exceed the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (federal grants and cooperative agreements), enumerates the exact award-type codes included (02-05, F001, F002), names the upstream source (api.usaspending.gov), and gives the dataset's time depth. An agent can tell this is the grants-specific retrieval tool and not a general awards or contracts tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implicit usage is clear from the resource framing, and the description explains the outage fallback (source 'cache') which is a conditional-use hint. However, it never states when to prefer this over an alternative such as get_federal_contracts, nor any exclusions or prerequisites, so the agent must infer routing from the resource name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources