Skip to main content
Glama

ibge_localidades

Query Brazilian states, municipalities, regions, and municipalities by state from IBGE geographic data with optional name/ID filters and pagination for location-based lookups. No API key required.

Instructions

Query Brazilian geographic data from IBGE (Instituto Brasileiro de Geografia e Estatística).

Available queries:

  • estados: List all 27 Brazilian states

  • municipios: List all ~5,570 municipalities (supports optional nome/id filtering and page/limit pagination)

  • municipios_por_uf: List municipalities by state (requires UF code)

  • regioes: List the 5 macro-regions

No API key required.

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": {
      "tipo": "<tipo>"
    },
    "name": "ibge_localidades"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoSpecific entity ID (optional)
ufNoState code (required for municipios_por_uf, e.g. 'SP')
nomeNoOptional case/accent-insensitive name or sigla filter
pageNoOptional 1-indexed page number (defaults to 1 when limit is set)
tipoYesQuery type
limitNoOptional page size (defaults to 50 when page is set)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it usefully states 'No API key required' and discloses that pagination exists only for municipios. It does not disclose that this is a non-mutating read-only catalogue endpoint, nor anything about rate limits, caching, or error behavior when an invalid UF is supplied.

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

Conciseness5/5

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

The purpose is stated in the first sentence and the four modes follow as a scannable bulleted list with no filler. Every line either names a mode or states a precondition, so nothing needs trimming.

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

Completeness4/5

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

For a six-parameter, no-annotation, no-output-schema tool the description covers all query modes and their required inputs adequately. The remaining gap is the response shape — with no output schema, the agent is not told whether results are objects with id/nome or bare strings, which matters for chaining.

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?

Schema coverage is 100%, so the baseline is 3, and the description mostly restates what the schema already declares. It does add one genuinely useful cross-parameter fact — that nome/id filtering and page/limit apply to municipios — which the schema descriptions leave ambiguous since page/limit are described generically.

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

Purpose4/5

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

The description names a specific verb and resource (query Brazilian geographic data from IBGE) and enumerates the four query modes, so the agent knows exactly what the tool returns conceptually. It does not differentiate itself from the sibling ibge_indicadores, which an agent could easily confuse with this one.

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?

Each query type is annotated with its preconditions ('municipios_por_uf requires UF code', municipios supports nome/id filtering and pagination), which is genuine when-to-use guidance per mode. There is no explicit exclusion or pointer to an alternative tool for the indicator-style data that IBGE also publishes.

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