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 (greater than 0, at most 50; default 10)
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 (at least 1; default 100,
values above 500 are capped at 500)
Returns the single most recent reading per datastream within the radius,
nearest first. Each reading includes parameter, value, unit, timestamp,
station_name, lat, lon, distance_km, source, and source_attribution.
truncated=true means more datastreams lie in the radius than one query can
scan: narrow the radius or add a parameter.
For time-range queries, use get_readings_history instead.
Invalid coordinates, radius or limit return an error with the valid ranges.
An unrecognized parameter returns an error with the full list of valid names.
Errors carry "retryable": if true (timeout, circuit_breaker_open) wait
retry_after_seconds; if false (query_rejected) retrying will not help.
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 | ||
| truncated | No | More datastreams lie in the radius than one query can scan; results may miss some nearby stations. Narrow the radius or add a parameter. |