Skip to main content
Glama
ny-data-registry-mcp

ny-data-registry-mcp

how_to_query

Read-only

Retrieve a registry source's exact endpoint, API type, key requirement and env var, example request, and recommended MCP handoff, with flags for unconfirmed, gated, dead, or undocumented rows.

Instructions

How to get data from one registry source: its endpoint (copied verbatim, never guessed), API type, whether a key is needed and which env var holds it, an example request, and which MCP server to hand off to (the socrata MCP with the right domain, or the matching @betanyc MCP). Flags UNCONFIRMED, undocumented, gated, dead and no-portal rows.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "how_to_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoWhen several rows match: most to list. Default 25
entityNoEntity name, e.g. 'NYS Department of Health'
offsetNoWhen several rows match: skip this many (next_offset)
source_idNoFrom find_sources / list_sources_for_place results
registry_idNoGovernment body id from BetaNYC/ny-gov-web-registry. Several sources can share one; then the reply lists them

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.4.0
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "When several rows match: most to list. Default 25",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "When several rows match: skip this many (next_offset)",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / registry_id / description
      Previous value: -"ny-gov-web-registry id (only 22 rows carry one)"New value: +"Government body id from BetaNYC/ny-gov-web-registry. Several sources can share one; then the reply lists them"
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds meaningful behavior beyond that: the endpoint is 'copied verbatim, never guessed,' and the tool surfaces row status flags (UNCONFIRMED, undocumented, gated, dead, no-portal), which tells the agent how to interpret results and trust them. It stops short of describing multi-match behavior, but the schema's limit/offset descriptions already cover that case.

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?

Two sentences, front-loaded with the core purpose, followed by a compact enumeration of returned fields and status flags. Nearly every clause carries information, though the field list is dense enough that it reads as a run-on. Tight and functional with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of explaining return values, and it does so thoroughly: connection details, auth location, an example request, handoff routing, and data-quality flags. The only gap is how results behave when several sources match, which is covered by the schema rather than the description, so completeness is strong overall.

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 each parameter (entity, source_id, registry_id, limit, offset) is documented in the schema, including the multi-source-per-registry case. The description only reinforces that a call targets a single registry source; it adds no selector syntax, precedence rules, or format guidance beyond the schema. Baseline 3 is appropriate when the schema does the work.

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 names a specific verb and resource ('how to get data from one registry source') and then enumerates exactly what the response contains: endpoint, API type, key/env var, example request, and handoff target. The mention of the `socrata` MCP and matching @betanyc MCP makes the tool's role distinct from discovery siblings like find_sources or check_source. An agent can tell what this returns without opening the schema.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the framing 'one registry source' plus the schema note that source_id comes from find_sources results signals the follow-up-after-discovery flow. However, the description never explicitly says when to use this instead of check_source or get_dataset_columns, nor does it state preconditions or exclusions. Adequate but reliant on inference.

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