Skip to main content
Glama

Pijexa NYC Building Compliance

Get ZIP-level violation benchmark

get_zip_peer_stats
Read-onlyIdempotent

Return the open-HPD-violation benchmark for a NYC ZIP code, from a weekly snapshot of HPD data: how many buildings have at least one open HPD violation, and the mean, median, 90th-percentile and maximum open HPD violations among those buildings (buildings with none are not in the denominator), plus lastRefreshed and stale. Pass openViolations to also get a verdict comparing one building's open HPD count to the ZIP mean: ratio to the mean, a label (well_below … much_above), and a plain-English sentence. The verdict is a comparison to the mean only, not a percentile rank. openViolations must be summary.hpdOpenViolations from check_building_compliance; if that is null (incomplete or unknown), omit openViolations. Do not pass the all-agency openViolations total. Returns not_found for ZIPs with no snapshot yet.

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": {
      "zip": "<zip>"
    },
    "name": "get_zip_peer_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipYesNYC 5-digit ZIP code, e.g. "11201".
openViolationsNoThe building's exact count of open HPD violations: summary.hpdOpenViolations from check_building_compliance. Omit it when that value is null. Enables the comparison verdict.

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 cover read-only, idempotent, non-destructive, closed-world semantics, yet the description adds substantial extra behavior: the data is a weekly snapshot with lastRefreshed and stale fields, buildings with zero violations are excluded from the denominator, and ZIPs without a snapshot return not_found. That is well beyond what the structured fields convey.

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?

The purpose is front-loaded in the first clause and every subsequent sentence carries operational information. It is a dense single paragraph with mild redundancy against the schema's openViolations description, but no filler sentences.

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 must carry the return contract, and it does: named stats, staleness fields, the conditional verdict object, and the not_found case. For a two-parameter read tool this leaves nothing an agent needs 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 both parameters are already documented, but the description adds genuine meaning: passing openViolations triggers a whole additional response block (ratio, label, plain-English sentence) and must come from summary.hpdOpenViolations in check_building_compliance rather than the all-agency total. This clarifies downstream behavior of the parameter, not just its type.

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?

The description opens with a specific verb and resource ('Return the open-HPD-violation benchmark for a NYC ZIP code') and immediately enumerates the metrics returned (count of buildings with at least one open violation, mean, median, 90th percentile, max). It also draws the line against the sibling that feeds it, check_building_compliance, making the two distinguishable at a glance.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states clearly when to supply openViolations, when to omit it (null / incomplete / unknown source), and an explicit negative constraint ('Do not pass the all-agency openViolations total'). It also explains how to read the verdict (mean comparison, not a percentile rank). The only gap is that no alternative tool is named for cases where a ZIP benchmark is the wrong framing.

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