Skip to main content
Glama

Data Ny Query

data_ny_query
Read-onlyIdempotent

SoQL query on a single resource.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": 100,
      "where": "year = 2023",
      "resource_id": "xj2p-gjci"
    },
    "name": "data_ny_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupNo
limitNo
orderNo
whereNoSoQL WHERE clause (without "WHERE").
offsetNo
selectNo
resource_idYesSocrata 4x4, e.g. "xj2p-gjci"

Output Schema

NameRequiredDescriptionDefault
countYesNumber of items returned.
itemsYesArray of rows returned from SoQL query

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=true), so the description's only added behavioral content is the scope constraint 'on a single resource' — no cross-resource joins. It says nothing about result caps, pagination via limit/offset, authentication or app-token requirements, throttling, or cost of broad queries, all of which matter for an open-world query endpoint.

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

Conciseness3/5

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

The single sentence is front-loaded and free of padding, but at six words it is under-specified rather than concise — it omits information an agent needs. Efficiency is high; informational density is too low.

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

Completeness2/5

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

An output schema exists, so return values need not be described, but for a 7-parameter, open-world query tool with 29% schema coverage the description is far too thin: no dataset-discovery prerequisite, no paging or row-cap guidance, no pointer to SoQL syntax. An agent could call it, but only by reverse-engineering the schema examples.

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 only 29% (only where and resource_id are documented), so the description carries a real burden, and it partially discharges it by implying SoQL semantics for select/group/order/where. However, it never explains limit/offset paging behavior, maximum allowable limit, acceptable order/group syntax, or how clauses combine, leaving most of the 7 parameters undocumented in both structured and unstructured text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The sentence names a specific query dialect (SoQL) and a bounded object (a single resource), which tells an agent this runs arbitrary query expressions against one dataset rather than listing or describing datasets. It stops short of naming the platform/dataset family or differentiating itself from siblings such as data_ny_datasets or column_data, so the agent must infer the relationship from the tool name prefix.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: no statement that this is the tool for extracting/filtering/aggregating rows after discovering a resource_id elsewhere, and no mention of when a sibling (e.g. metadata or dataset listing) should be used first. The only implied guidance is that a resource_id is required, which comes from the schema rather than the description.

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.