Skip to main content
Glama
nyc-violations-mcp

nyc-violations-mcp

by am718

DOB violations for a building

get_dob_violations
Read-onlyIdempotent

Lists NYC Department of Buildings violations for a building by BIN, newest first, to review its DOB compliance record.

Instructions

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

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_dob_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.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), yet the description still adds real behavioral context the schema cannot: the open/closed heuristic ("ACTIVE" substring in category), the fact that some open records are annotated as deleted, the ~12,000 character response cap with a `truncated` flag, and `undated_excluded` for recency lists. These are non-obvious output behaviors that materially change how an agent interprets results, though the exact heuristic edge cases are only sketched.

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

Conciseness5/5

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

Front-loads action and scope, then prerequisite, then the exclusion routing, then the output caveats — a sensible priority order for an agent skimming. Dense but every clause carries a distinct, actionable fact; nothing is repeated from the title.

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 and no return-value documentation elsewhere, the description compensates by naming the response fields that matter (`truncated`, `undated_excluded`) and by flagging truncation and status-heuristic pitfalls. For a read-only, three-parameter list tool, nothing an agent needs to call it correctly or interpret results 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 the baseline is 3; the description earns above that by explaining that a large `limit` may return fewer records due to the character cap and by pre-warning that `status` is a heuristic rather than a true state field. It does not restate the BIN format, correctly deferring 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?

Opens with a specific verb+resource+scope: "List NYC Department of Buildings (DOB) violations for one building by BIN, newest first." It immediately names the entity boundary (one building) and the sort order, and the DOB domain is disambiguated from ECB/HPD in the same breath.

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 an explicit prerequisite ("Requires a BIN: if you only have an address, or are unsure of the BIN, call resolve_property first") and three named exclusions with routing: get_ecb_violations for penalties/hearings, get_hpd_violations for housing-maintenance, building_compliance_summary for an overview. When-to-use, when-not-to-use, and alternatives are all present.

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