Skip to main content
Glama

x402_socrata-nyc_get_v1_air_quality

Retrieve NYC air quality data from NYC Open Data to monitor conditions and support environmental analysis.

Instructions

socrata-nyc — NYC Open Data (data.cityofnewyork.us) curated datasets: 311 requests, crime complaints, restaurant inspections, traffic collisions, building permits, air quality [GET /v1/air-quality] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/air-quality?limit=2

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": "x402_socrata-nyc_get_v1_air_quality"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

C2.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose genuinely important behavior that no structured field conveys: this is a paid call costing $0.005 USDC across four chains (eip155:8453+137+42161+480). However, it says nothing about the payment flow, whether failures are charged, rate limits, pagination, or what the response looks like, which are material for a metered 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?

It is a single sentence with no padding, but it is front-loaded with family-level boilerplate that applies to six sibling tools, burying the endpoint path, price, and example at the end. The most tool-specific facts should lead.

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?

For a paid, no-annotation, no-output-schema endpoint, the description should convey what comes back (field shape or at least the unit of a record) and the paid-call semantics. Neither is covered, and the restart/operationId parameters hint at retry/billing edge cases the description never mentions.

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 the generic wrapper parameters (body, query, restart, operationId) are already documented in the schema. The description adds one useful detail beyond it — the '?limit=2' example showing that query accepts Socrata-style options like limit — but nothing about filtering, paging, or ordering syntax. Baseline 3 applies.

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

Purpose3/5

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

The specific part is the bracketed endpoint path '[GET /v1/air-quality]' plus the word 'air quality', which lets an agent identify the dataset relative to siblings like 311_requests or crime_complaints. But the majority of the sentence is a generic family catalog ('311 requests, crime complaints, restaurant inspections...') that describes the whole socrata-nyc group, not this tool. It never says what an air-quality record contains (AQI readings? sensor measurements? dates?), so purpose is identifiable but thin.

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?

No statement about when to use this dataset versus the other NYC datasets, no prerequisites, no note on what data range or granularity is available. The only usable cue is the example '/v1/air-quality?limit=2', which is illustrative rather than guidance about tool selection.

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

Deploy Server

Other Tools