Skip to main content
Glama

ibge_indicadores

Query official IBGE demographic and economic indicators—population, GDP, and estimated GDP per capita—by Brazilian state or municipality code to support regional analysis.

Instructions

Query official demographic and economic indicators from IBGE Agregados v3 by UF (2-digit code) or municipality (7-digit code). Available indicators:

  • populacao: Estimated resident population (Agregado 6579, Variável 9324).

  • pib: Gross Domestic Product at current prices in thousand BRL (Agregado 5938, Variável 37).

  • todos: Queries both indicators in parallel and calculates estimated GDP per capita (BRL), reporting exact reference years used. 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": {
      "codigo_ibge": "<codigo_ibge>"
    },
    "name": "ibge_indicadores"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodoNoIBGE period expression: '-1' for most recent, '-N' for last N periods, or 'YYYY' for a specific year (default: '-1')-1
indicadorNoIndicator to retrieve (default: 'todos')todos
codigo_ibgeYesIBGE geographic code: 2 digits for state/UF (e.g. '35' for SP) or 7 digits for municipality (e.g. '3550308' for São Paulo)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does disclose meaningful behavior: no API key is required, 'todos' runs both queries in parallel, computes estimated GDP per capita in BRL, and reports the exact reference years used. These are real behavioral facts not derivable from the schema. Gaps remain: nothing on invalid code handling, rate limits, or the fact that population series are annual while period expressions may not map cleanly.

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?

Front-loaded with the core purpose in the first sentence, then a compact bullet list mapping each indicator to its source and units, then the auth note. Every line earns its place and there is no filler.

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 3-parameter read tool with no output schema and no annotations, the definition covers source, units, derivation logic, and auth requirements well. It falls short on return-shape hints (no output schema exists, so the description is the only place to signal response structure) and on how periodo interacts with each indicator.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description adds value beyond it by attaching units (thousand BRL for PIB, BRL for per-capita) and source aggregate identifiers to each enum value. That clarifies what selecting 'pib' versus 'populacao' will actually yield. It adds little for periodo, whose meaning is fully covered in the schema.

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?

States a specific verb and resource: query official demographic and economic indicators from IBGE Agregados v3, scoped by UF or municipality code. It enumerates exactly which indicators are returned and even names the underlying Agregado/Variável IDs, making the purpose unambiguous. It does not, however, distinguish itself from the sibling ibge_localidades, which likely resolves geographic codes to names.

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?

The per-indicator explanations (population estimate, GDP at current prices, or both plus derived per-capita) imply which enum value to pick for a given need. But there is no explicit when-to-use guidance, no statement about resolving names to IBGE codes first, and no mention of alternatives when only geographic data is wanted.

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