Skip to main content
Glama

get_sam_contract_diffs

Read-onlyIdempotent

Query Point-in-Time SAM.gov federal contract opportunities and amendment diffs (deadline shifts, set-aside flips, NAICS/PSC edits, SOW changes, award updates) with optional USASpending incumbent awardee lookup.

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_sam_contract_diffs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of SAM.gov contract events to return (1-100).
queryNoOptional NAICS, agency, or title keyword substring.
eventTypeNoOptional filter: sam_deadline_changed, sam_setaside_changed, sam_classification_changed, sam_lifecycle_transition, sam_description_amended, sam_award_updated, sam_opportunity_indexed.
naicsForIncumbentsNoOptional 6-digit NAICS code to also pull top historical incumbent contractors from USASpending API v2.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of SAM.gov contract events to return (1-100)."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine behavioral context beyond that: the results are 'Point-in-Time' (a snapshot semantics worth knowing), and the naicsForIncumbents path triggers an additional call to the external USASpending API v2 — a second data source the agent would not otherwise know about. Missing details on rate limits, result ordering, and pagination keep it from a 5.

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?

A single front-loaded sentence with the primary verb+resource first and the enumerations and secondary lookup trailing. The parenthetical list of five diff types is long but each item carries real discriminating information. Slightly dense, but nothing is wasted.

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 four-parameter, all-optional read tool with full schema coverage and a complete annotation set, the description covers purpose, data sources, and the shape of what changes are surfaced. The one remaining gap is that no output schema exists and the description never sketches the response shape or ordering, though the enumerated diff categories imply the content.

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 all four parameters are already fully documented, including the enum-like eventType values. The description reinforces the incumbent-lookup behavior tied to naicsForIncumbents but adds no syntax, formatting, or interaction details beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb ('Query') and a precisely scoped resource ('Point-in-Time SAM.gov federal contract opportunities and amendment diffs'), then enumerates the concrete diff categories (deadline shifts, set-aside flips, NAICS/PSC edits, SOW changes, award updates). This makes it unmistakably distinct from the sibling tools, none of which touch federal contracting data.

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?

Usage is implied by the description's framing — the agent can infer this is the tool for tracking changes to federal contract opportunities — but there is no explicit statement of when to prefer it, no prerequisites, and no named alternative for related lookups. The 'optional USASpending incumbent awardee lookup' clause does at least signal a secondary capability layered on top of the primary query.

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.