Skip to main content
Glama

Edgrapi — US Government Data API

Get federal contracts by completion date (SAM.gov, recompete search)

get_contract_awards
Read-onlyIdempotent

Federal contract awards from SAM.gov's Contract Awards API (the FPDS successor), filtered by ultimate completion date: the contracts that are ending, which is where recompetes come from. Defaults to contracts ending in the next 180 days. Rows are collapsed to the latest action per contract. Each carries the PIID, agency, office, awardee and UEI, NAICS, PSC, competition and set-aside, dates, and contract value. Defense awards appear 90 days after signing.

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

Input Schema

NameRequiredDescriptionDefault
piidNoContract PIID.
limitNoRecords to request, 1-100 (default 50).
naicsNoNAICS code, or a comma list, e.g. '541512,541511'.
offsetNoPagination offset (default 0).
min_valueNoMinimum ultimate contract value (base + all options), USD.
set_asideNoSet-aside code, e.g. 'SBA', '8A', 'WOSB', 'HZC'.
award_typeNo'award' or 'idv'.
agency_codeNoContracting department code, 4 chars, e.g. '9700' (DoD).
awardee_ueiNoAwardee Unique Entity ID (12 chars).
completion_toNoUltimate completion date to, YYYY-MM-DD (default: today + 180 days).
completion_fromNoUltimate completion date from, YYYY-MM-DD (default: today).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld annotations by disclosing two non-obvious behaviors: rows are collapsed to the latest action per contract, and Defense awards appear with a 90-day lag. It also enumerates the returned field groups, so the agent knows what it will get back without an output schema.

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?

Four dense sentences, front-loaded with source, filter axis, and default window before falling back to row semantics and returned fields. Slightly packed, but every sentence carries real information and nothing is redundant.

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 an 11-parameter, no-output-schema tool this is nearly complete: source, default window, dedup rule, freshness caveat, and returned fields are all covered. Minor gaps remain around pagination limits and whether authorization or rate limits apply, though the readOnly/idempotent annotations cover the safety profile.

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%, so the schema already documents all 11 parameters, including defaults and formats. The description only adds the default completion window in prose, which the schema also states; it contributes little meaning beyond the structured data, so baseline 3 applies.

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 ('Federal contract awards from SAM.gov's Contract Awards API') and a precise filter axis ('ultimate completion date'). It distinguishes itself functionally via the recompete framing and the default 180-day ending window, but never names the closely-related sibling get_awards or get_opportunities, leaving the agent to infer the boundary between 'contract awards' and this tool.

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?

Gives a clear use case ('the contracts that are ending, which is where recompetes come from') and states the default window, so an agent knows the intended scenario. However, there is no when-not-to-use guidance and no routing to alternatives when the agent wants awards by a different axis (e.g., signing date or agency) rather than completion date.

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