Skip to main content
Glama

Search Historical Opportunities

search_historical_opportunities
Read-onlyIdempotent

Search Grants.gov's FULL opportunity history (closed and archived opportunities back to 2004, plus forecasted opportunities not yet posted) — coverage search_opportunities' live API cannot serve, since search2 only usefully answers "what is open right now". Covers Grants.gov's full catalog, refreshed once a day (see data_as_of). Filter by agency code, CFDA/Assistance Listing number, keyword (full-text over title + description), status, opportunity category, or post-date range. Unlike search_opportunities, status here defaults to EVERY status, not just "posted" — pass status explicitly to narrow. Answers "what did this agency fund last fiscal year", "what opportunities under CFDA 93.351 have ever closed", "what is forecasted for next year that hasn't posted yet".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
alnNoAlias for cfda.
cfdaNoAssistance Listing Number / CFDA number, exact match, e.g. "93.351". Alias: aln.
limitNoRows to return, 1-500 (default 25).
agencyNoAlias for agency_code.
offsetNo0-based start record, for paging.
statusNoposted | closed | archived | forecasted. Omit to search every status, unlike the live tool (whose default is "posted").
keywordNoFull-text search over the opportunity title and description (PostgreSQL websearch syntax — quote a phrase, "-word" to exclude). More forgiving than the live tool's exact-phrase keyword match.
agency_codeNoAgency or sub-agency code, e.g. "NIH" or "HHS-NIH11" or "DOS". Matches as a prefix/segment against the fully-qualified codes on file (same bare-vs-qualified forgiveness as search_opportunities' `agencies`). Alias: agency.
post_date_toNoOnly opportunities posted on/before this date, YYYY-MM-DD.
post_date_fromNoOnly opportunities posted on/after this date, YYYY-MM-DD.
opportunity_categoryNoSingle-letter Grants.gov category code: D discretionary, M mandatory, C continuation, E earmark, O other.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive/openWorld, so the bar is lower. The description adds real operational context: coverage scope, once-a-day refresh surfaced via data_as_of, and that status defaults to EVERY status rather than 'posted'. It omits return-shape and paging behavior, keeping it just shy of a 5.

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?

A single dense paragraph that front-loads scope and the sibling contrast before listing filters and example questions. Every sentence carries differentiating information; nothing is padding.

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

Completeness5/5

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

For an 11-param read-only search with no output schema but full schema coverage, the description supplies the coverage boundary, staleness signal, default behavior, and filter set an agent needs to call it correctly and interpret freshness.

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 the schema already documents all 11 parameters, including the status default and keyword matching behavior the description restates. The description adds little syntax or format detail beyond the schema, so the baseline 3 is correct.

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?

Specific verb+resource with explicit scope: 'Grants.gov's FULL opportunity history (closed and archived back to 2004, plus forecasted)'. It directly contrasts with the sibling search_opportunities and the search2 live API, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

States when to use it ('what did this agency fund last fiscal year', 'what under CFDA 93.351 has ever closed', 'what is forecasted but hasn't posted') and when the sibling is better ('search2 only usefully answers what is open right now'). It even flags the default-status divergence that would otherwise cause a wrong call.

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.