Skip to main content
Glama

Search Opportunities

search_opportunities
Read-onlyIdempotent

Search Grants.gov for currently-open or recently-closed federal funding opportunities. Filter by keyword, opportunity status, agency code, funding category, or date range. Returns opportunity number, title, agency, open/close dates, and assistance listing numbers (formerly CFDA).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": 25,
      "status": "posted",
      "keyword": "climate resilience",
      "agencies": "EPA,NOAA",
      "funding_categories": "ENV"
    },
    "name": "search_opportunities"
  }
}

Input Schema

NameRequiredDescriptionDefault
alnNoAssistance Listing Number / CFDA number (e.g., "10.001")
limitNoRows per page (1-1000, default 25)
agencyNoAlias for `agencies`, a single agency or department code (e.g. "NIH" or "HHS"; see `agencies` for how a bare code is matched).
offsetNo0-based start record (default 0)
statusNoposted (open for applications now) | forecasted (announced, not yet posted) | closed | archived. Default posted. There is no "open" or "active" status: use "posted". For posted plus forecasted together pass open_only: true.
keywordNoGrants.gov's own keyword match behaves like an exact/AND phrase across title and synopsis text, not a relevance-ranked full-text search, a compound multi-concept phrase (e.g. joining three unrelated nouns) routinely matches ZERO opportunities even when relevant ones are open (verified live 2026-09-25, fleet #2450: "cancer liquid biopsy diagnostic" -> 0 hits; the single word "SBIR" -> 29 hits including the exact NIH SBIR/STTR hub the compound phrase was trying to find). Prefer ONE short, salient term ("SBIR", "liquid biopsy", "wastewater") and narrow with `agencies`/`funding_categories`/`status` instead of cramming every concept into this field. A zero-hit result is worth one retry with a shorter keyword before concluding nothing is open.
agenciesNoComma-separated agency codes (e.g., "EPA,USDA" or a bare department like "HHS" or "NIH"). Grants.gov itself indexes opportunities under a FULLY-QUALIFIED sub-agency code ("HHS-NIH11", "HHS-CDC1", ...), and its own filter returns ZERO hits for a bare department code (verified live 2026-09-25, fleet #2450), this tool detects a bare code automatically and matches it client-side against every hit's sub-agency code instead of sending it upstream, so "HHS" still finds NIH/CDC/FDA opportunities. A code you already have in the full "DEPT-SUBAGENCY#" form is sent upstream unchanged.
open_onlyNotrue restricts to currently-open or forthcoming opportunities (same as status "posted|forecasted"); omit or false leaves status at its default. Alias for status when a caller only knows open/not-open, not the exact status vocabulary.
funding_categoriesNoComma-separated category codes (e.g., "ED" education, "ENV" environment, "ST" science)

Output Schema

NameRequiredDescriptionDefault
totalYesTotal number of opportunities matching search criteria
returnedYesNumber of opportunities returned in this response
opportunitiesYesList of opportunity search results

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / agencies / description
      Previous value: -"Comma-separated agency codes (e.g., \"EPA,USDA\" or a bare department like \"HHS\" or \"NIH\"). Grants.gov itself indexes opportunities under a FULLY-QUALIFIED sub-agency code (\"HHS-NIH11\", \"HHS-CDC1\", ...), and its own filter returns ZERO hits for a bare department code (verified live 2026-09-25, fleet #2450) — this tool detects a bare code automatically and matches it client-side against every hit's sub-agency code instead of sending it upstream, so \"HHS\" still finds NIH/CDC/FDA opportunities. A code you already have in the full \"DEPT-SUBAGENCY#\" form is sent upstream unchanged."New value: +"Comma-separated agency codes (e.g., \"EPA,USDA\" or a bare department like \"HHS\" or \"NIH\"). Grants.gov itself indexes opportunities under a FULLY-QUALIFIED sub-agency code (\"HHS-NIH11\", \"HHS-CDC1\", ...), and its own filter returns ZERO hits for a bare department code (verified live 2026-09-25, fleet #2450), this tool detects a bare code automatically and matches it client-side against every hit's sub-agency code instead of sending it upstream, so \"HHS\" still finds NIH/CDC/FDA opportunities. A code you already have in the full \"DEPT-SUBAGENCY#\" form is sent upstream unchanged."
    • changedInput schema / properties / agency / description
      Previous value: -"Alias for `agencies` — a single agency or department code (e.g. \"NIH\" or \"HHS\"; see `agencies` for how a bare code is matched)."New value: +"Alias for `agencies`, a single agency or department code (e.g. \"NIH\" or \"HHS\"; see `agencies` for how a bare code is matched)."
    • changedInput schema / properties / keyword / description
      Previous value: -"Grants.gov's own keyword match behaves like an exact/AND phrase across title and synopsis text, not a relevance-ranked full-text search — a compound multi-concept phrase (e.g. joining three unrelated nouns) routinely matches ZERO opportunities even when relevant ones are open (verified live 2026-09-25, fleet #2450: \"cancer liquid biopsy diagnostic\" -> 0 hits; the single word \"SBIR\" -> 29 hits including the exact NIH SBIR/STTR hub the compound phrase was trying to find). Prefer ONE short, salient term (\"SBIR\", \"liquid biopsy\", \"wastewater\") and narrow with `agencies`/`funding_categories`/`status` instead of cramming every concept into this field. A zero-hit result is worth one retry with a shorter keyword before concluding nothing is open."New value: +"Grants.gov's own keyword match behaves like an exact/AND phrase across title and synopsis text, not a relevance-ranked full-text search, a compound multi-concept phrase (e.g. joining three unrelated nouns) routinely matches ZERO opportunities even when relevant ones are open (verified live 2026-09-25, fleet #2450: \"cancer liquid biopsy diagnostic\" -> 0 hits; the single word \"SBIR\" -> 29 hits including the exact NIH SBIR/STTR hub the compound phrase was trying to find). Prefer ONE short, salient term (\"SBIR\", \"liquid biopsy\", \"wastewater\") and narrow with `agencies`/`funding_categories`/`status` instead of cramming every concept into this field. A zero-hit result is worth one retry with a shorter keyword before concluding nothing is open."
  2. Changed3 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "agencies": "EPA,NOAA",
      -    "funding_categories": "ENV",
      -    "keyword": "climate resilience",
      -    "limit": 25,
      -    "status": "posted"
      -  },
      -  {
      -    "aln": "47.041",
      -    "keyword": "research",
      -    "limit": 50,
      -    "offset": 0,
      -    "status": "posted|forecasted"
      -  }
      -]New value: +[
      +  {
      +    "agencies": "EPA,NOAA",
      +    "funding_categories": "ENV",
      +    "keyword": "climate resilience",
      +    "limit": 25,
      +    "status": "posted"
      +  },
      +  {
      +    "aln": "47.041",
      +    "keyword": "research",
      +    "limit": 50,
      +    "offset": 0,
      +    "open_only": true
      +  }
      +]
    • changedInput schema / properties / status / description
      Previous value: -"forecasted | posted | closed | archived (default posted; use a pipe to combine, e.g. \"posted|forecasted\")"New value: +"posted (open for applications now) | forecasted (announced, not yet posted) | closed | archived. Default posted. There is no \"open\" or \"active\" status: use \"posted\". For posted plus forecasted together pass open_only: true."
    • addedInput schema / properties / status / enum
      Added value: +[
      +  "posted",
      +  "closed",
      +  "archived",
      +  "forecasted"
      +]
  3. Changed4 schema fields changed
    • changedInput schema / properties / agencies / description
      Previous value: -"Comma-separated agency codes (e.g., \"EPA,USDA,NIH\")"New value: +"Comma-separated agency codes (e.g., \"EPA,USDA\" or a bare department like \"HHS\" or \"NIH\"). Grants.gov itself indexes opportunities under a FULLY-QUALIFIED sub-agency code (\"HHS-NIH11\", \"HHS-CDC1\", ...), and its own filter returns ZERO hits for a bare department code (verified live 2026-09-25, fleet #2450) — this tool detects a bare code automatically and matches it client-side against every hit's sub-agency code instead of sending it upstream, so \"HHS\" still finds NIH/CDC/FDA opportunities. A code you already have in the full \"DEPT-SUBAGENCY#\" form is sent upstream unchanged."
    • addedInput schema / properties / agency
      Added value: +{
      +  "description": "Alias for `agencies` — a single agency or department code (e.g. \"NIH\" or \"HHS\"; see `agencies` for how a bare code is matched).",
      +  "type": "string"
      +}
    • changedInput schema / properties / keyword / description
      Previous value: -"Full-text query"New value: +"Grants.gov's own keyword match behaves like an exact/AND phrase across title and synopsis text, not a relevance-ranked full-text search — a compound multi-concept phrase (e.g. joining three unrelated nouns) routinely matches ZERO opportunities even when relevant ones are open (verified live 2026-09-25, fleet #2450: \"cancer liquid biopsy diagnostic\" -> 0 hits; the single word \"SBIR\" -> 29 hits including the exact NIH SBIR/STTR hub the compound phrase was trying to find). Prefer ONE short, salient term (\"SBIR\", \"liquid biopsy\", \"wastewater\") and narrow with `agencies`/`funding_categories`/`status` instead of cramming every concept into this field. A zero-hit result is worth one retry with a shorter keyword before concluding nothing is open."
    • addedInput schema / properties / open_only
      Added value: +{
      +  "description": "true restricts to currently-open or forthcoming opportunities (same as status \"posted|forecasted\"); omit or false leaves status at its default. Alias for status when a caller only knows open/not-open, not the exact status vocabulary.",
      +  "type": "boolean"
      +}
  4. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "agencies": "EPA,NOAA",
      +    "funding_categories": "ENV",
      +    "keyword": "climate resilience",
      +    "limit": 25,
      +    "status": "posted"
      +  },
      +  {
      +    "aln": "47.041",
      +    "keyword": "research",
      +    "limit": 50,
      +    "offset": 0,
      +    "status": "posted|forecasted"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "opportunities": {
      +      "description": "List of opportunity search results",
      +      "items": {
      +        "properties": {
      +          "agency": {
      +            "description": "Agency name",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "agency_code": {
      +            "description": "Agency code",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "assistance_listing_numbers": {
      +            "description": "Assistance listing numbers (formerly CFDA)",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "close_date": {
      +            "description": "Opportunity close date",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "doc_type": {
      +            "description": "Document type",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "grants_gov_url": {
      +            "description": "Direct link to opportunity on Grants.gov",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "id": {
      +            "description": "Numeric opportunity ID",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "number": {
      +            "description": "Opportunity number",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "open_date": {
      +            "description": "Opportunity open date",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "status": {
      +            "description": "Opportunity status",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "title": {
      +            "description": "Opportunity title",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "returned": {
      +      "description": "Number of opportunities returned in this response",
      +      "type": "number"
      +    },
      +    "total": {
      +      "description": "Total number of opportunities matching search criteria",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "total",
      +    "returned",
      +    "opportunities"
      +  ],
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive, open-world behavior, and the description adds substantive Grants.gov-specific quirks beyond that: keyword matching is exact/AND rather than relevance-ranked, and bare department codes are matched client-side against sub-agency codes instead of being sent upstream. These are non-obvious behaviors that would otherwise cause false 'nothing found' conclusions.

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

Conciseness4/5

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

Three sentences, front-loaded with the resource and scope, followed by filters and return fields; there is no filler. The only wasted content is the return-field list, which duplicates the existing output schema.

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 an output schema, full schema coverage, and annotations present, the definition covers purpose, filtering strategy, and the key upstream quirks, so an agent can call it correctly. The gaps are the nonexistent date-range filter and the absence of any sibling routing for historical or single-opportunity lookups.

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 coverage is 100%, so the schema already carries the per-parameter detail, and the description largely restates the filter dimensions. It also references a 'date range' filter that does not exist among the nine parameters, which is a minor inaccuracy rather than added meaning. Baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource ('Search Grants.gov for ... federal funding opportunities') plus the filter dimensions and returned fields, so the agent knows exactly what it retrieves. It does not name or distinguish itself from plausible siblings such as search_historical_opportunities or get_opportunity, and the phrase 'currently-open or recently-closed' is slightly narrower than the status enum (which also covers forecasted and archived).

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

Usage Guidelines4/5

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

Gives concrete operational guidance: prefer a single short salient keyword rather than a compound phrase, narrow with agencies/funding_categories/status instead, and retry once with a shorter keyword on a zero-hit result. It stops short of routing guidance — nothing says when to use this versus search_historical_opportunities or get_opportunity for a known opportunity number.

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.