Resolve Product Code
resolve_product_codeResolve a free-text query or CN code(s) into validated product
code(s) with descriptions -- the recommended first step before using
a code as product in any other tool's query. Saves the search ->
validate -> (optional) subtree round-trip: a bare keyword runs a search,
a single code (or comma-separated list) is validated and described
directly.
Tip: Comext/CN nomenclature is frequently coarser than a colloquial
product name (e.g. there is no code for "glass jars" alone -- only
heading 7010, which bundles jars with bottles, flasks and closures).
Check has_subcodes and, if useful, set include_children=true to see
whether a finer sub-code is actually a better match before committing to
one code for a whole report.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language for translated labels in the response. One of: bg, cs, da, de, el, en, es, et, fi, fr, ga, hr, hu, it, lt, lv, mt, nl, pl, pt, ro, sk, sl, sv. | en |
| limit | No | Max keyword-search results (ignored for direct code validation). | |
| query | Yes | Free-text keyword (e.g. 'glass jars') OR one or more CN codes, comma-separated (e.g. '7010' or '7010, 7013'). | |
| include_children | No | When resolving a single direct code, also fetch its immediate CN subtree so finer-grained alternatives are visible in one call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||