Suggest boundaries (autocomplete)
suggest_boundariesAutocomplete for a search box: the best-known boundaries whose name starts with what has been typed so far, in any language and without accents or case ("munc" finds München, "new y" New York). Answered from our own index in milliseconds with no upstream call, so call it on every keystroke. Free and public. Returns up to limit candidates, most prominent first (countries and states, then by population), each with id, name, type (the division's level: country, region, county, localadmin, locality, macrohood, neighborhood), country_code, region (ISO 3166-2), population, area_km2 and centroid, but no polygon: pass the id to get_boundary. It matches the start of a name only. For a complete name, a postcode, an address, a filter by kind or admin_level, or parents in the result, use search_boundaries.
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": {
"q": "<q>"
},
"name": "suggest_boundaries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | What the user has typed so far, e.g. "berl". One character is enough. | |
| limit | No | At most this many suggestions (1–20, default 8). | |
| country | No | Limit to countries: ISO 3166-1 alpha-2, comma-separated (e.g. US or de,at,ch). |