Skip to main content
Glama

search_opportunities

Search U.S. federal government contract opportunities from SAM.gov. Returns recent procurement notices with title, department, deadline, and source URL. Data is updated daily. License: Public Domain (SAM.gov). Requires an api_key — call register_agent first if you don't have one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoHow many days back to search (1-365, default: 7)
limitNoNumber of opportunities to return (1-100, default: 10)
api_keyYesGovBid API key (X-API-Key). Required for authentication. If you don't have one, call register_agent first.
departmentNoFilter by agency/department name (partial match). Examples: 'DEFENSE', 'NAVY', 'ARMY', 'INTERIOR', 'HEALTH'

TDQS

A4/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 provides useful behavioral context: data source (SAM.gov), daily update frequency, Public Domain license, and the specific fields returned. It does not mention rate limits or pagination, but for a read-only search tool the disclosure is reasonably complete.

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?

Three sentences, no filler. The core action and resource are front-loaded, followed by return fields, data currency, licensing, and the authentication prerequisite. Every sentence contributes value.

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 4-parameter tool with no output schema, the description covers the essential invocation requirements: what it searches, what it returns, data source and freshness, auth requirement, and registration path. It could be stronger by noting when to use get_opportunity_detail for full details, but the current information is sufficient for correct selection and use.

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 coverage is 100%, with each parameter already having descriptive documentation. The description adds no additional parameter-level meaning beyond what the schema provides, so the baseline of 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?

Description states a specific verb ('Search') and resource ('U.S. federal government contract opportunities from SAM.gov'), and enumerates the return fields (title, department, deadline, source URL). This clearly distinguishes it from siblings like get_opportunity_detail, which focuses on a single opportunity's details.

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?

The description provides a clear prerequisite ('Requires an api_key — call register_agent first'), but does not explicitly explain when to choose search_opportunities over get_opportunity_detail or get_api_info. The usage context is implied rather than stated.

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.3/5.0
Disambiguation4/5

Each tool has a distinct role—service metadata, agent registration, search, and direct-link lookup—but search_opportunities already returns source URLs, so get_opportunity_detail could initially seem redundant until its notice-ID-specific purpose is understood.

Naming Consistency5/5

All four tool names follow a consistent verb_noun snake_case pattern: get_api_info, get_opportunity_detail, register_agent, and search_opportunities. This makes the tool set predictable and easy to navigate.

Tool Count5/5

Four tools is well-scoped for this narrow SAM.gov contract-opportunity wrapper: metadata, agent registration, search, and detail-link retrieval. Each tool earns its place in the workflow without redundancy.

Completeness4/5

The core workflow is covered: register, search, and redirect to SAM.gov details. The only minor gap is that search returns 'recent' notices without obvious filtering or pagination controls, and get_opportunity_detail provides a URL rather than full structured opportunity data.