Skip to main content
Glama

consultar_dados_agregado

Retrieve SIDRA aggregate data values for specified variables, time periods, and geographic localities. Use after obtaining metadata for valid IDs.

Instructions

Consulta valores de um agregado do SIDRA para variáveis, períodos e localidades específicos.

Para descobrir IDs válidos de variáveis, períodos e níveis territoriais, chame obter_metadados_agregado antes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agregado_idYesID numérico do agregado do SIDRA.
variaveisNoID de variável, lista separada por vírgula, ou "all" para todas.all
periodosNoPeríodo(s): um ano ("2021"), intervalo ("2010-2020"), lista ("2019,2021") ou relativo ("-1" = último período disponível).-1
localidadesNoUnidade territorial no formato N<nivel>[<ids>], ex.: "N1[all]" (Brasil), "N3[all]" (todos os estados), "N6[3550308]" (município de São Paulo). "BR" é aceito como atalho para "N1[all]".N1[all]
classificacoesNoFiltro opcional de classificação, formato "<id_classificacao>[<id_categoria>]".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description must carry the full burden. It only states that it queries values but gives no details on behavioral traits such as rate limits, pagination, error handling, or the nature of the returned data. This is insufficient for a tool with five parameters.

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?

The description is two sentences long, with the first stating the main purpose and the second providing crucial usage guidance. No unnecessary words or repetition.

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?

Given that an output schema exists, the description does not need to explain return values. It covers the main action and the dependency on metadata. However, it could be more specific about what 'valores' means (e.g., census data, economic indicators), but this is a minor gap.

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%, so the baseline is 3. The description mentions the prerequisite call to metadata but does not add significant new meaning beyond the schema descriptions for the parameters.

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?

The description explicitly states it queries values of an aggregate for specific variables, periods, and locations. The verb 'consulta' and resource 'agregado do SIDRA' are clear, and it distinguishes from sibling tools like obter_metadados_agregado which are for metadata retrieval.

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 description recommends calling obter_metadados_agregado first to discover valid IDs, providing clear context for proper use. It does not explicitly state when not to use the tool, but the purpose is well-defined.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FilipePessoa30/mcp-ibge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server