Skip to main content
Glama

querytap

Search US federal contract opportunities (SAM.gov) by keywor

us_search_opportunities
Read-onlyIdempotent

Search US federal contract opportunities (SAM.gov) by keyword, NAICS, agency, state and set-aside; active ones soonest deadline first. Example: /us/opportunities/search?naics=541512&state=VA Price: $0.005 USDC per call (x402). Without payment: a free 3-row preview, 3 per day.

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": "us_search_opportunities"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoFull-text search over title, department, office.
nextNoOpaque keyset token from the previous page's `next`.
sortNoSort order.
limitNoResults per page, 1–100 (default 25). Same price at any size.
naicsNoNAICS code or prefix.
stateNoPlace of performance, two-letter state.
activeNotrue (default), false or all.
agencyNoDepartment or sub-tier (contains).
set_asideNoSet-aside code, e.g. SBA, 8A, SDVOSBC, WOSB.
deadline_beforeNoISO date/time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world behavior, so the bar is lower. The description still adds genuinely useful non-schema facts: per-call pricing under x402, and that unpaid calls return a 3-row preview capped at 3 per day.

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?

Three short, front-loaded sentences: capability first, example second, cost/limits last. Nothing is padded, though the pricing and preview limits are compressed into one dense line.

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 10-parameter read-only search with full schema coverage and no output schema, the description covers scope, ordering, cost and unpaid fallback. It could say a bit more about result shape, but the schema carries the parameters and pagination via `next`.

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 the schema already explains every parameter; the baseline is 3. The description reinforces defaults (active, soonest deadline first) and gives a concrete naics+state example URL, but adds little syntax or meaning beyond the schema.

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?

States a specific verb and resource ('Search US federal contract opportunities (SAM.gov)') and enumerates the filter dimensions plus default ordering. It does not name which sibling to use instead (e.g. us_new_opportunities or us_search_awards), so differentiation is left to the agent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the listed filter dimensions and the 'active ones' default, and the free-preview/payment note tells the agent what happens before paying. There is no explicit when-to-use/when-not guidance or reference to an alternative tool for a different question type.

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