search_fiscal_codes
Find a code from a description, or page through a table.
This is the tool for "what NCM is a keyboard" — the one the user actually asks. Prefer it over guessing a code from memory: the tables change, and a plausible wrong code is worse than a lookup.
Leaving kind unset searches every classification of that
country at once, which is the most expensive call here. Set it
whenever the question already names one.
Rows come back ordered by kind then code; there is no sort argument, and asking for one changes nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Narrows to one classification. All if unset. | |
| term | No | Matches the code or the description. | |
| limit | No | Rows per page. 20 by default. | |
| offset | No | Rows to skip. Use it to page, not to narrow — a term is cheaper than paging to find one row. | |
| country | No | ISO 3166-1 alpha-2 code. A code means nothing without it, and Brazil is the default rather than a guess. | BR |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| page | No | ||
| total | No | ||
| per_page | No | ||
| next_page | No | ||
| prev_page | No |