Skip to main content
Glama

Current air quality

get_air_quality
Read-onlyIdempotent

PM2.5 now in a city (mean of the latest reading of each eligible sensor, at most 60 minutes old) with its US EPA category and the weather now (temperature, humidity, pressure, wind, clouds, precipitation), plus the last completed day from the Atmy Data Hub with its weather. Pass city or lat/lon.

Input Schema

NameRequiredDescriptionDefault
latNoLatitude; with lon, the nearest city with an Atmy summary within 50 km.
lonNoLongitude.
cityNoCity name in any of the site languages, a slug like "russia/krasnoyarsk", or the Atmy city id.
langNoLanguage of city and country names and of the page link; default en.
countryNoCountry name, to tell apart cities with the same name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and non-open-world, so the safety profile is covered; the description earns credit for adding computation semantics the annotations cannot express — the mean-of-latest-sensor-reading aggregation and the 60-minute staleness cutoff. It does not address rate limits or failure behavior when no sensor or city is in range, which the schema only partially covers via the 50 km rule.

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 return payload is front-loaded in the first clause and the invocation hint is a short separate sentence. The result clause is dense and run-on (nested parentheses listing seven weather fields), but essentially every clause carries information an agent needs.

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 no output schema, the description carries the full return-shape burden and does so thoroughly — PM2.5 plus category, current weather sub-fields, and the prior-day summary. Combined with 100%-covered parameters and full annotations, nothing material is missing for correct invocation.

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 schema already documents lat/lon/city/lang/country in detail, making the baseline 3. The description adds only the either/or framing of city vs lat/lon, with no extra syntax, precedence, or default behavior beyond what the schema provides.

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 resource (PM2.5 now for a city) plus the exact composite payload: EPA category, current weather fields, and the last completed day. The 'now' framing plus the explicitly named daily historical component inherently separates it from get_air_quality_history, get_air_quality_monthly, and get_city_forecast.

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?

The closing 'Pass city or lat/lon' gives concrete invocation guidance on the two mutually exclusive location modes, but there is no statement about when a caller should prefer this over get_air_quality_history, get_air_quality_monthly, or get_city_forecast. Usage is implied by the word 'now' rather than stated.

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