Current By Zip
current_by_zipLatest observed air quality index (AQI) for the EPA AirNow reporting area nearest a US ZIP code: one row per pollutant (ozone, PM2.5, PM10) with the AQI value, category (Good / Moderate / Unhealthy …), observation hour, reporting agency and yesterday's AQI for comparison. Answers "what is the air quality in ZIP 94103 right now".
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"zip_code": "10001"
},
"name": "current_by_zip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip_code | Yes | US 5-digit ZIP code | |
| distance_miles | No | Search radius for the nearest reporting area (default 25, max 250) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of observations returned | |
| zip_code | Yes | US 5-digit ZIP code queried | |
| observations | Yes | Latest AQI observations for pollutants at nearest site |