Search IBGE SIDRA tables by topic
ibge_search_tablesFinds 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
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many items to return (1–20, default 10). | |
| query | Yes | Words 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). | |
| survey | No | Restricts the search to surveys whose name contains these words (e.g. 'PAM', 'PNAD Contínua', 'Censo Agropecuário'). | |
| response_format | No | How 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
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Raw numbers behind the text. | |
| memo | Yes | true = identical call in the last 10 min, served again: 0 credits. | |
| rows | No | Table rows; detailed only, capped per tool. | |
| error | No | Failure message when status = error. | |
| links | Yes | screen = product page with these numbers. | |
| denied | No | When status = denied: reason, feature, upgradeUrl. | |
| status | Yes | ok = data; denied = plan; error = failure or timeout. | |
| window | No | Like-for-like window: from, to (YYYY-MM), label, months, crossesSeason. | |
| caveats | Yes | Reading caveats. | |
| credits | Yes | charged, balance (null = unlimited), resetAt, session {charged, endsAt} of the 60-s billing session. | |
| sources | Yes | Per source: label, nameable, asOf. | |
| dataVersion | Yes | Identity of the data that answered. |