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; a government station hour up to 3 hours old, with the time it was measured) 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.

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": "get_air_quality"
  }
}

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

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world, so the bar is lower, yet the description still adds real behavioral context: readings are at most 60 minutes old, government stations may be up to 3 hours old with timestamps, and the value is a mean of each eligible sensor's latest reading. It stops short of saying what happens when no eligible sensor or city exists, so not a 5.

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?

Front-loaded with the core result ('PM2.5 now in a city'), and each clause (aggregation, freshness, EPA category, weather, last completed day) carries information. The main body is one long run-on sentence with heavy parenthetical nesting, which costs some readability.

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 must convey return contents and it does: PM2.5 value, measurement time, EPA category, current weather fields, and a prior-day summary. It leaves out failure behavior (no data / city not found) and the page link mentioned via lang, but an agent has enough to call it correctly.

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 coverage is 100% and already documents lat/lon, city formats, lang, and country, so the schema does the heavy lifting. The description only adds 'Pass city or lat/lon', which hints that a location is expected despite zero required parameters but adds little beyond the schema text.

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 in a city) with its aggregation rule, plus the EPA category, current weather, and the last completed day. The word 'now' plus 'last completed day' cleanly separates it from get_air_quality_history and get_air_quality_monthly without opening either 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?

The closing 'Pass city or lat/lon' gives a minimal how-to for the location inputs, and 'now' versus 'last completed day' implies the current-reading use case. But there is no explicit when-to-use/when-not guidance and none of the obvious alternatives (get_air_quality_history, get_sensors_average, get_sensor_readings) are named as the choice for other needs.

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