Skip to main content
Glama

Global Weather & Marine

Current Air Quality & UV Index

weather_get_air_quality
Read-onlyIdempotent

Get real-time Air Quality Index, health rating, fine particle levels (PM2.5 and PM10), ozone, and UV index for any city shortcut or latitude and longitude worldwide.

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

Input Schema

NameRequiredDescriptionDefault
latNoAlias for latitude.
lonNoAlias for longitude.
latitudeNoLatitude in decimal degrees (-90 to 90).
longitudeNoLongitude in decimal degrees (-180 to 180).
spend_keyNoOptional prepaid API key for paid lookups. Can also be sent in the x-atlas-spend-key header.
credit_keyNoOptional prepaid API key for paid lookups. Can also be sent in the x-atlas-spend-key header.
destinationNoOptional featured city shortcut (or supply explicit latitude and longitude anywhere worldwide).
builder_codeNoOptional partner referral code for revenue sharing.
idempotency_keyNoOptional unique request ID so retries are never billed twice.
payment_signatureNoOptional direct payment header when paying per request without a prepaid API key.

Output Schema

NameRequiredDescriptionDefault
okNo
us_aqiNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / destination / enum
      Previous value: -[
      -  "annapolis",
      -  "ocean_city",
      -  "wharf_dc",
      -  "national_harbor",
      -  "college_park",
      -  "st_croix",
      -  "kill_devil_hills",
      -  "calistoga",
      -  "nationals_park"
      -]New value: +[
      +  "annapolis",
      +  "ocean_city",
      +  "wharf_dc",
      +  "national_harbor",
      +  "mgm_national_harbor",
      +  "navy_yard",
      +  "college_park",
      +  "st_croix",
      +  "kill_devil_hills",
      +  "calistoga",
      +  "nationals_park"
      +]
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds 'real-time' and 'worldwide' coverage, but omits the notable behavior that lookups can be paid (spend_key, credit_key, payment_signature) and that retries are de-duplicated via idempotency_key — relevant context an agent cannot infer from the annotations. There is also mild tension between 'worldwide' and openWorldHint=false, though this is not a direct contradiction.

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

Conciseness5/5

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

A single front-loaded sentence that names the outputs and the accepted location inputs with no filler. Every clause carries information the agent can act on.

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?

An output schema exists, so return values need not be explained, and the safety annotations cover mutation risk. For a ten-parameter tool whose extra parameters are billing and referral plumbing, the description is adequate, though it could note the paid-lookup path to fully match the tool's complexity.

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 baseline is 3. The phrase 'city shortcut or latitude and longitude' usefully frames the two alternative location input modes among ten parameters, but the description adds nothing about the aliases (lat/lon vs latitude/longitude) or that all parameters are optional.

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 description gives a specific verb ('Get') plus a named resource ('Air Quality Index, health rating, PM2.5, PM10, ozone, UV index'), which is far more informative than the title alone. It implicitly separates this from weather_get_current and weather_get_forecast by scoping to air quality and UV, but never names a sibling to make the boundary explicit.

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?

Usage is only implied: 'real-time' plus 'any city shortcut or latitude and longitude' tells the agent this is a point-in-time lookup at a location. There is no statement of when to prefer this over weather_get_current or weather_get_site_briefing, and no prerequisites or exclusions are given.

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