Skip to main content
Glama
nyc-violations-mcp

nyc-violations-mcp

by am718

ECB violations for a building

get_ecb_violations
Read-onlyIdempotent

Lists DOB ECB/OATH violations for a building by BIN, with severity, hearing status and penalty balance, for questions about fines, hearings or amounts owed. Requires a BIN.

Instructions

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

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_ecb_violations"
  }
}

Input Schema

NameRequiredDescriptionDefault
binYes7-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 declare a safe idempotent read, so the description focuses on what annotations cannot express: newest-first ordering, a ~12,000 character response cap that can make a large limit return fewer records, the `truncated` signal, an `undated_excluded` note, and per-record flagging of ACTIVE records with WRITTEN OFF hearing status. The one gap is no discussion of pagination/cursor behavior for working around the cap.

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 verb, resource and key, followed by prerequisite, exclusions, and caveats in a sensible order with no filler sentences. It is on the dense side, packing truncation and flag semantics into the closing sentence, but each clause carries distinct operational 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?

No output schema exists, so the description carries the return-value burden and does so by naming the returned fields, the response envelope flags (`truncated`, `undated_excluded`), and the per-record WRITTEN OFF marker. Combined with annotations covering the safety profile, an agent has everything needed to call this 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 the baseline is 3, but the description adds real meaning beyond the schema by warning that the `limit` parameter interacts with the character cap and may yield fewer records than requested. It also reinforces that `bin` is mandatory and how to obtain one, though the `status` enum is left entirely to the schema.

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 DOB ECB/OATH violations), the scoping key (one building by BIN), the ordering (newest first), and the fields returned (severity, hearing status, penalty balance). It also explicitly distinguishes itself from get_dob_violations and get_hpd_violations, so an agent can route correctly without opening sibling schemas.

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 explicit when-to-use ('questions about penalties, hearings or amounts owed'), explicit when-not ('not for DOB violation records themselves... or HPD housing violations'), and names the correct prerequisite path via resolve_property when only an address is known. Both alternatives and conditions are stated rather than inferred.

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