Skip to main content
Glama

Tariff & HS Code Duty Finder

Find an HS code, HTS or customs code

find_tariff_codes
Read-onlyIdempotent

Use this when the user asks for the tariff code, commodity code, customs code, HS code, HTS code, Harmonized System code or customs classification for a product, for example "what is the tariff code for a ceramic flower pot in the UK?", "HTS code for a lithium-ion battery" or "which heading covers cotton t-shirts for import into the US?". Pass a plain description of the product and country GB (United Kingdom) or US (United States). Returns candidate codes from the official schedule, each with its description, the headings above it and whether goods are declared under it, plus a notice that they are candidates and not a binding classification. Do not use it to classify goods with certainty, to give a binding customs ruling, to compute shipping or landed cost, or for countries other than GB and US.

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": {
      "description": "<description>",
      "country": "<country>"
    },
    "name": "find_tariff_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMost candidates to return. Default 8.
countryYesDestination of the goods, whose import tariff to read: GB (United Kingdom Global Tariff) or US (Harmonized Tariff Schedule). UK, United Kingdom, USA and United States are read as GB and US. The EU and other countries are not covered.
descriptionYesPlain description of the product: what it is, what it is made of, what it is used for. Or a code, to look that code up.

Output Schema

NameRequiredDescriptionDefault
noteNo
queryYes
noticeYes
sourceYes
countryYes
candidatesYes
totalMatchesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / country / description
      Previous value: -"Destination of the goods, whose import tariff to read: GB (United Kingdom Global Tariff) or US (Harmonized Tariff Schedule). The EU and other countries are not covered."New value: +"Destination of the goods, whose import tariff to read: GB (United Kingdom Global Tariff) or US (Harmonized Tariff Schedule). UK, United Kingdom, USA and United States are read as GB and US. The EU and other countries are not covered."
  2. Changed1 schema field changed
    • removedOutput schema / properties / note_from_openkrill
      Removed value: -{
      -  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      -  "type": "string"
      -}
  3. Changed1 schema field changed
    • addedOutput schema / properties / note_from_openkrill
      Added value: +{
      +  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent, open-world, non-destructive, so the safety profile is covered. The description adds real context beyond them: results are candidate codes from the official schedule, include headings and declaration status, and come with a non-binding notice. It does not discuss coverage gaps within the two schedules or how ambiguity between candidates is resolved, which keeps it below 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the trigger condition, then examples, then return shape, then exclusions — a logical order with no filler. It is on the long side and the three quoted example queries could be trimmed, but each sentence carries routing or expectation-setting value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and full schema coverage, the description need not explain return values in detail, yet it still summarizes what comes back and warns that results are non-binding. Together with the GB/US scope limit and exclusion list, an agent has everything needed to call it correctly and set user expectations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so description, country enum, aliases and limit default are already documented in structured fields. The description only echoes "plain description of the product and country GB or US" and adds product-type examples, without new syntax or guidance beyond the schema; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (find tariff/HS/HTS/customs code for a product) and disambiguates via concrete framed questions such as "what is the tariff code for a ceramic flower pot in the UK?". An agent can tell instantly this is a classification lookup rather than a duty-rate or cost tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives both sides of the routing decision: use it when the user asks for a tariff/commodity/HS/HTS code, and explicitly do not use it for binding rulings, landed-cost computation, or countries outside GB/US. The negative list covers the likely sibling confusions (duty rate, cost, other jurisdictions).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.