Skip to main content
Glama
govconapi

io.github.govconapi/govconapi

Official

Search Contracts

search_contracts
Read-onlyIdempotent

Find federal prime contract transactions by UEI, PIID, agency, NAICS, date, or amount, then access award details and associated vehicle information.

Instructions

Search FPDS prime contract transactions, the comprehensive, authoritative award record (10.6M+ transactions). For the sparse SAM Award Notice slice specifically, use search_awards instead (see its docstring for when that's actually the right tool).

Award & Compliance tool.

- uei / parent_uei: exact 12-char (parent_uei = corporate roll-up)
- piid: exact award PIID; parent_piid: the vehicle/IDV it was ordered against
- agency: name substring
- naics: exactly 6 digits
- award_type_code: FPDS type A | B | C | D
- date_from/date_to: action_date window, YYYY-MM-DD
- amount_min/amount_max: federal_action_obligation
- sort_by: action_date | current_total_value_of_award | federal_action_obligation |
  recipient_name (default action_date). sort_order: asc | desc.
- limit: max 250

Data coverage starts FY2025 (~2024-10-01) and cannot go earlier on any plan, a
`date_from` before that floor is silently clamped, not rejected; the response's
`window` block (`clamped`, `earliest_searchable`, `reason`) discloses what actually
ran. Contrast search_vehicles, which is NOT floored this way.

Returns each transaction's `award_id_piid`, pass that to get_contract for the full
roll-up, get_contract_modifications for the full history, or get_contract_vehicle for
what vehicle it's under. `recipient_uei` chains into every Capture/Teaming tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ueiNo
piidNo
limitNo
naicsNo
agencyNo
offsetNo
date_toNo
sort_byNo
date_fromNo
amount_maxNo
amount_minNo
parent_ueiNo
sort_orderNo
parent_piidNo
award_type_codeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Even though annotations already declare readOnly/openWorld/idempotent/non-destructive, the description adds significant behavioral context: FY2025 data coverage floor, silent clamping of date_from rather than rejection, the response's window block disclosure, and the returned award_id_piid chaining behavior. This goes well beyond the annotations.

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?

The description is dense but well-organized: a one-sentence purpose, a clear sibling routing note, a concise bullet list for parameters, and focused paragraphs for coverage edge cases and chaining. Every section earns its place and the most important usage information is front-loaded.

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

Completeness5/5

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

For a 15-parameter, zero-required-parameter search tool with no inline schema descriptions, the description covers the important semantics, edge-case behavior, pagination limit, return-field guidance, and integration with related tools. With an output schema present, return-value documentation is not required, and the chaining hints further reduce ambiguity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden and delivers it comprehensively: exact 12-char uei, exact PIID, parent_piid semantics, agency substring, exact 6-digit NAICS, award_type_code values, YYYY-MM-DD date format, amount field mapping, sort_by options with default, sort_order values, and limit max. Only offset is not described, but the breadth and precision of the remaining parameter semantics are strong enough for a top score.

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?

The description opens with a specific verb and resource: 'Search FPDS prime contract transactions,' and further characterizes it as the 'comprehensive, authoritative award record.' It explicitly names sibling tools (search_awards, search_vehicles) and distinguishes this tool from them, so an agent can tell them apart without opening their schemas.

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?

The description gives explicit routing guidance: 'For the sparse SAM Award Notice slice specifically, use search_awards instead' and contrasts search_vehicles as 'NOT floored this way.' It also explains downstream chaining to get_contract/get_contract_modifications/get_contract_vehicle, which helps an agent choose this tool as an entry point.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/govconapi/govconapi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server