Skip to main content
Glama

IBGE MCP by Kyrodata

Describe IBGE surveys and their editions

ibge_get_survey_metadata
Read-onlyIdempotent

Describes IBGE surveys from the official metadata registry: code, name, status (active or discontinued), category, collection and release frequency, and themes. With survey (a code such as PA or PNADC) it lists the survey's occurrences, the editions actually carried out. query filters the list by name or theme. Tables of a survey are found with ibge_search_tables; release dates with ibge_get_release_calendar. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ibge_get_survey_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many items to return (1–50, default 20).
queryNoWords that filter the survey list by name or theme (e.g. 'agrícola', 'emprego'). Ignored when survey is given.
surveyNoSurvey code from a previous listing (e.g. 'PA' for Produção Agrícola Municipal). Given: its occurrences (editions).
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.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, but the description adds real operational context: live reads of IBGE's public API via Kyrodata, one-hour caching, 10-minute memoization at zero credits, and a result status of ok/denied/error with a textual reason. The only gap is that it doesn't explain the denied case (what triggers it, e.g. auth credits), which slightly limits error anticipation despite the output schema.

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 what is described and the two modes, then alternatives, then operational facts. Slightly wasteful at the end: 'Read-only' duplicates readOnlyHint, and the zero-credit point is made twice ('memo at 0 credits' and 'Credit class: free (0 credits)').

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 four-parameter read tool with full schema coverage, an output schema, and rich annotations, the description covers purpose, modes, alternatives, caching/freshness, cost, and status semantics. Nothing an agent needs before calling it is missing.

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 description coverage is 100%, so all four parameters are already documented, including that `query` is ignored when `survey` is given and the concise/detailed response format. The description mostly restates that in prose (survey codes come from a prior listing, query filters by name or theme), adding little semantic meaning beyond the schema.

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 (describes/retrieves metadata) and resource (IBGE surveys from the official registry), enumerating the fields returned: code, name, status, category, frequency, themes. It also explains the secondary mode (listing a survey's editions) and explicitly names the sibling tools for tables and release dates, so the agent can place it precisely in the catalog.

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?

Gives concrete routing rules: use ibge_search_tables for tables and ibge_get_release_calendar for dates, and explains which parameter selects which mode (`survey` for editions, `query` for name/theme filtering). Little is left to inference about when this tool is the right call.

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