HS Code Lookup
hs_code_lookupSearch the 6,936 codes of the WCO Harmonized System (HS 2022), the 6-digit international customs classification (2 digits chapter, 4 heading, 6 subheading). Provide ONE of: query (free-text description), code (2-6 digits, dots or spaces ignored; returns the code with its hierarchy) or section (Roman numeral I-XXI). Behavior: read-only; description search runs first against the HS 2022 descriptions (UN Comtrade H6), on whole words only (a word inside a longer word never matches); when none contains the words, or the best match is weak, it asks the UK Trade Tariff search references (HMRC's index of everyday goods names) and serves their answer, so "laptop" finds 847130, "computers" heading 8471 and "charger" heading 8504. A description search matches whole words, then asks HMRC's everyday goods names at medium confidence; count 0 with an empty results[] is a valid answer (NO_MATCH). For UK duty/VAT on a code use uk_duty_calculator; for ENS goods-description screening ics2_check. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. The 6-digit level only — national tariff lines and duty rates are set per country; indicative, not a binding ruling.
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": "hs_code_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | HS code or prefix, 2, 4 or 6 digits; dots and spaces ignored ("8471.30"). | |
| codes | No | Batch: up to 50 HS codes. Send alone. | |
| query | No | Search words, matched against the HS descriptions, then HMRC everyday goods names. | |
| section | No | A section, Roman numeral I-XXI. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| as_of | Yes | ||
| result | Yes | ||
| status | Yes | ||
| _source | Yes | ||
| edition | Yes | ||
| citation | Yes | ||
| warnings | No | ||
| confidence | Yes | ||
| missing_inputs | Yes | ||
| blocking_errors | No | ||
| envelope_version | Yes |