Skip to main content
Glama
nyc-violations-mcp

nyc-violations-mcp

by am718

Building compliance summary

building_compliance_summary
Read-onlyIdempotent

Get open vs closed NYC violation counts by agency (DOB, ECB, HPD) for a property using an address, BIN, or BBL, plus recent open items and source links.

Instructions

Best first call for "what is the violation situation at this property?". Takes ONE of address, bin or bbl and returns open vs closed counts per agency (DOB, ECB, HPD), the most recent issue date, the 5 most recent open items (one line each) and links to the source records. Makes 12 to 14 upstream requests (depends on the building) at 1 request per second, so a cold call takes at least about 11-13 seconds (measured 11-19 s). Use the get_*_violations tools afterwards only if you need full details of one agency. Counts DOB, ECB and HPD for the one resolved BIN (see footprint); read data_quality_notes first. Results are cached for an hour, so do not call it repeatedly for the same property.

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": "building_compliance_summary"
  }
}

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).
addressNoNYC street address including borough, e.g. "350 5th Ave, Manhattan".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover safety (readOnly, idempotent, non-destructive, open-world), and the description adds the operational context an agent actually needs: 12-14 upstream requests, 1 request/second, 11-19s observed cold latency, one-hour result caching, and cost-avoidance guidance. It also discloses a scoping limitation that the counts cover only the single resolved BIN (pointing at `footprint`), which prevents misinterpretation of partial coverage.

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 use case and alternative, then moves through outputs, latency, and caching in a logical order with no filler sentences. It is dense to the point of crowding multiple ideas into single sentences (the BIN-scope note and `data_quality_notes` pointer are tacked on), but every sentence carries information.

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?

With no output schema, the description carries the return-value burden and does so: it names the counts, dates, item list, and links, and flags the `footprint` scope and `data_quality_notes` caveat. Latency and caching behavior are also covered, so an agent has everything needed to call it correctly and interpret the result.

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 formats and examples are already documented, establishing a baseline of 3. The description adds meaning the schema lacks: the parameters are mutually exclusive ('Takes ONE of address, bin or bbl'), a constraint the schema does not encode via oneOf or required fields.

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?

Opens with a concrete job-to-be-done ('what is the violation situation at this property?') and specifies the exact payload: open vs closed counts per agency (DOB, ECB, HPD), most recent issue date, and the 5 most recent open items. It explicitly distinguishes itself from the get_*_violations siblings as the summary-first tool, so an agent can route without opening any schema.

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 guidance ('Best first call'), the escalation condition ('Use the get_*_violations tools afterwards only if you need full details of one agency'), and a negative instruction against repeat calls for the same property due to the one-hour cache. It also states the input constraint that only ONE of address/bin/bbl is taken.

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