Skip to main content
Glama

Air Quality

weather_air_quality
Read-onlyIdempotent

Fetch real-time or forecast air quality data with pollutant levels and AQI indices. Specify location by name, coordinates, or IP.

Instructions

Get air quality data either real-time or forecast. Returns PM2.5, PM10, CO, NO₂, SO₂, ozone, dust, and UV index. Real-time mode also includes AQI summary indices (US & EU); forecast mode returns raw pollutant values only. Omit dates for real-time AQI. Provide 'start_date' and 'end_date' for hourly AQI forecast (max 6 days, current/future dates only). NOTE: Use this tool over 'weather_current' when you need standalone or forecast air quality data. Provide at least one of: 'location', lat+long, or 'ip'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
locationNoTarget location — city name, place name, or full address (e.g. "London", "Paris, France", "1600 Amphitheatre Parkway, Mountain View, CA").
latNoLatitude (-90 to 90). Must be paired with 'long'.
longNoLongitude (-180 to 180). Must be paired with 'lat'.
ipNoIPv4 or IPv6 address. Required if 'location' and lat/long are not provided.
start_dateNoStart date for AQI forecast (YYYY-MM-DD). Current/future dates only. Must be paired with 'end_date'. Max 6-day range. Omit for real-time AQI.
end_dateNoEnd date for AQI forecast (YYYY-MM-DD). Current/future dates only. Must be paired with 'start_date'. Max 6-day range.
time_zoneNoTimezone for returned timestamps (tz database name, e.g. 'America/New_York'). Defaults to the resolved location's timezone.
Behavior4/5

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

Annotations already indicate readOnlyHint, destructiveHint, idempotentHint, and openWorldHint. The description adds behavioral context about real-time vs forecast modes, AQI vs raw values, and date constraints, which goes beyond what annotations provide.

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 a single paragraph that covers all essential points without excessive verbosity. It front-loads the core purpose and uses clear language, though it could be slightly more structured.

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 7 parameters, no required fields, and no output schema, the description covers the main use cases, modes, and constraints. It could be improved by describing the return format, but overall it's fairly complete.

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

Parameters4/5

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

Schema description coverage is 100%, so the schema already documents each parameter. The description adds extra semantics such as 'Omit dates for real-time AQI' and 'Provide start_date and end_date for hourly AQI forecast', which aids understanding beyond the schema.

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 'Get air quality data either real-time or forecast' and distinguishes itself from the sibling tool 'weather_current' by advising to use this tool when standalone or forecast air quality data is needed.

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

Usage Guidelines5/5

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

Provides explicit when-to-use guidance (over weather_current), parameter usage (omit dates for real-time, provide start_date and end_date for forecast), and constraints (max 6 days, current/future dates only). Also specifies at least one of location, lat+long, or ip is required.

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/api-freaks/apifreaks-mcp'

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