Skip to main content
Glama

Airquality Get Air Quality

airquality_get_air_quality
Read-onlyIdempotent

Check current air quality at a location (latitude/longitude or city name, e.g., "40.7128, -74.0060" or "New York"). Returns US AQI score, PM2.5, PM10, CO, NO2, and ozone levels.

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": {
      "latitude": 40.7128,
      "longitude": -74.006
    },
    "name": "airquality_get_air_quality"
  }
}

Input Schema

NameRequiredDescriptionDefault
latitudeYesLatitude of the location.
longitudeYesLongitude of the location.

Output Schema

NameRequiredDescriptionDefault
us_aqiYesUS Air Quality Index score
latitudeYesLatitude of the location
longitudeYesLongitude of the location
pm10_ug_m3YesPM10 concentration in micrograms per cubic meter
ozone_ug_m3YesOzone concentration in micrograms per cubic meter
pm2_5_ug_m3YesPM2.5 concentration in micrograms per cubic meter
aqi_categoryYesAQI category (Good, Moderate, Unhealthy, etc.)
carbon_monoxide_ug_m3YesCarbon monoxide concentration in micrograms per cubic meter
nitrogen_dioxide_ug_m3YesNitrogen dioxide concentration in micrograms per cubic meter

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=true, so safety and idempotency are covered structurally. The description adds that the answer is a snapshot with named pollutant readings, but says nothing about auth, rate limits, coverage gaps, or how missing-monitor locations are handled.

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?

Two sentences, front-loaded with the action and followed by the returned fields; nothing is padded. The city-name example is the one clause that does not earn its place, since it introduces an unsupported input form.

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

Completeness3/5

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

An output schema exists, so explaining AQI and pollutant returns is largely redundant, and the remaining gaps are real: no handling for missing/invalid coordinates and no mention of data source or freshness. The unsupported city-name claim actively detracts from an otherwise simple two-parameter read tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for latitude and longitude, so the schema already carries parameter meaning. Worse, the description claims a 'city name' input (e.g., "New York") that the schema does not support – both required parameters are numbers – which could lead an agent to pass a string into a numeric field.

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?

States a specific verb and resource ('Check current air quality') and names the outputs, so an agent can tell it apart from airquality_get_forecast via the word 'current'. It stops short of explicitly contrasting the two siblings, so it is clear but not exemplary.

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 word 'current' implies this is the point-in-time reading as opposed to a forecast, but the description never states when to prefer it over airquality_get_forecast or what happens for historical data. Usage is inferable 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.