Get Latest Environmental Readings
get_latest_readingsGet the most recent environmental readings near a location.
Args:
lat: Latitude in WGS84 (e.g. 51.92 for Rotterdam)
lon: Longitude in WGS84 (e.g. 4.47 for Rotterdam)
radius_km: Search radius in kilometers (default 10, max 50)
parameter: Optional filter by parameter name or alias (e.g. "pm2_5",
"temperature", "pm25", "no2"). Use get_parameters() to see
all valid names and aliases.
limit: Maximum number of readings to return (default 100, max 500)
Returns the single most recent reading per datastream within the radius.
Each reading includes parameter, value, unit, timestamp, station_name,
lat, lon, source, and source_attribution.
For time-range queries, use get_readings_history instead.
Invalid coordinates return an error with the valid ranges.
An unrecognized parameter returns an error with the full list of valid names.
If the data source is unreachable, returns cause (timeout, circuit_breaker_open)
and retry_after_seconds.
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": {
"lat": "<lat>",
"lon": "<lon>"
},
"name": "get_latest_readings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | ||
| lon | Yes | ||
| limit | No | ||
| parameter | No | ||
| radius_km | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| readings | Yes |