search_cities
Find a municipality's IBGE code from its name.
Issuing resolves city_code from city and state by itself, so this is for the name that matches more than one city, or an address the API answered CITY_NOT_FOUND for. Returns at most 20, each with its code, name and state; ask the user which one when more than one fits. Read-only.
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": {
"name": "<name>"
},
"name": "search_cities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The start of the city's name, accents optional, e.g. santa rita. | |
| state | No | Narrows to one UF, e.g. SP. | |
| country | No | ISO 3166-1 alpha-2 code. A code means nothing without it, and Brazil is the default rather than a guess. | BR |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cities | No |