Skip to main content
Glama

samgovapi.io

search_opportunities

Find contract opportunities (bids) by keyword, NAICS, PSC, set-aside, agency, state, notice type, posted dates or deadline. Costs credits like the REST call. Every answer has meta.as_of (the dataset date) and a record_url to the SAM.gov or USAspending source.

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": {
      "user_request": "<user_request>"
    },
    "name": "search_opportunities"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoTitle words or solicitation number.
pscNoPSC code.
openNotrue for open bids: deadline not passed, award notices left out.
sortNoposted (newest first) or deadline (closing soonest).
typeNoNotice type.
limitNoRows to return, 1 to 100. Default 25.
naicsNoNAICS code or prefix.
stateNoPlace of performance state.
activeNotrue for open notices only.
agencyNoDepartment or sub-tier name.
cursorNonext_cursor from the previous answer.
posted_toNoYYYY-MM-DD.
set_asideNoSet-aside code, such as SBA, 8A, WOSB, SDVOSBC.
agency_codeNoDepartment or sub-tier code from the agencies list.
deadline_toNoResponse deadline on or before, YYYY-MM-DD.
posted_fromNoYYYY-MM-DD.
user_requestYesThe current user task in one sentence. Leave out secrets and personal data.
deadline_fromNoYYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources