Skip to main content
Glama
beholder-mcp

beholder-mcp

by rsivilli

search_contracts

Find awarded government contracts by recipient UEI, PSC code, fiscal year, or signed date range to review a company's contract history and filter results by status, agency, or obligation amount.

Instructions

Search awarded contract records. Use recipient_uei to find all contracts awarded to a specific company. Filter by psc_code, fiscal_year, or date range.

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

Input Schema

NameRequiredDescriptionDefault
qNoPIID prefix search (e.g. W912DY)
pageNoPage number (1-based)
statusNoFilter by status: active | closed
date_toNoSigned date to (ISO date, e.g. 2024-12-31)
sort_byNoSort field: total_obligation | signed_date | fiscal_year
psc_codeNoFilter by PSC code (exact match)
sort_dirNoasc or desc
agency_idNoAwarding agency UUID
date_fromNoSigned date from (ISO date, e.g. 2023-01-01)
page_sizeNoResults per page (max 200)
fiscal_yearNoFilter by fiscal year
recipient_ueiNoUEI or name of the recipient contractor — auto-resolved to Beholder UUID
max_obligationNoMaximum total obligation in dollars
min_obligationNoMinimum total obligation in dollars
award_type_categoryNoAward type: delivery_order | purchase_order | bpa_call | idv | definitive_contract

Output Schema

NameRequiredDescriptionDefault
pageYesCurrent page number (1-based)
itemsYesContract records matching the query
totalYesTotal number of matching contracts across all pages
page_sizeYesNumber of items per page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; the word "Search" implies a non-destructive read but it never states that explicitly. It says nothing about pagination caps, result volume, default sorting, or whether empty filters return everything — gaps that matter for a 15-parameter query tool. An output schema exists, so the absence of return-value description is acceptable.

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 sentences, front-loaded with the core action and followed by the high-value filters; there is no padding. The filter list in the last sentence is mildly redundant against a fully documented schema but stays brief.

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?

For a 15-parameter tool the description covers only about half the filter surface, omitting pagination, sorting, obligation ranges, agency, status, and award type. The schema and output schema cover the mechanics, but an agent gets little sense of default behavior when no filters are supplied.

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 parameter already carries its own documentation, and the description's mention of recipient_uei, psc_code, fiscal_year and date range simply restates schema content. No syntax, matching behavior, or interaction between filters is added.

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?

The description opens with a specific verb and resource ("Search awarded contract records") and the qualifier "awarded" implicitly separates it from opportunistic or subaward searches. It does not name any sibling tool, so a caller must infer that search_opportunities and search_subawards cover different record types.

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?

It gives one concrete usage path (use recipient_uei for all contracts to a company) and lists the key filters, which is real when-to-use signal. It offers no exclusions or routing to alternatives such as resolve_contractor for name lookup, and no guidance on combining filters or ordering results.

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