Skip to main content
Glama
nyc-violations-mcp

nyc-violations-mcp

by am718

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SOCRATA_APP_TOKENNoOptional Socrata app token for higher rate limits. The server works without it. (UNVERIFIED with a real token.)
NYC_VIOLATIONS_CACHE_DBNoSQLite cache file path. Use ":memory:" to disable persistence.~/.cache/nyc-violations-mcp/cache.sqlite
NYC_VIOLATIONS_CACHE_TTL_SECONDSNoCache TTL in seconds.3600

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
resolve_propertyA

Normalize a NYC property to {address, bin, bbl, borough}. Give ONE of address, bin or bbl (bin and bbl may be given together to verify they match). Use this FIRST when you only have a street address, or to check that a BIN/BBL pair refers to the same property. Addresses need a house number and street, and a borough is strongly recommended. Input that names only a borough, city or zip code, an address that does not match the closest NYC address found, and an address that matches more than one building (e.g. the same address in two boroughs) each return an error listing the candidates and their BINs instead of a building. Not for fetching violations: use the get_*_violations tools or building_compliance_summary after resolving.

get_dob_violationsA

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).

get_ecb_violationsA

List DOB ECB (Environmental Control Board / OATH) violations for one building by BIN, newest first, including severity, hearing status and penalty balance. Requires a BIN: if you only have an address, or are unsure of the BIN, call resolve_property first. Use when the question is about penalties, hearings or amounts owed. Not for DOB violation records themselves (use get_dob_violations) or HPD housing violations (use get_hpd_violations). ACTIVE records with hearing status WRITTEN OFF are 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).

get_hpd_violationsA

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).

building_compliance_summaryA

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.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.6/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a distinct role: resolve_property handles identity normalization, the three get_*_violations tools each target a single agency (DOB/ECB/HPD), and building_compliance_summary is the aggregate overview. Descriptions actively cross-reference and exclude ("Not for ECB penalties... use get_ecb_violations"), and the summary tool even declares itself the best first call, so an agent can sequence calls confidently.

Naming Consistency4/5

Four of five names follow a clear verb_noun or get_<agency>_violations pattern that is easy to generalize. building_compliance_summary breaks the verb-first convention by being a bare noun phrase, a minor deviation but still unambiguous in intent.

Tool Count5/5

Five tools tightly map to the domain: one resolver, three per-agency retrievers, one aggregator. Nothing appears redundant and no tool feels like filler; the surface is deliberately minimal and each tool earns its place.

Completeness4/5

The core lifecycle is covered: resolve identity, fetch per-agency violation detail, and get an aggregate open/closed picture with links. Minor gaps exist — no lookup by owner or by geography (borough/zip rollups), and no fetch-by-violation-id or 311 complaint data — but agents can work around these via address resolution.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues