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 |
|---|---|---|---|
| location | No | Free-text place instead of a ZIP code: a city ("Carnelian Bay, CA"), landmark, address, county or "10 miles north of Truckee". Resolved to a center point; the answer echoes resolved_location {name, match_type, center, bbox} so you can refuse a match coarser than you need. An ambiguous name ("Springfield") returns candidates and makes no data call. If zip_code is also given it wins and location is ignored. | |
| zip_code | No | 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 |