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
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Title words or solicitation number. | |
| psc | No | PSC code. | |
| open | No | true for open bids: deadline not passed, award notices left out. | |
| sort | No | posted (newest first) or deadline (closing soonest). | |
| type | No | Notice type. | |
| limit | No | Rows to return, 1 to 100. Default 25. | |
| naics | No | NAICS code or prefix. | |
| state | No | Place of performance state. | |
| active | No | true for open notices only. | |
| agency | No | Department or sub-tier name. | |
| cursor | No | next_cursor from the previous answer. | |
| posted_to | No | YYYY-MM-DD. | |
| set_aside | No | Set-aside code, such as SBA, 8A, WOSB, SDVOSBC. | |
| agency_code | No | Department or sub-tier code from the agencies list. | |
| deadline_to | No | Response deadline on or before, YYYY-MM-DD. | |
| posted_from | No | YYYY-MM-DD. | |
| user_request | Yes | The current user task in one sentence. Leave out secrets and personal data. | |
| deadline_from | No | YYYY-MM-DD. |