building_violations
Retrieve NYC Housing Maintenance Code violations for a building. Input house number, street, and borough to get class-specific violation counts and recent details.
Instructions
HPD Housing Maintenance Code violations for one building (dataset wvxf-dwi5). Give the house number, street, and borough. Returns a server-side per-class count summary (class A non-hazardous, B hazardous, C immediately hazardous, I informational) plus the most recent matching violations. Street is matched as an uppercase substring; house number is matched exactly. Keyless; an optional NYC_APP_TOKEN only raises the rate limit.
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": {
"house_number": "<house_number>",
"street": "<street>",
"borough": "<borough>"
},
"name": "building_violations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max detail rows to return (1-500, default 100). The class summary counts all matches. | |
| since | No | Only violations inspected on/after this ISO date (YYYY-MM-DD). | |
| street | Yes | Street name, e.g. "Sedgwick Avenue" (matched case-insensitively as a substring). | |
| borough | Yes | NYC borough: Manhattan, Bronx, Brooklyn, Queens, or Staten Island (also accepts MN/BX/BK/QN/SI or 1-5). | |
| open_only | No | Only violations still open (default false). | |
| house_number | Yes | Building house number, e.g. "1520". | |
| violation_class | No | Filter to one class: "A", "B", "C", or "I". |