Skip to main content
Glama

Get Historical Opportunity

get_historical_opportunity
Read-onlyIdempotent

Fetch one Grants.gov opportunity by its numeric opportunity ID, in ANY status (open, closed, archived, or forecasted), unlike get_opportunity, which calls the live API and only reliably resolves currently-open opportunities. Returns the full record plus a computed status (derived from close/archive dates against today, the same vocabulary search_historical_opportunities uses) and data_as_of.

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": {
      "opportunity_id": 358857
    },
    "name": "get_historical_opportunity"
  }
}

Input Schema

NameRequiredDescriptionDefault
opportunity_idYesNumeric opportunity ID (returned by search_historical_opportunities or search_opportunities as "id").

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 declare readOnly, idempotent, openWorld, and non-destructive, so safety is covered; the description still adds substantive behavior — that it returns the full record plus a computed status derived from close/archive dates, the shared status vocabulary, and a data_as_of stamp. It does not say what happens on an unknown ID or whether the underlying snapshot lags, so it stops short 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?

Two sentences, front-loaded with the action and the distinguishing constraint, with no redundant restatement of the tool name or title. Every clause carries either scope, contrast, or return-value information.

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 a one-parameter read with no output schema, the definition covers what is fetched, which statuses are in scope, what extra fields the response carries, and how the ID is obtained. Nothing an agent needs to invoke it correctly is missing.

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% and the single parameter already documents that the numeric ID comes from search tools as 'id'. The description reinforces 'numeric opportunity ID' and the any-status scope but adds no format or edge-case detail beyond the schema, so the baseline 3 applies.

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 verb and resource ('Fetch one Grants.gov opportunity by its numeric opportunity ID') and immediately bounds the scope ('in ANY status'), then explicitly contrasts with the sibling get_opportunity. An agent can distinguish this from get_opportunity 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?

Gives an explicit when-to-use rule: use this instead of get_opportunity when the record may be closed, archived, or forecasted, because get_opportunity only reliably resolves currently-open opportunities. It also ties the parameter source to search_historical_opportunities, giving the agent a correct call sequence.

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.