Skip to main content
Glama
Brazil IBGE Geospatial Census MCP

Brazil IBGE Geospatial Census MCP

Get IBGE municipality hierarchy

get_brazil_municipality_detail
Read-onlyIdempotent

Retrieve the full IBGE geographic hierarchy for a 7-digit municipality code, including microregion, mesoregion, state UF, and immediate/intermediate regions.

Instructions

Fetch full IBGE geographic hierarchy (microregion, mesoregion, state UF, immediate and intermediate regions) for a 7-digit IBGE municipality code.

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": {
      "ibge_id": "<ibge_id>"
    },
    "name": "get_brazil_municipality_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
ibge_idYes7-digit IBGE municipality code (e.g. 3550308 for Sao Paulo).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuine beyond-annotation value by listing the hierarchy levels returned, which matters because there is no output schema. It does not say what happens for an unknown or malformed code (error vs empty result), which is the remaining behavioral gap.

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?

One sentence, front-loaded with the action and the returned hierarchy levels, with the parameter constraint at the end. No filler; the parenthetical field list is dense but earns its place given the absent output schema.

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 single-parameter read-only lookup with no output schema, the definition supplies enough: what is fetched, keyed on what code, and which hierarchy levels come back. Only edge-case behavior (invalid or nonexistent code) and the form of 'state UF' are left unstated, which are minor for this tool's complexity.

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 description coverage is 100% and the single ibge_id parameter is fully documented in the schema, including the example 3550308. The description restates '7-digit IBGE municipality code' without adding format, range, or lookup guidance beyond what the schema already supplies, so the 3 baseline applies.

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 gives a specific verb ("Fetch") and resource ("full IBGE geographic hierarchy") and enumerates exactly what is retrieved: microregion, mesoregion, state UF, immediate and intermediate regions. The singular 'for a 7-digit IBGE municipality code' implicitly separates it from the sibling list_* tools, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Use is only implied: it applies when you already hold a municipality code and need its parent hierarchy. There is no statement about when to prefer the list_brazil_* siblings instead, and no preconditions or exclusions are given.

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