Look up a CNAE activity code
ibge_lookup_cnaeLooks up Brazil's official activity classification (CNAE 2.0, kept by IBGE). With code it returns that node (section, division, group, class or subclass), its full hierarchy and IBGE's notes on what it includes and excludes. With query it finds the classes whose description matches. Useful to tag a company activity or to read SIDRA tables broken down by CNAE. 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_lookup_cnae"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | A CNAE 2.0 code: section letter (A), division (01), group (011), class (01113) or subclass (0111301). | |
| limit | No | How many items to return (1–30, default 10). | |
| query | No | Words describing the activity (e.g. 'cultivo de soja'). Returns matching classes. Ignored when code is given. | |
| 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. |