Skip to main content
Glama

IBGE MCP by Kyrodata

Get an official territorial boundary

ibge_get_boundary
Read-onlyIdempotent

Returns the official boundary of Brazil, a macro-region, a state or a municipality from IBGE's territorial mesh: name, area in km², centroid and bounding box, plus the GeoJSON URL. includeGeometry adds the polygon itself (minimal quality by default; anything above 300 KB is refused and only the URL is given). Coordinates are SIRGAS 2000 longitude/latitude. 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: comex (up to 2 comex tools per 60-second session = 1 credit).

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": {
      "level": "<level>",
      "id": "<id>"
    },
    "name": "ibge_get_boundary"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesBR for the country; region 1–5; state code (35); municipality code (3550308).
levelYesKind of territory.
qualityNoGeometry detail when includeGeometry is true (default minimal; maximal can be megabytes).
includeGeometryNotrue adds the GeoJSON polygon (refused above 300 KB, the URL is always given). Default false: centroid, area and bounding box.
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 past the annotations: live reads of IBGE's public API through Kyrodata, one-hour cache, identical calls within 10 minutes served from memo at 0 credits, 300 KB geometry ceiling, SIRGAS 2000 coordinate system, and the ok/denied/error result status with a text reason. The credit-class and per-session cost note is exactly the sort of operational detail annotations cannot express.

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-loaded with what is returned, then conditions in descending importance, and nearly every clause carries actionable detail. It is a single dense run-on packed with parentheticals, which costs some scannability but almost nothing is filler.

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?

For a five-parameter read tool with an output schema, the definition covers cost, caching, size limits, coordinate reference, and failure modes. An agent could call this correctly, and know what it costs, with no other information.

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% and the schema already documents the id patterns, the 300 KB refusal, and the quality levels, so the description largely restates it. The coordinate-system and size-limit notes add some meaning but are output-side facts rather than parameter disambiguation, and response_format's export-quota behavior is left entirely to 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 ('Returns the official boundary of Brazil, a macro-region, a state or a municipality from IBGE's territorial mesh') and enumerates what comes back (name, area, centroid, bounding box, GeoJSON URL). No sibling in the catalog covers territorial boundaries, so the agent can route here without opening another schema.

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?

Gives clear decision context for the geometry tradeoff: includeGeometry is off by default and anything above 300 KB is refused with only the URL returned, which tells the agent when to rely on the URL instead of the polygon. It never names an alternative tool or says when not to use this one, which keeps it below a 5.

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