Overpass Query
overpass_queryRun a raw Overpass QL query against OpenStreetMap. Use for complex spatial queries the helper tools can't express. Example: [out:json][timeout:25]; area["name"="Berlin"][admin_level=4]->.a; node["amenity"="library"](area.a); out body;. Returns the raw Overpass JSON (elements array with node/way/relation).
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": {
"qql": "[out:json][timeout:25]; area[\"name\"=\"Paris\"][admin_level=4]->.a; node[\"amenity\"=\"restaurant\"](area.a); out body;"
},
"name": "overpass_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qql | Yes | Full Overpass QL query string. Start with `[out:json][timeout:<n>];` and end with `out body;` (or similar output statement). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of elements returned | |
| elements | Yes | Array of normalized OSM elements |