get_historical_aq
Get historical air quality data for a site or location, with health context.
Returns a 'narrative' with plain-English interpretation, WHO 24-hour guideline exceedance days, and guideline comparisons. Present the narrative to users first. Also returns 'data' and a per-site 'summary' (statistics are per monitor, never pooled across monitors).
Annual guidelines are compared only for windows of a year or more with at least 75% data capture. Daily and monthly rows carry 'n_hours' and 'partial'; partial days (under 18 hours) are excluded from exceedance counts. Times and days are UTC.
Args: start_date: Start date (ISO format, e.g. "2025-01-01"). end_date: End date (ISO format). A date includes that whole day, so a window ending today includes this morning's readings. location: Postcode, place name, or "lat,lon". Provide this or site_code. site_code: Direct site code. Provide this or location. pollutants: Optional filter, e.g. ["NO2", "PM2.5"]. frequency: "hourly", "daily", or "monthly" (default "daily").
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": {
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "get_historical_aq"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | ||
| location | No | ||
| frequency | No | daily | |
| site_code | No | ||
| pollutants | No | ||
| start_date | Yes |