Skip to main content
Glama

Air quality

get_air_quality
Read-onlyIdempotent

Retrieve air quality index, pollutant levels, and pollen data for a location, returning European AQI and station-based readings where available.

Instructions

Get air quality index, pollutant concentrations (PM2.5, PM10, NO2, O3, SO2, CO) and pollen (alder, birch, grass, mugwort, ragweed; Europe) for a location. Returns the European AQI with category. In Finland, values measured at the nearest air quality station (within 10 km) take precedence over the model.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "location": "<location>"
    },
    "name": "get_air_quality"
  }
}

Input Schema

NameRequiredDescriptionDefault
locationYesCity name, coordinates (lat,lon), or Finnish city alias

Output Schema

NameRequiredDescriptionDefault
pollenNoCAMS model, Europe only
sourcesYes
categoryNoGood, Fair, Moderate, Poor, Very poor, Extremely poor
locationYesResolved location
measuredAtNoair quality station (Finland, within 10 km); time = hourly value
pollutantsYes
europeanAqiNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A4.5/5.0
Behavior5/5

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

The description goes beyond simple metadata by disclosing specific behavioral rules, such as returning the European AQI with category, and detailing the crucial regional logic for Finland concerning station precedence.

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?

The definition is extremely dense and efficient; every clause conveys a necessary piece of information—what is retrieved and how regional rules modify the data source.

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?

Given the parameter count and the wealth of data described, the definition is highly complete. It defines the scope of the data and handles crucial regional data acquisition logic internally.

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?

Since the schema coverage is 100%, the baseline is met. The description adds supplementary value by clarifying the exact acceptable formats for the location parameter (city name, coordinates, or Finnish alias).

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?

The description provides a highly specific resource and set of metrics (AQI, PM2.5, NO2, etc.) that clearly defines what the tool returns, and differentiates it from general weather tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

While it does not explicitly state alternatives, the detailed list of pollutants and pollen makes it contextually distinct from sibling weather services, guiding the agent to the correct choice for environmental health data.

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