Search Customs Codes
search_customs_codesKeyword/code search over the Combined Nomenclature (or PRODCOM).
Returns ranked {code, label, path} candidates. Prefer
resolve_product_code for a one-call keyword-or-code helper; use this
directly if you specifically want the raw ranked candidate list.
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": {
"q": "<q>"
},
"name": "search_customs_codes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Keyword or code fragment to search for. | |
| lang | No | Language for translated labels in the response; any other language is refused. | en |
| limit | No | Max number of candidates to return. | |
| source | No | Nomenclature to search. A dotted PRODCOM code (e.g. '23.13') is auto-detected either way and reverse-mapped to CN codes. | cn |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GET /api/reference/search — ranked candidates; ``matched_prodcom`` is set when the query was a dotted PRODCOM notation. |