search_contracts
Search NYC registered and pending contracts by agency, vendor code, contract ID, date, amount, industry, or MWBE category. Filter structured records; use vendor code for vendor lookup.
Instructions
Search NYC registered and pending contracts with structured filters. Filter by agency, vendor_code, contract ID, date range, amount range, industry, MWBE category, and more. No vendor-name filter (vendor_code only). To find contracts by vendor name: search_spending payee_name, then its contract_id. KNOWN API LIMITATION: registered revenue contracts (category 'revenue') with fiscal_year return no rows from Checkbook NYC (a match count, no records), so the tool refuses that combination without sending a request; omit fiscal_year and filter by dates instead.
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": "search_contracts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | Contract PIN / tracking number. Live-verified 2026-07-28. An exact PIN returned exactly 1 record. | |
| page | No | Page number, 1-based (default: 1) | |
| status | No | Contract status (default: registered) | registered |
| purpose | No | Contract purpose keyword (server-side 'contains' match). Live-verified 2026-07-28. purpose='software' returned 168 of 19,139 registered/expense FY2025. | |
| category | No | Contract category (default: expense). Fields: registered expense/all use prime_contract_*; registered revenue and pending use plain names (contract_id, purpose). | expense |
| industry | No | Industry code | |
| page_size | No | Results per page (default: 50, max: 20000) | |
| amount_max | No | Maximum current contract amount | |
| amount_min | No | Minimum current contract amount | |
| agency_code | No | 3-digit agency code, e.g. '056' for NYPD, '040' for Education | |
| contract_id | No | Contract number, e.g. 'CT185820201424467' | |
| end_date_to | No | Contract end date range end (YYYY-MM-DD) | |
| fiscal_year | No | Fiscal year, e.g. '2024' | |
| vendor_code | No | Vendor identification code (the only vendor filter for contracts) | |
| vendor_name | No | NOT SUPPORTED: no vendor-name filter. Use vendor_code. To find contracts by vendor name: search_spending payee_name, then its contract_id. | |
| award_method | No | Award method code | |
| contract_type | No | Contract type code | |
| end_date_from | No | Contract end date range begin (YYYY-MM-DD) | |
| mwbe_category | No | M/WBE category code | |
| start_date_to | No | Contract start date range end (YYYY-MM-DD) | |
| start_date_from | No | Contract start date range begin (YYYY-MM-DD) | |
| received_date_to | No | Received date range end (YYYY-MM-DD). Pending contracts only. Live-verified 2026-07-28. | |
| received_date_from | No | Received date range begin (YYYY-MM-DD). Pending contracts only (registered use registration_date). Live-verified 2026-07-28. An open-ended range returned the full pending set. | |
| include_sub_vendors | No | Include sub-vendor / subcontractor detail columns (sub_vendor, sub_vendor_mwbe_category, sub_contract_current_amount, etc.) in the response. Applies to registered expense/all contracts only; ignored for status='pending' and for category='revenue', whose domains list no sub-vendor columns. | |
| registration_date_to | No | Registration date range end (YYYY-MM-DD). Registered contracts only. Live-verified 2026-07-28. A 6-month range returned 9,599 of 19,139. | |
| registration_date_from | No | Registration date range begin (YYYY-MM-DD). Registered contracts only. Live-verified 2026-07-28. | |
| contract_includes_sub_vendors | No | Sub-vendor flag: 1 = contracts that include sub-vendors. Registered contracts only. Live-verified 2026-07-28. 1 returned 3,246 of 19,139 registered/expense FY2025; 0 returned 0. This is an INTEGER, not a status code — the API rejects a non-numeric value with "is not of data type integer", and it does so as HTTP 200 with a plain-text (non-XML) body, which parses as an empty response. Note the response column of the same name reports 'N/A', so an observed column value cannot be fed back in as a filter value. |