Skip to main content
Glama

IBGE MCP by Kyrodata

Find IBGE codes for Brazilian places

ibge_find_places
Read-onlyIdempotent

Finds 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

NameRequiredDescriptionDefault
levelNoWhich kind of place to return (default municipality). Each result carries the SIDRA level code to query it.
limitNoHow many items to return (1–50, default 10).
queryNoPlace name, accents optional (e.g. 'sorriso', 'Sao Paulo'). Omitted: every place at the level, within `state`.
stateNoTwo-letter state abbreviation that restricts the results (e.g. 'MT').
capitalsNotrue 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_formatNoHow 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

NameRequiredDescriptionDefault
dataYesRaw numbers behind the text.
memoYestrue = identical call in the last 10 min, served again: 0 credits.
rowsNoTable rows; detailed only, capped per tool.
errorNoFailure message when status = error.
linksYesscreen = product page with these numbers.
deniedNoWhen status = denied: reason, feature, upgradeUrl.
statusYesok = data; denied = plan; error = failure or timeout.
windowNoLike-for-like window: from, to (YYYY-MM), label, months, crossesSeason.
caveatsYesReading caveats.
creditsYescharged, balance (null = unlimited), resetAt, session {charged, endsAt} of the 60-s billing session.
sourcesYesPer source: label, nameable, asOf.
dataVersionYesIdentity of the data that answered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond what the annotations already declare: live reads of IBGE's public API via Kyrodata, caching up to an hour, a 10-minute memo window at 0 credits, and an explicit result-status vocabulary (ok/denied/error) with reasons in text. The free credit class is stated outright, which is the kind of operational detail an agent cannot infer from readOnlyHint/openWorldHint/idempotentHint alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the purpose and then layers scope, routing, behavior and credits in a compact semicolon-chained flow with essentially no filler. It is dense to the point of being a single long block, which slightly hurts scannability but wastes no sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no prose, and the description still covers the parts that matter for correct invocation: live-vs-cached behavior, credit cost, error statuses, and where each returned code is consumed. For a six-parameter, all-optional discovery tool this leaves no operational gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage, the schema already documents level, limit, query, state and capitals in detail, so the baseline is 3. The description repeats several of those facts (accent-insensitivity, two-letter `state`, `capitals` ignoring level/query/state) rather than adding new semantics, and it never mentions `response_format`, whose export-quota cost only appears in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Finds Brazilian places by name') plus the exact payload returned ('their official IBGE codes') and enumerates the five geographic levels including the full 5,571 municipality set. Nothing about it could be confused with the sibling tools, which fetch data, profiles, boundaries or news rather than resolving place names to codes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent downstream: the SIDRA level code goes into ibge_get_table_data `localities`, and the 7-digit municipality code feeds ibge_get_city_profile and ibge_get_boundary. It also flags a shortcut mode ('capitals returns the 27 state capitals in one call'). It stops short of stating when not to use it, e.g. resolving economic activity codes is left to ibge_lookup_cnae without acknowledgement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources