Skip to main content
Glama

Dados de países

ibge_paises
Read-onlyIdempotent

Query international country data from IBGE by listing all countries, retrieving details like area, languages, currency, searching by name, or filtering by region using ISO alpha-2 codes.

Instructions

Queries international country data via IBGE.

Features:

  • List all countries (following UN M49 methodology)

  • Country details (area, languages, currency, location)

  • Search countries by name

  • Filter by region/continent

Available regions: americas, europa, africa, asia, oceania

Country codes: Use ISO-ALPHA-2 (e.g., BR, US, AR, PT, JP)

Examples:

  • List all: tipo="listar"

  • Brazil details: tipo="detalhes", pais="BR"

  • Search: tipo="buscar", busca="Argentina"

  • Americas countries: tipo="listar", regiao="americas"

  • Available indicators: tipo="indicadores"

Behavior: read-only and idempotent — a live GET against the public IBGE Países API. Returns Markdown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paisNoCódigo ISO-ALPHA-2 do país (ex: BR, US, AR) ou código M49
tipoNoTipo de consulta: listar (todos), detalhes (de um país), indicadores, buscarlistar
buscaNoTermo de busca para filtrar países pelo nome
regiaoNoFiltrar por região/continente: americas, europa, africa, asia, oceania
indicadoresNoIDs dos indicadores separados por | (ex: 77819|77820)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
paisNoDetalhes de um país específico (modo detalhes)
tipoYesModo de consulta que originou este resultado
buscaNoTermo de busca aplicado, se houver
totalNoTotal de países encontrados (modos listar/buscar)
paisesNoLista de países (modos listar/buscar). Limitada aos 50 primeiros na exibição
regiaoNoFiltro de região/continente aplicado, se houver
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)
indicadoresNoIndicadores disponíveis para consulta de países (modo indicadores)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv5.0.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed4 schema fields changedv4.0.0
    • removedOutput schema / properties / provenance / properties / data_vintage / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / provenance / properties / data_vintage / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / provenance / properties / license / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / provenance / properties / license / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  3. Changed6 schema fields changedv3.3.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / attribution
      Added value: +{
      +  "description": "URLs canônicas das fontes desta resposta (lista de atribuição)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / provenance
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Bloco de proveniência (contrato v1.0): fonte, URL, período, extração e licença",
      +  "properties": {
      +    "citation": {
      +      "description": "Citação pronta para uso",
      +      "type": "string"
      +    },
      +    "data_vintage": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Período de referência do dado segundo a fonte; null se a fonte não expõe"
      +    },
      +    "license": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Regime legal do dado"
      +    },
      +    "retrieved_at": {
      +      "description": "Instante real da extração no upstream (ISO-8601, horário de Brasília)",
      +      "type": "string"
      +    },
      +    "source": {
      +      "description": "Fonte oficial do dado (API do IBGE consultada)",
      +      "type": "string"
      +    },
      +    "source_url": {
      +      "description": "URL canônica que reproduz a consulta",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "source",
      +    "source_url",
      +    "data_vintage",
      +    "retrieved_at",
      +    "citation",
      +    "license"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "tipo"
      -]New value: +[
      +  "tipo",
      +  "provenance",
      +  "attribution"
      +]
  4. Changed1 schema field changedv3.0.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "busca": {
      +      "description": "Termo de busca aplicado, se houver",
      +      "type": "string"
      +    },
      +    "indicadores": {
      +      "description": "Indicadores disponíveis para consulta de países (modo indicadores)",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "alias": {
      +            "description": "Apelido amigável do indicador",
      +            "type": "string"
      +          },
      +          "id": {
      +            "description": "ID do indicador na API do IBGE",
      +            "type": "number"
      +          },
      +          "nome": {
      +            "description": "Nome do indicador",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "nome",
      +          "alias"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "pais": {
      +      "additionalProperties": false,
      +      "description": "Detalhes de um país específico (modo detalhes)",
      +      "properties": {
      +        "areaTotalKm2": {
      +          "description": "Área territorial total em km²",
      +          "type": "number"
      +        },
      +        "historico": {
      +          "description": "Texto histórico sobre o país",
      +          "type": "string"
      +        },
      +        "indicadores": {
      +          "description": "Indicadores principais com o valor mais recente disponível",
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "ano": {
      +                "description": "Ano de referência do valor",
      +                "type": "string"
      +              },
      +              "indicador": {
      +                "description": "Nome do indicador",
      +                "type": "string"
      +              },
      +              "valor": {
      +                "description": "Valor mais recente do indicador",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "indicador",
      +              "valor",
      +              "ano"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "isoAlpha2": {
      +          "description": "Código ISO-ALPHA-2",
      +          "type": "string"
      +        },
      +        "isoAlpha3": {
      +          "description": "Código ISO-ALPHA-3",
      +          "type": "string"
      +        },
      +        "linguas": {
      +          "description": "Línguas faladas no país",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "m49": {
      +          "description": "Código M49 do país",
      +          "type": "number"
      +        },
      +        "moedas": {
      +          "description": "Unidades monetárias do país",
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "id": {
      +                "description": "Código da unidade monetária",
      +                "type": "string"
      +              },
      +              "nome": {
      +                "description": "Nome da unidade monetária",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "nome"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "nome": {
      +          "description": "Nome do país",
      +          "type": "string"
      +        },
      +        "regiao": {
      +          "description": "Nome da região/continente",
      +          "type": "string"
      +        },
      +        "regiaoIntermediaria": {
      +          "description": "Nome da região intermediária",
      +          "type": "string"
      +        },
      +        "subRegiao": {
      +          "description": "Nome da sub-região",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "nome",
      +        "m49",
      +        "isoAlpha2",
      +        "isoAlpha3"
      +      ],
      +      "type": "object"
      +    },
      +    "paises": {
      +      "description": "Lista de países (modos listar/buscar). Limitada aos 50 primeiros na exibição",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "codigo": {
      +            "description": "Código ISO-ALPHA-2 do país (ou '-' se ausente)",
      +            "type": "string"
      +          },
      +          "nome": {
      +            "description": "Nome do país",
      +            "type": "string"
      +          },
      +          "regiao": {
      +            "description": "Nome da região/continente (ou '-' se ausente)",
      +            "type": "string"
      +          },
      +          "subRegiao": {
      +            "description": "Nome da sub-região (ou '-' se ausente)",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "codigo",
      +          "nome",
      +          "regiao",
      +          "subRegiao"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "regiao": {
      +      "description": "Filtro de região/continente aplicado, se houver",
      +      "type": "string"
      +    },
      +    "tipo": {
      +      "description": "Modo de consulta que originou este resultado",
      +      "enum": [
      +        "listar",
      +        "buscar",
      +        "detalhes",
      +        "indicadores"
      +      ],
      +      "type": "string"
      +    },
      +    "total": {
      +      "description": "Total de países encontrados (modos listar/buscar)",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "tipo"
      +  ],
      +  "type": "object"
      +}
  5. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive, so the description's 'read-only and idempotent' is largely redundant; however it adds genuinely new context — a live GET against the public IBGE Países API and Markdown output format. That is useful beyond the structured fields, though it omits any auth/rate-limit notes.

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 a one-line purpose, then feature bullets, region/code conventions, examples, and behavior — highly scannable. Slightly verbose, and the 'Available indicators: tipo="indicadores"' example is a bit misleading since indicator IDs go in a separate parameter.

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?

With an output schema present, return values need not be explained, and the description still covers all five parameters, valid enum values, code formats, and invocation examples. The only small gap is the ambiguity between the indicators enumeration and the indicadores parameter.

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 parameter docs are already complete; the description still adds value by listing the valid region values, prescribing ISO-ALPHA-2 codes with examples (BR, US, AR, PT, JP), and demonstrating how parameters combine per operation. It only marginally clarifies how the 'indicadores' parameter relates to tipo='indicadores'.

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 (queries international country data via IBGE) and enumerates the concrete operations: list, details, search, filter by region. The word 'international' implicitly separates it from the Brazilian-scoped siblings (ibge_estados, ibge_cidades, ibge_municipios, ibge_localidade), so an agent can route correctly.

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?

The Examples block gives a use pattern for each mode (listar, detalhes, buscar, listar+regiao, indicadores), which effectively says when to combine which parameters. It does not name a sibling alternative or an explicit 'do not use this for X' exclusion, so it stops short of a 5.

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