Skip to main content
Glama

Search SAM.gov contract opportunities

search_opportunities
Read-onlyIdempotent

Search active federal contract opportunities on SAM.gov: solicitations, presolicitations, sources sought, RFIs, and award notices - filterable by keywords, NAICS, set-aside (SDVOSB, 8(a), HUBZone, WOSB, small business), notice type, agency, and posted-date range (max 1 year). Call this when the user wants to find federal bidding opportunities or market intelligence on what agencies are buying. Uses a shared daily budget unless the caller supplies their own free SAM.gov key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results (default 10)
agencyNoDepartment/agency name filter
keywordsNoFree-text keywords, e.g. "CMMC compliance"
posted_toNoYYYY-MM-DD (default: today)
set_asideNoSet-aside codes: SDVOSBC/SDVOSBS (SDVOSB), VSA/VSS (VOSB), SBA/SBP (small business), 8A/8AN, HZC/HZS (HUBZone), WOSB/EDWOSB
naics_codesNoNAICS codes, e.g. ["541512"]
notice_typeNoo=solicitation, p=presolicitation, r=sources sought, k=combined synopsis, g=surplus, s=special notice, a=award notice, i=intent to bundle, u=J&A
posted_fromNoYYYY-MM-DD (default: 90 days ago; SAM allows at most a 1-year window)
sam_api_keyNoOptional: your own free SAM.gov API key (from sam.gov → Account Details). With it you spend your own 1,000/day quota and skip the shared budget. Can also be sent once as the X-Sam-Api-Key header on the MCP connection.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the agent knows it's a safe read. The description adds valuable behavioral context beyond annotations: the shared daily budget, the option to supply a personal SAM.gov API key, and the 1-year maximum posting window. This helps set rate-limit and data-range expectations.

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?

The description is only three sentences: the first states the core purpose and filters, the second gives a direct usage trigger, and the third covers the budget/API key context. Every sentence adds value with no repetition, filler, or unnecessary detail.

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?

For a 9-parameter tool with no output schema, the description covers the purpose, filter dimensions, usage scenario, and rate-limit behavior well. It doesn't describe the response format or pagination behavior, but the detailed schema and annotations compensate. Slightly more detail on return values would push it higher.

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%, meaning every parameter is already documented in the input schema. The main description adds a high-level summary of filterable fields and mentions the budget/key behavior, but does not significantly augment the per-parameter schema descriptions. Baseline 3 is appropriate given the schema does the heavy lifting.

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?

The description clearly states the tool searches active federal contract opportunities on SAM.gov, enumerates the specific notice types and filter dimensions, and distinguishes it from siblings like search_awards by emphasizing bidding opportunities and market intelligence. The verb 'search' plus the resource 'active federal contract opportunities' is specific and unambiguous.

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 description explicitly tells the agent when to call this tool: 'Call this when the user wants to find federal bidding opportunities or market intelligence on what agencies are buying.' This gives a clear use case, but it does not explicitly mention alternatives or when not to use it relative to sibling tools like search_awards, which could cause ambiguity given the inclusion of award notices.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: two are code/name resolvers, two are searchers (awards vs opportunities), one fetches award details, one looks up entities, and one aggregates spending. No two tools overlap in function, and descriptions reinforce the boundaries.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern (find_agency, find_naics, get_award, lookup_entity, search_awards, search_opportunities, spending_by_category). The use of 'lookup' instead of 'find' is a minor stylistic variation but does not break the overall pattern.

Tool Count5/5

Seven tools is well-scoped for a federal market intelligence server, covering the essential operations of entity resolution, searching, detail retrieval, and aggregation without unnecessary bloat. Each tool earns its place.

Completeness4/5

The tool set provides strong coverage of the federal market research workflow: resolving agencies and NAICS codes, searching opportunities and awards, retrieving award details, vetting entities, and aggregating spending. The only notable gap is the absence of a dedicated 'get_opportunity' tool to mirror 'get_award' for retrieving full opportunity details.

Resources