Current By Location
current_by_locationLatest observed air quality index (AQI) for the EPA AirNow reporting area nearest a latitude/longitude in the US: one row per pollutant with AQI value, category, observation hour, agency and yesterday's AQI. Answers "what is the air quality at these coordinates 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": {
"latitude": 40.7128,
"longitude": -74.006
},
"name": "current_by_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latitude | No | US latitude | |
| location | No | Free-text place instead of latitude and longitude: 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 latitude and longitude is also given it wins and location is ignored. | |
| longitude | No | US longitude | |
| 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 | |
| latitude | Yes | Query latitude | |
| longitude | Yes | Query longitude | |
| observations | Yes | Latest AQI observations for nearest station |