Skip to main content
Glama
nyc-violations-mcp

nyc-violations-mcp

by am718

HPD housing violations for a building

get_hpd_violations
Read-onlyIdempotent

List HPD residential housing-maintenance violations by BBL or BIN, newest first, to check heat, pests, leaks, and other building conditions. Results cover HPD records only, not DOB or ECB violations.

Instructions

List HPD (Housing Preservation & Development) housing-maintenance violations (Class A/B/C) by bbl or bin, newest first. Use for residential conditions: heat, pests, leaks, etc. HPD covers residential buildings only: an empty result for a commercial building means no coverage expected, not compliance. Not for DOB or ECB records. If you pass both bin and bbl they must refer to the same property. A bbl covers the whole tax lot (possibly many buildings); a bin covers one building. 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).

Input Schema

NameRequiredDescriptionDefault
bblNo10-digit Borough-Block-Lot (BBL), e.g. "1008350041" (also accepts "1-00835-0041").
binNo7-digit NYC Building Identification Number (BIN), e.g. "1015862". First digit is the borough (1-5).
limitNoMax records to return (1-100, default 25).
statusNoFilter by status: "open" or "closed" (any letter case). Omit for both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already grant readOnly/idempotent/non-destructive, and the description still adds substantive behavior: the ~12,000-character response cap, the `truncated` signal, that recency lists exclude undated records (`undated_excluded`), and the empty-result-means-no-coverage semantics. What's largely missing is any sense of record shape or field content returned, keeping it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core definition, then progressively narrower caveats; essentially every clause carries information the agent needs. It is dense as a single paragraph, and a little structural separation would help scanning, but there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter read tool with no output schema, the description covers scope, granularity, mutual constraints, truncation, and the semantic trap of empty results. Nothing an agent needs in order to call it correctly and interpret the response is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so patterns and enums are already documented; the description adds real meaning beyond that by explaining the bbl-vs-bin granularity difference (whole tax lot vs single building), the constraint that both must refer to the same property, and that a large `limit` can return fewer records than requested. `limit` and `status` semantics are only lightly extended.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('List HPD housing-maintenance violations (Class A/B/C)') plus the two lookup keys and ordering ('newest first'). It explicitly distinguishes itself from the sibling DOB and ECB tools, so an agent can route on the description alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives positive triggers ('Use for residential conditions: heat, pests, leaks'), an explicit exclusion ('Not for DOB or ECB records'), and a caveat about commercial buildings that would otherwise be misread as compliance. When-to-use is fully covered without needing to inspect other tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.