Search code violations
search_violationsSearch agency findings by place, case number, status, category and date. record_kind defaults to violation; complaints are reports, not confirmed violations. Sources report data_through, coverage_window and count_unit. Coverage varies by source and place; an empty result does not establish that no record exists. Up to 25 results per call. total_capped marks a lower bound; total_unknown means the total is unknown. Pagination guidance is in _notes.
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_violations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | ||
| lng | No | ||
| city | No | City name (matches the address city or the issuing jurisdiction) | |
| page | No | Page number, 1-based (default 1) | |
| start | No | Instead of page: 1-based position of the first result to return, e.g. start=24 continues after result 23 (as named in `_notes`) | |
| state | No | 2-letter state code | |
| parcel | No | Parcel / APN / folio / BBL (formatting ignored) | |
| status | No | OPEN, CLOSED, COMPLIED, ABATED, CITED, DISMISSED or UNKNOWN | |
| address | No | Street address, partial, case-insensitive | |
| category | No | Normalised category, e.g. HOUSING, UNSAFE, WORK_WITHOUT_PERMIT | |
| per_page | No | Results per page (default 25, max 25) | |
| zip_code | No | 5-digit ZIP | |
| open_only | No | Only OPEN records (a citation or judgment is not open) | |
| date_after | No | record_date on or after (undated records never match) | |
| case_number | No | The agency's case / complaint number | |
| date_before | No | record_date on or before | |
| record_kind | No | 'violation' (default): violations, citations and orders the agency found. 'complaint': reports it received, and cases with no evidence a violation was found. 'all': both. Complaints are never counted as violations. | violation |
| radius_miles | No | Radius in miles around lat/lng (default 1) | |
| jurisdiction_id | No | A jurisdiction id from /v1/jurisdictions | |
| include_uncounted | No | Also return records stored but never counted: voided, withdrawn, rescinded or issued in error, and process steps |