Skip to main content
Glama

Edgrapi — US Government Data API

Get federal contract opportunities (SAM.gov)

get_opportunities
Read-onlyIdempotent

Federal contract opportunities from SAM.gov — solicitations, presolicitations, sources-sought, and award notices — normalized into flat JSON. Each carries the notice id, title, solicitation number, posted date, type, set-aside, NAICS, place of performance, award (when present), a point of contact, and the sam.gov link. Leave the dates off for the recent feed; SAM caps a query window at one year.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoRecords to return, 1-200 (default 20).
naicsNoNAICS code filter, up to 6 digits, e.g. '541519'.
ptypeNoProcurement type: o solicitation, p presolicitation, a award, etc.
stateNoPlace-of-performance state, e.g. 'TX'.
titleNoMatch on opportunity title.
offsetNoPagination offset (default 0).
posted_toNoPosted-date end, YYYY-MM-DD (default: today).
set_asideNoSet-aside code, e.g. 'SBA', '8A', 'WOSB', 'HZC'.
posted_fromNoPosted-date start, YYYY-MM-DD (default: 30 days ago).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/openWorld annotations, the description discloses the response shape ('normalized into flat JSON. Each carries...'), optional fields ('award (when present)'), and an external constraint ('SAM caps a query window at one year'). No contradiction with annotations.

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 compact sentences: the first front-loads the resource, scope, and returned fields; the second delivers a critical usage warning. No wasted words or repetition of schema descriptions.

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 read-only, 9-parameter query tool with no output schema, the description is complete enough: it enumerates the return fields, notes optional award data, and warns about the one-year search window. An agent can invoke and interpret results correctly without further documentation.

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

Parameters4/5

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

The schema already covers all 9 parameters, so the baseline is 3. The description adds one valuable constraint beyond the schema: the date-filter window is capped at one year, so posted_from/posted_to must respect that. Other parameters gain no new meaning, but the schema carries them.

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?

The description states a specific resource and scope: federal contract opportunities from SAM.gov, and enumerates the notice types (solicitations, presolicitations, sources-sought, award notices). It does not explicitly contrast with sibling tools such as get_awards or get_grants, so it falls just short of full sibling differentiation.

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?

The domain context makes the intended use clear ('Federal contract opportunities from SAM.gov'), and it gives one explicit operational rule: leave the dates off for the recent feed because SAM caps a query window at one year. It does not state when-not-to-use or name alternative tools, so not a 5.

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