Skip to main content
Glama

IBGE MCP by Kyrodata

Read values from a SIDRA table

ibge_get_table_data
Read-onlyIdempotent

Reads values from one SIDRA table for chosen variables, periods, territorial level, localities and breakdowns. The query is validated against the table's metadata first, so an invalid variable, period, level or category comes back naming the field and the valid options instead of IBGE's bare error. Values are numbers; IBGE's symbols are kept (- is a true zero, X is withheld, .. not applicable). Up to 20,000 values per call. Concise returns the first 40 values plus totals; detailed adds every value as rows. Each answer carries the SIDRA link and a citation line. Read-only; reads IBGE's public API live through Kyrodata (cached up to an hour). An identical call within 10 minutes is served from memo at 0 credits. Result status is ok, denied or error, with the reason in text. Credit class: comex (up to 2 comex tools per 60-second session = 1 credit).

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": {
      "table": "<table>"
    },
    "name": "ibge_get_table_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoTerritorial level of the rows (default N1, Brazil). Must be one the table publishes.
tableYesSIDRA table (aggregate) id, e.g. 1612. ibge_search_tables returns ids.
withinNoKeeps only localities inside one parent, as 'LEVEL:id': 'N3:51' returns every municipality of Mato Grosso when level is N6.
periodsNoPeriod ids as the table publishes them: '2022' (year), '202403' (month or quarter). Overrides lastPeriods.
variablesNoVariable ids from ibge_describe_table. Omitted: every variable except the percentage-of-total ones.
localitiesNoLocality ids at `level` (state 35, municipality 3550308 — ibge_find_places returns them). Omitted: all.
lastPeriodsNoHow many of the most recent periods to return when periods is omitted (default 1).
classificationsNoBreakdowns. A classification left out is returned at its total, as IBGE does by default.
response_formatNoHow much of the answer to return. `concise` (the default) carries the headline figures; `detailed` adds the row-level series behind them and counts against the export quota.

Output Schema

NameRequiredDescriptionDefault
dataYesRaw numbers behind the text.
memoYestrue = identical call in the last 10 min, served again: 0 credits.
rowsNoTable rows; detailed only, capped per tool.
errorNoFailure message when status = error.
linksYesscreen = product page with these numbers.
deniedNoWhen status = denied: reason, feature, upgradeUrl.
statusYesok = data; denied = plan; error = failure or timeout.
windowNoLike-for-like window: from, to (YYYY-MM), label, months, crossesSeason.
caveatsYesReading caveats.
creditsYescharged, balance (null = unlimited), resetAt, session {charged, endsAt} of the 60-s billing session.
sourcesYesPer source: label, nameable, asOf.
dataVersionYesIdentity of the data that answered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: pre-validation against table metadata with field-naming errors, symbol semantics (`-` true zero, `X` withheld, `..` not applicable), a 20,000-value cap, concise vs detailed payload shapes, citation and link on every answer, live public-API access via Kyrodata, one-hour cache, 10-minute memo at zero credits, and ok/denied/error statuses. The credit class note is unusual and useful operational context.

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-loads purpose, then validation, then value semantics, then limits and formats, then cost — a sensible ordering. It is dense and slightly wall-of-text (credit class and caching crammed into the final sentences), but no sentence is filler.

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 9-parameter tool with an output schema and full annotations, the description covers everything an agent needs: id sourcing, defaults, caps, response modes, error/status behavior, and cost/caching. Return-value structure is left to the output schema, which is appropriate.

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 the baseline is 3; the description still adds value by specifying that concise returns the first 40 values plus totals while detailed emits every value as rows and counts against the export quota, which sharpens the response_format choice. It does not add further syntax detail for periods, classifications or within beyond what the schema already documents.

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?

Opens with a specific verb and resource ('Reads values from one SIDRA table') and enumerates the dimensions being selected (variables, periods, territorial level, localities, breakdowns). It is clearly distinguishable from ibge_search_tables and ibge_describe_table, which are named only as sources of ids.

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?

Gives concrete prerequisite routing: table ids come from ibge_search_tables, variable ids from ibge_describe_table, locality ids from ibge_find_places. It also explains the validation-first behavior so the agent knows malformed queries are safe to attempt. It stops short of explicit when-not-to-use guidance versus siblings such as ibge_get_survey_metadata.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources