contracts_search_opportunities
Search live federal contract opportunities on SAM.gov, newest-modified first. Filter by keyword, NAICS codes, set-aside codes (e.g. SBA, 8A, HZC, SDVOSBC, WOSB), and notice types (e.g. 'Sources Sought'). The public index applies those filters after fetch, so a filtered search pages deeper (up to 10 pages / 1,000 records) until the filter is satisfied — the response reports pages_fetched, how many records were examined (fetched), and scan_truncated when the page budget ran out. Returns the SAM index total and the post-filter count.
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": "contracts_search_opportunities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Index records per page (1-100, default 100); also the post-filter target a filtered scan pages toward | |
| naics | No | NAICS codes to require, e.g. ['561720'] | |
| keyword | No | Free-text keyword, e.g. 'janitorial' | |
| active_only | No | Only active notices (default true) | |
| notice_types | No | Notice types to require, matched case-insensitively, e.g. ['Sources Sought'] | |
| set_aside_codes | No | SAM set-aside codes to require |