Skip to main content
Glama

Air trend

air_trend
Read-only

Analyze trends in PM2.5, CO2, and VOC levels over a specified time window. Get per-pollutant statistics, rate of change, and natural-language insights to answer questions about air quality changes.

Instructions

Windowed trend analysis for PM2.5 / CO2 / VOC. Pulls past measurements from AirGradient (public or owned) and returns per-pollutant mean / median / min / max / current / rate_of_change_per_hour / peak_at / trough_at / time_above_threshold_minutes plus an optional natural-language observation (only when the data supports one). Pass pollutant: 'all' (default) for an array of per-pollutant trends plus worst_pollutant per current WHO/ASHRAE bands. Use this for 'is PM2.5 climbing?' / 'was CO2 stable overnight?' / 'when did VOC spike?' kinds of questions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hoursNoAnalysis window in hours (1-168, default 24).
pollutantNoPollutant to analyze. Default 'all'.
locationIdNoAirGradient locationId. Falls back to WELLNESS_AIR_DEFAULT_LOCATION.
response_formatNoOutput shape. Defaults to json.
Behavior4/5

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

Annotations already indicate readOnlyHint and openWorldHint. The description adds valuable context by detailing the output fields (mean, median, rate_of_change, etc.) and the optional natural-language observation, with no contradictions.

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 description is front-loaded with purpose and output structure, and every sentence adds value. While it is somewhat verbose, it remains clear and efficient for the complexity of the tool.

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?

Given no output schema, the description adequately explains return fields and behavior (per-pollutant stats, worst_pollutant, optional observation). It covers the main scenarios but could clarify window application slightly more.

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 description adds little beyond defaults and examples. Parameters are well-described in the schema, making additional detail in the description minimal.

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 clearly states the tool performs windowed trend analysis for PM2.5, CO2, and VOC, and differentiates from sibling tools by focusing on trends over time. It provides specific output fields and usage examples like 'is PM2.5 climbing?'.

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?

The description explicitly provides usage examples (e.g., 'is PM2.5 climbing?') and implies when to use this tool over alternatives like single current reading or daily summary, though it does not explicitly list when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/davidmosiah/wellness-air'

If you have feedback or need assistance with the MCP directory API, please join our Discord server