Waqi Tools¶
Configuration File: waqi_tools.json
Tool Type: Local
Tools Count: 1
This page contains all tools defined in the waqi_tools.json configuration file.
Available Tools¶
WAQI_get_air_quality (Type: BaseRESTTool)¶
Get real-time Air Quality Index (AQI) data for a city or monitoring station using the World Air Q…
WAQI_get_air_quality tool specification
Tool Information:
Name:
WAQI_get_air_qualityType:
BaseRESTToolDescription: Get real-time Air Quality Index (AQI) data for a city or monitoring station using the World Air Quality Index API. Returns AQI values, dominant pollutant, and individual pollutant readings (PM2.5, PM10, NO2, O3, SO2, CO). IMPORTANT: without a personal token the public ‘demo’ token is used, which returns a fixed sample station (Shanghai) regardless of the requested city — do NOT treat demo results as the requested city’s air quality. Set the free WAQI_API_KEY environment variable (register at https://aqicn.org/data-platform/token/) to get real per-city data.
Parameters:
city(string) (required) City name or station name to get AQI for. Examples: ‘beijing’, ‘london’, ‘new-york’, ‘paris’, ‘delhi’, ‘los-angeles’. Use lowercase with hyphens for multi-word cities.
Example Usage:
query = {
"name": "WAQI_get_air_quality",
"arguments": {
"city": "example_value"
}
}
result = tu.run(query)