Skip to main content
Glama

Malhas temáticas

ibge_malhas_tema
Read-onlyIdempotent

Lists records, codes, and names for Brazilian thematic territorial divisions (biomes, Legal Amazon, semi-arid, coastal, border, metropolitan, RIDE) from official IBGE/GeoFTP snapshots.

Instructions

Lists what a THEMATIC territorial recorte of Brazil contains: how many records, with which codes and names, from versioned official IBGE/GeoFTP snapshots.

Available recortes:

  • biomas: the six continental biomes

  • amazonia_legal: Legal Amazon boundary

  • semiarido: semi-arid area

  • costeiro: coastal municipalities

  • fronteira: border-strip municipalities

  • metropolitana: metropolitan regions

  • ride: Integrated Development Regions

  • listar: the catalogue itself, without querying the source

Filtering with codigo: biomas uses the biome code; every municipality-composition recorte (amazonia_legal, semiarido, costeiro, fronteira, metropolitana and ride) accepts the 7-digit IBGE municipality code. Ask without codigo to list records.

THEMATIC GEOMETRY IS NOT PART OF THIS TOOL'S CONTRACT. Use ibge_malhas for supported administrative geometry.

Use a different tool when:

  • Administrative meshes WITH geometry (country/region/state/municipality outlines) → ibge_malhas

Behavior: read-only and idempotent. Attributes/listings come exclusively from versioned official IBGE/GeoFTP snapshots audited by the laboratory. Returns Markdown plus a typed structuredContent payload.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
temaYesRecorte temático do território: - biomas: os seis biomas continentais - amazonia_legal: limite da Amazônia Legal - semiarido: área do semiárido - costeiro: municípios da zona costeira - fronteira: municípios da faixa de fronteira - metropolitana: regiões metropolitanas - ride: Regiões Integradas de Desenvolvimento - listar: lista os recortes disponíveis, sem consultar a fonte
codigoNoFiltra registros do recorte. Em biomas, usa cd_bioma (ex. "1"). Nos recortes compostos por municípios — amazonia_legal, semiarido, costeiro, fronteira, metropolitana e ride — usa o código IBGE municipal de 7 dígitos.
limiteNoQuantas feições trazer (padrão 50, máx. 600). O total do recorte vem sempre, mesmo quando o limite corta a lista.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
temaYesRecorte solicitado (ou 'listar')
temasNoLista de recortes disponíveis (somente no modo 'listar')
codigoNoCódigo usado como filtro, quando informado
versaoNoVersão/vintage da fonte temática consultada
feicoesNoTotal de registros retornáveis na fonte; consulte tipo_registro para interpretar a unidade
registrosNoAtributos de cada feição (sem geometria)
provenanceYesBloco de proveniência (contrato v1.0): fonte, URL, período, extração e licença
attributionYesURLs canônicas das fontes desta resposta (lista de atribuição)
fonte_dadosNoURL oficial da fonte de atributos/listagem usada
tipo_registroNoUnidade dos registros retornados: feição geográfica do recorte ou município componente
feicoes_retornadasNoQuantas vieram nesta resposta

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/destructive annotations, the description discloses provenance (versioned official IBGE/GeoFTP snapshots audited by the laboratory), the return format (Markdown plus typed structuredContent), and a hard contract boundary ('THEMATIC GEOMETRY IS NOT PART OF THIS TOOL'S CONTRACT'). These are behavioral facts the annotations cannot convey.

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 the core purpose, then cleanly sectioned into recortes, filtering, contract boundary, and routing. Slightly redundant in stating the geometry exclusion twice (once as a contract note, once under 'Use a different tool when'), which costs it the top score.

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 read-only listing tool with an output schema, full parameter coverage, and rich annotations, the description supplies everything an agent needs: scope, enumeration, filter semantics, sibling routing, and return format. Nothing material is missing.

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 spells out the enum values, the cd_bioma vs. 7-digit municipality code rule, and the limite default/max with 'total always returned'. The description's parameter guidance largely restates the schema rather than adding syntax or edge-case meaning, so the baseline 3 applies.

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 ('Lists what a THEMATIC territorial recorte of Brazil contains'), enumerates all eight recortes, and explicitly distinguishes itself from the sibling ibge_malhas. An agent can identify the tool's scope and output shape without opening the schema.

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

Usage Guidelines5/5

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

Explicit routing is given: 'Use a different tool when: Administrative meshes WITH geometry → ibge_malhas', plus the inverse rule that thematic geometry is out of contract. It also tells the agent how to get a plain listing ('Ask without codigo to list records') and that 'listar' bypasses the source entirely.

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