Skip to main content
Glama

Tariff & HS Code Duty Finder

Get customs duty, tariff and import tax

get_duty_rate
Read-onlyIdempotent

Use this when the user asks what import duty, customs duty, tariff, import tax or VAT applies to a tariff code or HS code, for example "what is the US duty on HTS 8507.60.00?", "what duty applies to UK commodity code 6914100000 from Vietnam?" or "what is under heading 6914 in the UK tariff?". Pass the code (4 to 10 digits, dots, spaces or dashes allowed), country GB or US, and originCountry when the user names where the goods come from. For a declarable code it returns the description and the rate: for the UK the third-country duty, VAT rates as a list, the preferential rate and any additional duty for the origin, and other measures; for the US the general, special and column 2 rates and units. For a code that is only a heading it returns the lines beneath it instead. Chapter 99 additional duties for the US and quotas or trade remedies are not included. Not for a landed cost estimate, for excise or customs-broker fees, or for legal advice.

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": {
      "code": "<code>",
      "country": "<country>"
    },
    "name": "get_duty_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesTariff code of 4 to 10 digits, with or without dots, spaces or dashes, for example 8517.13, 8507-60-0020 or 6914900010.
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.
originCountryNoTwo-letter code of the country the goods come from, for example VN. Adds that country's preferential rate (GB) or tells whether the column 2 rate applies (US).

Output Schema

NameRequiredDescriptionDefault
codeYes
dutyNo
pathNo
levelYes
notesYes
noticeYes
sourceYes
countryYes
childrenNo
declarableYes
descriptionNo
originCountryNo
totalChildrenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / code / description
      Previous value: -"Tariff code of 4 to 10 digits, with or without dots, for example 8517.13 or 6914900010."New value: +"Tariff code of 4 to 10 digits, with or without dots, spaces or dashes, for example 8517.13, 8507-60-0020 or 6914900010."
    • changedInput schema / properties / code / maxLength
      Previous value: -14New value: +20
    • changedInput schema / properties / code / pattern
      Previous value: -"^[0-9. ]{4,14}$"New value: +"^[0-9][0-9. \\-]{3,19}$"
    • 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
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavioral context: declarable codes return description plus rate, heading-only codes return the lines beneath, and Chapter 99 additional duties, quotas and trade remedies are excluded. That is real added value, though it stops short of noting data freshness or coverage limits beyond the country enum.

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 parameters, then return shape, then exclusions — a logical order with no filler sentences. It is dense and long for a single paragraph, but nearly every clause carries information an agent needs.

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?

For a three-parameter read-only lookup with an output schema, the description covers trigger, inputs, return shape for both declarable and heading codes, and explicit scope exclusions. Nothing an agent needs in order to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: it explains that originCountry yields the preferential rate for GB or determines column 2 applicability for US, and that the code may be 4 to 10 digits with dots, spaces or dashes. This is a meaningful supplement to the field descriptions.

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 ('what import duty, customs duty, tariff, import tax or VAT applies to a tariff code or HS code') and backs it with three concrete example queries. It is clearly distinguishable from the sibling find_tariff_codes, which is a search tool, since this one takes a known code and returns rates.

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 explicit trigger conditions ('Use this when the user asks what import duty...'), worked examples, and a clear exclusion list: not for landed cost estimates, excise or broker fees, or legal advice. It also tells the agent when to supply originCountry ('when the user names where the goods come from').

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.