Find IBGE codes for Brazilian places
ibge_find_placesFinds Brazilian places by name and returns their official IBGE codes: regions, states, mesoregions, microregions or municipalities (all 5,571). Accent-insensitive; state narrows by two-letter abbreviation; capitals returns the 27 state capitals in one call. Each result carries the SIDRA level code (N3, N6…) so its id can go straight into ibge_get_table_data localities, and the 7-digit municipality code that ibge_get_city_profile and ibge_get_boundary take. Read-only; reads IBGE's public API live through Kyrodata (cached up to an hour). An identical call within 10 minutes is served from memo at 0 credits. Result status is ok, denied or error, with the reason in text. Credit class: free (0 credits).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ibge_find_places"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Which kind of place to return (default municipality). Each result carries the SIDRA level code to query it. | |
| limit | No | How many items to return (1–50, default 10). | |
| query | No | Place name, accents optional (e.g. 'sorriso', 'Sao Paulo'). Omitted: every place at the level, within `state`. | |
| state | No | Two-letter state abbreviation that restricts the results (e.g. 'MT'). | |
| capitals | No | true returns the 27 state capitals (Brasília included) as municipalities, ignoring level, query and state; their ids go straight into ibge_get_table_data `localities` at level N6. | |
| response_format | No | How much of the answer to return. `concise` (the default) carries the headline figures; `detailed` adds the row-level series behind them and counts against the export quota. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Raw numbers behind the text. | |
| memo | Yes | true = identical call in the last 10 min, served again: 0 credits. | |
| rows | No | Table rows; detailed only, capped per tool. | |
| error | No | Failure message when status = error. | |
| links | Yes | screen = product page with these numbers. | |
| denied | No | When status = denied: reason, feature, upgradeUrl. | |
| status | Yes | ok = data; denied = plan; error = failure or timeout. | |
| window | No | Like-for-like window: from, to (YYYY-MM), label, months, crossesSeason. | |
| caveats | Yes | Reading caveats. | |
| credits | Yes | charged, balance (null = unlimited), resetAt, session {charged, endsAt} of the 60-s billing session. | |
| sources | Yes | Per source: label, nameable, asOf. | |
| dataVersion | Yes | Identity of the data that answered. |