Skip to main content
Glama

The Mine Works

search_sam_gov_contracts

Search live US federal contract opportunities on SAM.gov: solicitations, presolicitations, sources-sought, and award notices. Filter by keyword, NAICS code, notice type, agency, and set-aside type. Needs your own free SAM.gov / api.data.gov API key.

Input Schema

NameRequiredDescriptionDefault
apiKeyYesYour free SAM.gov / api.data.gov API key. Get one at sam.gov (Account Details -> API Key) or api.data.gov/signup.
keywordNoFull-text search on the opportunity title (e.g. "software")
postedToNoLatest posted date. Defaults to today.
naicsCodeNoNAICS industry code, up to 6 digits (e.g. "541511")
maxResultsNoMax opportunities to return (default 100)
noticeTypeNoProcurement type code: o=Solicitation, p=Presolicitation, r=Sources Sought, a=Award Notice, k=Combined Synopsis, s=Special Notice, g=Sale of Surplus, u=Justification, i=Intent to Bundle
postedFromNoEarliest posted date, MM/DD/YYYY or YYYY-MM-DD. Defaults to 30 days ago.
setAsideTypeNoSet-aside code (e.g. "SBA", "8A", "WOSB", "HZC")
organizationNameNoDepartment/sub-tier name (e.g. "DEPARTMENT OF DEFENSE")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses an authentication requirement (your own free API key), which the schema only partially signals, and 'live' implies fresh data. However, it says nothing about rate limits, result caps, pagination, or failure modes for a 100-default multi-result query - a meaningful gap with zero annotation coverage.

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 tight sentences with zero waste: purpose and coverage first, filter dimensions second, the API-key prerequisite last. Every clause earns its place and nothing is buried.

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 read-only search tool with a fully documented 9-parameter schema and no output schema, the description covers purpose, filter scope, and the auth prerequisite adequately. The remaining gap is return-shape and result-volume behavior, but with maxResults and date defaults already documented in the schema, this is close to complete.

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 every one of the 9 parameters (including date defaults and the noticeType code list) is already fully documented in the schema. The description restates the filter categories but adds no syntax, format, or interaction detail beyond what the schema provides, 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 (Search) and resource (live US federal contract opportunities on SAM.gov), then enumerates the notice types covered (solicitations, presolicitations, sources-sought, award notices) and the filter dimensions. No sibling tool shares this domain, so the resource alone cleanly differentiates it from search_sec_filings, search_nih_grants, and the rest.

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 clear context for use - filtering contract opportunities by keyword, NAICS, notice type, agency, and set-aside - and states the key prerequisite that the caller must supply their own free SAM.gov / api.data.gov API key. It does not spell out when NOT to use it or name alternatives, but no sibling overlaps this domain, so that omission is minor.

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