Skip to main content
Glama

IBGE MCP by Kyrodata

Search IBGE SIDRA tables by topic

ibge_search_tables
Read-onlyIdempotent

Finds SIDRA tables (IBGE's statistical database, about 9,300 tables) by what they measure. Returns table ids, titles and the survey each belongs to, best match first. Matching is accent-insensitive and maps everyday terms to IBGE vocabulary (unemployment → desocupação, income → rendimento), and every query word has to match. It returns no values: ibge_describe_table explains a table's variables, levels and periods, and ibge_get_table_data reads the numbers. 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: free (0 credits).

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": {
      "query": "<query>"
    },
    "name": "ibge_search_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many items to return (1–20, default 10).
queryYesWords describing the statistic, in Portuguese or English (e.g. 'soja área plantada', 'unemployment rate', 'IPCA'). Accents are optional; common terms are mapped to IBGE vocabulary (unemployment → desocupação).
surveyNoRestricts the search to surveys whose name contains these words (e.g. 'PAM', 'PNAD Contínua', 'Censo Agropecuário').
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
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), but the description adds real operational context: live public API access via Kyrodata, up to one-hour caching, a 10-minute memo window at 0 credits, free credit class, and result status of ok/denied/error. The only gap is it doesn't quantify result volume or pagination beyond the schema's limit parameter.

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?

Purpose and result shape are front-loaded, then sibling routing, then behavioral and credit details. It is dense but every clause carries information; the credit and caching sentence could be trimmed slightly without loss.

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, the description need not describe return payloads, and it still sketches what comes back (ids, titles, survey) plus status semantics. Combined with the explicit sibling routing, an agent has everything needed to call this correctly.

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 would be 3; the description earns an extra point by adding the AND-match constraint on query words and the 'best match first' ordering, neither of which the schema states. The accent and vocabulary-mapping notes duplicate the query parameter's own description, so it is not a 5.

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 opens with a specific verb and resource ('Finds SIDRA tables... by what they measure'), names the corpus size (~9,300 tables) and states what a result contains (table ids, titles, survey). It explicitly separates itself from ibge_describe_table and ibge_get_table_data, so an agent can distinguish it from siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It routes the agent precisely: this tool returns no values, ibge_describe_table explains variables/levels/periods, and ibge_get_table_data reads the numbers. It also gives a query-formulation rule ('every query word has to match'), which tells the agent how to succeed rather than just when to call it.

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