Skip to main content
Glama

Pijexa NYC Building Compliance

Check NYC building compliance

check_building_compliance
Read-onlyIdempotent

Look up a New York City building by street address and return its compliance record from official city datasets: open HPD housing violations, DOB building violations and ECB summonses (open/closed from each agency's official status field), penalties imposed on retrieved ECB records (not a current balance), DOB complaints (reported separately, not counted as violations), critical/warning signals (expired HPD registration, vacate orders, tax-lien list, etc.), a preview of the most recent violations per agency, and inspection status for boilers, facades (LL11), and elevators (elevator records are device inventory, not test results, so they are UNKNOWN unless a record shows a problem). The address must resolve to a verified NYC building (BIN); otherwise the tool returns error.code not_found, and upstream if the city lookup failed. Each source returns at most 100 newest records: a count is exact only when the source is complete, and is null when truncated, failed, when a status is unknown, or when returned rows had to be excluded (excludedCount), with retrievedCount and knownOpenCount given instead. Check quality.complete, quality.failedSources and quality.truncatedSources before saying a building has no violations; absence of records is not proof of compliance. Use this first whenever a user asks about violations, fines, safety issues, or risk for a specific NYC address. Returns matchedProperty.bin and .bbl, which other tools accept, and summary.hpdOpenViolations for get_zip_peer_stats. Only NYC addresses are supported. The response is a free preview (at most 100 records per source); the $49 Pijexa Due Diligence Report described in reportOffer reads every available record page per source and adds OATH hearing and FDNY records.

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": {
      "address": "<address>"
    },
    "name": "check_building_compliance"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesStreet address of the building, e.g. "123 Smith Street" or "123 Smith Street, Brooklyn, NY 11201". Include the borough or ZIP in the string, or pass it separately.
boroughNoNYC borough. Optional if the address text already names the borough or contains a NYC ZIP code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description goes far beyond: exact error codes (not_found, upstream), the 100-newest-records-per-source cap, the rule that counts are null when truncated/failed/unknown, the presence of excludedCount/retrievedCount/knownOpenCount, and the caveat that penalties are not a current balance. It also flags interpretive traps — DOB complaints are not counted as violations, elevator data is device inventory so status is UNKNOWN unless a problem appears, and absence of records is not proof of compliance.

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?

Purpose is front-loaded in the opening clause and every sentence carries substantive information, but the text is a single dense block of very long clauses (one sentence spans the entire record inventory and truncation rules) that would scan better if chunked. No filler or repetition, though.

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?

There is no output schema, so the description carries the full burden of return-value documentation and does so — matchedProperty.bin/.bbl, summary.hpdOpenViolations, quality.complete/failedSources/truncatedSources, and the preview nature of the response. For a two-parameter read tool with openWorld lookups and partial-failure modes, nothing an agent needs to call it or interpret it correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100%, and both parameters are already documented there, including the borough-is-optional-if-the-address-names-it rule. The description adds the semantic requirement that the address must resolve to a verified BIN, but contributes no format or syntax detail beyond the schema — baseline 3 applies when the schema does the heavy lifting.

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 ("look up a New York City building by street address and return its compliance record") plus the exact contents of that record: HPD violations, DOB violations, ECB summonses, complaints, inspection status. It effectively separates itself from siblings by naming what it feeds into (get_zip_peer_stats accepts summary.hpdOpenViolations) and by pointing to the paid report as the deeper alternative.

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?

Explicit routing instruction: "Use this first whenever a user asks about violations, fines, safety issues, or risk for a specific NYC address." It also states the exclusion ("Only NYC addresses are supported") and names the alternative for full coverage (the $49 Pijexa Due Diligence Report described in reportOffer), so both when-to-use and when-to-escalate are covered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources