Skip to main content
Glama

Dados de países

ibge_paises
Read-onlyIdempotent

Query international country data from IBGE: list all countries, get details by ISO code, search by name, or filter by continent such as Americas, Europe, Africa, Asia, or Oceania.

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.1): fonte, URL, período, extração, diagnóstico de origem 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. Changed3 schema fields changedv5.4.0
    • changedOutput schema / properties / provenance / description
      Previous value: -"Bloco de proveniência (contrato v1.0): fonte, URL, período, extração e licença"New value: +"Bloco de proveniência (contrato v1.1): fonte, URL, período, extração, diagnóstico de origem e licença"
    • addedOutput schema / properties / provenance / properties / retrieval
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "anomalies": {
      +          "description": "Anomalias superadas até o sucesso, somadas por classe, em ordem fixa; [] se nenhuma",
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "count": {
      +                "description": "Ocorrências desta classe na chamada",
      +                "maximum": 9007199254740991,
      +                "minimum": 1,
      +                "type": "integer"
      +              },
      +              "kind": {
      +                "description": "Classe da anomalia (vocabulário fechado do contrato)",
      +                "enum": [
      +                  "timeout",
      +                  "network",
      +                  "http_4xx",
      +                  "http_5xx",
      +                  "rate_limited",
      +                  "malformed_body"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "count"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "attempts": {
      +          "description": "Tentativas somadas, incluindo as repetidas (>= requests)",
      +          "maximum": 9007199254740991,
      +          "minimum": 1,
      +          "type": "integer"
      +        },
      +        "requests": {
      +          "description": "Idas distintas à origem que compõem esta resposta (fatias, páginas)",
      +          "maximum": 9007199254740991,
      +          "minimum": 1,
      +          "type": "integer"
      +        },
      +        "unstable": {
      +          "description": "true se houve repetição (attempts > requests) ou alguma anomalia",
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "requests",
      +        "attempts",
      +        "anomalies",
      +        "unstable"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Diagnóstico de origem desta chamada (contrato v1.1): idas à API do IBGE, tentativas somadas e anomalias contornadas; unstable=true quando houve anomalia. null quando nada foi medido (resposta servida só do cache)"
      +}
    • changedOutput schema / properties / provenance / required
      Previous value: -[
      -  "source",
      -  "source_url",
      -  "data_vintage",
      -  "retrieved_at",
      -  "citation",
      -  "license"
      -]New value: +[
      +  "source",
      +  "source_url",
      +  "data_vintage",
      +  "retrieved_at",
      +  "retrieval",
      +  "citation",
      +  "license"
      +]
  2. Changed1 schema field changedv5.0.0
    • addedInput schema / additionalProperties
      Added value: +false
  3. 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"
      +]
  4. 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"
      +]
  5. 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"
      +}
  6. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description still adds value by stating the mechanism is a live GET against the public IBGE Países API and that output is Markdown, which the annotations do not say.

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 purpose followed by scannable features, region list, code convention, and examples — well structured and easy to skim. The region enumeration and code-format note duplicate the schema slightly, costing a little density.

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?

With an output schema present, return-value detail is not required, yet the description still flags Markdown output and the read-only live-API nature. All five parameters, the enum modes, and the region vocabulary are accounted for, so nothing an agent needs to call it correctly is missing.

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 description coverage is 100%, so the baseline is 3 and the schema already documents each field. The description goes further by tying parameters to intent through concrete examples and by surfacing the region vocabulary and ISO-ALPHA-2 code convention in prose, reducing lookup friction.

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 modes (list, details, search, filter by region) that separate it from siblings like ibge_estados or ibge_localidade. An agent can tell what this tool covers 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 Guidelines4/5

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

The feature list plus worked examples (tipo="listar" with regiao="americas", tipo="detalhes" with pais="BR") give clear, actionable context for choosing each query mode. It stops short of explicit when-not-to-use guidance or naming alternative sibling tools for overlapping tasks (e.g., localidade or municipios).

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