overpass_query
Run Overpass QL queries against the OpenStreetMap Overpass API to retrieve map data, returning raw responses or GeoJSON FeatureCollections for use in geospatial analysis.
Instructions
Run an Overpass QL query against the OpenStreetMap Overpass API and return the result. Set format to 'geojson' to get a GeoJSON FeatureCollection instead of the raw Overpass response.
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 query to execute (the full query text, e.g. 'node[amenity=pharmacy](50.0,19.9,50.1,20.0);out;'). | |
| format | No | 'raw' (default) returns the Overpass response verbatim; 'geojson' converts it to a GeoJSON FeatureCollection. | raw |