Overpass QL query
overpass_queryFor any OpenStreetMap question the other tools do not cover: shops of one brand, peaks over 3000 m, springs, huts, benches with a view, any tag combination. Runs an Overpass QL query on OpenStreetMap data and returns Overpass JSON. Supports tag filters, bbox, around (a point or a line), poly, area (administrative boundaries and protected areas), is_in, unions and out body/tags/center/geom/count. Every query needs a bbox, around, poly, area or id; no recursion (> <). With openAt, only places whose opening_hours say they are open at that local time come back, and open_at in the answer counts how many were open, closed or had no readable hours. Answers are capped in size by plan; keep boxes small and use out center or out tags when the geometry is not needed. Use stops_along_route for stops along a route, outdoor_layers for marked trails, parks and pistes, point_report for what is at one place. Counts as one request.
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": {
"query": "<query>"
},
"name": "overpass_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The Overpass QL script, with [out:json], such as [out:json];node[amenity=drinking_water](46.1,6.0,46.3,6.3);out; | |
| openAt | No | Local time at the places, YYYY-MM-DDTHH:MM, e.g. 06:59 on a weekday to find places that open before 7 |