DOB violations for a building
get_dob_violationsLists NYC Department of Buildings violations for a building by BIN, newest first, to review its DOB compliance record.
Instructions
List NYC Department of Buildings (DOB) violations for one building by BIN, newest first. Requires a BIN: if you only have an address, or are unsure of the BIN, call resolve_property first. Use for the DOB record of a specific building (elevator, construction, work without permit, etc.). Not for ECB penalties/hearings (use get_ecb_violations), residential housing-maintenance violations (use get_hpd_violations), or an overview (use building_compliance_summary). Open/closed is a heuristic: open means "ACTIVE" appears in the record's category, and some "open" records are annotated as deleted (flagged per record). Responses are capped at ~12,000 characters, so a large limit can return fewer records (see truncated); recency lists contain dated records only (see undated_excluded).
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": {
"bin": "<bin>"
},
"name": "get_dob_violations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bin | Yes | 7-digit NYC Building Identification Number (BIN), e.g. "1015862". First digit is the borough (1-5). | |
| limit | No | Max records to return (1-100, default 25). | |
| status | No | Filter by status: "open" or "closed" (any letter case). Omit for both. |