Skip to main content
Glama
DatLab MCP server

DatLab MCP server

Official
by datlabhq

SAM.gov contract opportunities

sam_gov_contract_opportunities

Fetch US federal contract opportunities from SAM.gov without an API key. Filter notices by keyword, NAICS, PSC, set-aside, agency, state, or posting date.

Instructions

Fetch US federal contract opportunities from SAM.gov public data. No SAM.gov API key is needed. Use it for notices filtered by keyword, NAICS, PSC, set-aside, agency, state or posting date. Do not use it for contact names, emails or phones (excluded on purpose) or for non-US tenders. Output fields: noticeId, solicitationNumber, title, noticeType, department, subTier, naicsCode, pscCode, setAside, postedDate, responseDeadline, popState, awardAmount, awardee, url, optional description. Cost: first 100 notices each UTC month are free, then $0.0015 per notice plus $0.00005 per run start. Set maxItems to cap spend.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sam_gov_contract_opportunities"
  }
}

Input Schema

NameRequiredDescriptionDefault
agenciesNo
keywordsNo
maxItemsNoCap on notices returned. Set this to control spend.
postedToNoPosted-to date, YYYY-MM-DD.
pscCodesNo
activeOnlyNo
naicsCodesNoNAICS codes, for example 5415.
postedFromNoPosted-from date, YYYY-MM-DD.
noticeTypesNo
setAsideTypesNo
postedWithinDaysNoOnly notices posted in the last N days. Default 7.
includeDescriptionNo
openForResponseOnlyNo
placeOfPerformanceStatesNoUS state names or abbreviations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does most of it: it discloses that no API key is required, the exact pricing model (100 free per UTC month, then $0.0015/notice plus $0.00005 per run start), and that contact fields are deliberately omitted. It stops short of pagination, rate limits, default maxItems behavior, or ordering, which matter for a 14-parameter data-fetch tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads purpose, then usage, then exclusions, then output fields, then cost — a sensible ordering with no filler sentences. The output-field enumeration is lengthy but substitutes for the absent output schema, so it earns its place; the whole text stays compact for a 14-parameter tool.

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

Completeness3/5

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

The description reasonably substitutes for the missing output schema by listing return fields, and it covers auth and cost. Gaps remain for a tool of this complexity: no pagination or result-cap behavior when maxItems is unset, no guidance on the default 7-day posting window, and no clarity on how includeDescription affects cost or payload size.

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?

At 43% schema coverage the description must compensate, and it partially does by naming most filter dimensions (keyword, NAICS, PSC, set-aside, agency, state, posting date) plus the spend-control role of maxItems. However, activeOnly, openForResponseOnly, noticeTypes, includeDescription, and the important postedWithinDays default of 7 days go unmentioned, so an agent cannot infer their behavior or interplay from the description alone.

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 US federal contract opportunities from SAM.gov public data') and immediately scopes it by domain and geography. The sibling tools are all generic web/crawl utilities, and the explicit 'not for non-US tenders' exclusion removes any residual ambiguity about what this tool returns.

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 use case list ('notices filtered by keyword, NAICS, PSC, set-aside, agency, state or posting date') and two explicit exclusions (contact data, non-US tenders). This is the when/when-not pattern at full strength; no alternative routing is needed because no sibling competes for this job.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.