search_osm_elements
Find OpenStreetMap places by name or type within a bounded area, using coordinates or a bounding box to return nearby results sorted by distance.
Instructions
Literal case-insensitive text search in multilingual name/alt_name/ official_name tags (including :* variants) and amenity/tourism/leisure/ historic/shop tags. Requires bbox (west,south,east,north, max 0.25 degrees each side) OR lat/lon/radius_meters (1–10000m). Never a global regex scan. Results sorted by straight-line distance from point or bbox center.
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": "search_osm_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | ||
| lon | No | ||
| bbox | No | ||
| limit | No | ||
| query | Yes | ||
| element_type | No | all | |
| radius_meters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |