Skip to main content
Glama
frogr

nyc-open-data-mcp

by frogr

Search NYC Open Data catalog

search_datasets
Read-onlyIdempotent

Search NYC Open Data by keyword to find dataset IDs, names, descriptions, update dates, and column names. Use it first to choose a dataset and columns before querying.

Instructions

Search the NYC Open Data catalog (data.cityofnewyork.us) by keyword. Returns dataset ids, names, short descriptions, last-updated dates and column names. Use this first to find a dataset id and its columns before calling query_dataset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoResults per page (1-25, default 10).
queryYesKeywords, e.g. "restaurant inspections", "bike lanes", "rat sightings".
offsetNoPagination offset; pass next_offset from a previous call.
categoryNoOptional NYC Open Data category, e.g. "Health", "Transportation", "Housing & Development".
include_columnsNoInclude each dataset's column names and types (needed to write query_dataset filters).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
totalYesTotal matching datasets.
offsetYes
datasetsYes
returnedYes
next_offsetYesPass as offset for the next page; null when there are no more.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds valuable context by listing the exact fields returned and the downstream workflow purpose. It does not mention rate limits or pagination semantics, which would be a further improvement.

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?

Three tight sentences with no filler: scope, return payload, then the workflow directive. The most actionable guidance (use before query_dataset) is placed last as a clear call to action.

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 an output schema present, the description need not explain return values, and the annotations carry the safety profile. Combined with 100% schema coverage, everything an agent needs to invoke this tool and route correctly afterward is present.

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%, so every parameter (query, limit, offset, category, include_columns) is already fully documented in the schema with examples and ranges. The description only restates the keyword-search nature of the query parameter, adding no syntax or format detail beyond 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 (search) and resource (NYC Open Data catalog), names the host domain, and enumerates what is returned (ids, names, descriptions, dates, column names). It is clearly distinguishable from the query sibling, which executes queries rather than discovering datasets.

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?

Explicitly directs the agent to 'use this first to find a dataset id and its columns before calling query_dataset', establishing a clear ordering relationship with the named alternative. The condition that selects this tool over query_dataset is stated outright.

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