Skip to main content
Glama

Search US federal contract awards

economy_government_contracts_search
Read-onlyIdempotent

Search US federal contract awards by recipient, keyword, NAICS, PSC and state: amount, agency, dates, codes and places, up to 100 a page with a cursor. Optional inputs: recipient, keyword, naics, psc, state and 7 more. Returns a list (use cursor when paginated). Costs credits; see meta.creditsCharged.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "economy_government_contracts_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd of the window, `YYYY-MM-DD`. With only `to`: the year up to that day.
pscNoFederal product and service codes (PSC), comma-separated, up to 20. 1 to 4 characters; a shorter code covers its family, e.g. `D3` (IT services) or `R425`.
fromNoStart of the window, `YYYY-MM-DD`, not before `2007-10-01`. A contract matches when it had activity in the window. Without `from` and `to`: the latest US federal fiscal year (1 October to 30 September) that ended at least 90 days ago. With only `from`: to today.
sortNo`amount` (default), `start_date`, `end_date` or `recipient`.
typeNo`all` (default), `definitive_contract`, `purchase_order`, `delivery_order` or `bpa_call`.
limitNoContracts per page, 1 to 100. Default 25.
naicsNoNAICS industry codes, comma-separated, up to 20. Each has 2, 4 or 6 digits; a shorter code covers its whole family, e.g. `4811` (scheduled air transport) or `54`.
orderNo`desc` (default) or `asc`.
stateNoOnly contracts performed in this state, as a two-letter USPS code, e.g. `VA`.
cursorNoCursor from `page.nextCursor` of the previous response. It only works with the same filters, sort and order.
contextYesDescribe the user's underlying goal in one sentence, not the tool you are calling.
keywordNoText matched against award descriptions, e.g. `cybersecurity`. 3 to 120 characters.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (for example "claude-opus-4-8" or "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" and do not guess.
recipientNoCompany or organisation name, matched as text against the recipient's legal name, e.g. `Lockheed Martin`. Contracts are filed under legal names: `Space Exploration Technologies` finds SpaceX, `SpaceX` does not.
conversation_idNoEcho the conversation_id from the server's previous response. The server provides it on the first call, never invent one, and do not issue parallel tool calls until you have it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

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, open-world, idempotent and non-destructive behavior, so the description's real added value is the credit cost and the pointer to `meta.creditsCharged`, plus the 100-per-page cap and cursor reuse caveat. That is genuine behavioral context beyond the structured fields; it stops short of describing rate limits or result ordering defaults.

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?

Front-loaded with the capability, then filters, then pagination, then cost — a sensible ordering with no filler sentences. The 'and 7 more' clause is the one weak spot, being slightly vague but at least honest about scope.

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 15-parameter read tool with full schema coverage and no output schema, the description covers purpose, main filters, pagination, and credit cost — enough to call it correctly. It omits return-shape detail and the default fiscal-year window, which the schema supplies, so the gap is minor.

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% and the schema descriptions are unusually detailed (date windows, PSC/NAICS family semantics, recipient legal-name matching), so the schema carries the burden. The description only summarizes five of the fifteen parameters and waves at '7 more', adding no meaning the schema lacks; 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 ('Search US federal contract awards') and names the primary filter dimensions (recipient, keyword, NAICS, PSC, state). It does not distinguish itself from the closest sibling, economy_government_spend_get, so an agent must still infer whether it wants raw awards or aggregate spend.

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 useful in-tool guidance ('use cursor when paginated', 'Optional inputs: ...'), but never states when to prefer this over economy_government_spend_get or other economy_* siblings, and offers no exclusions or prerequisites. Usage is implied by the filter list 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.