Skip to main content
Glama

Customs Code Search (HTS / Schedule B)

hs_code_search
Read-only

Find the customs code for a product: 10-digit HTS codes for goods imported into the US, or Schedule B codes for US exports (origin US). Search by short keywords as the official tariff wording uses them (e.g. 'chairs', 'seats', 'cotton t-shirts', 'bolts'), not marketing names; one or two words work best, and a code prefix (e.g. '9401') lists the codes under it. Show the user the matches and let them pick; the code they ship under is their call. Free, no account needed.

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": {
      "query": "<query>",
      "origin": "<origin>"
    },
    "name": "hs_code_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMatches to return, default 10
queryYesProduct keywords or the start of a code
originYesISO alpha-2 country the freight ships FROM: 'US' for an export (Schedule B), the supplier's country for an import (HTS)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, non-destructive and closed-world, so the safety profile is covered. The description adds real context beyond them: it is 'Free, no account needed', it returns a list of candidate matches rather than an authoritative classification, and it explicitly disclaims responsibility for the final decision ('the code they ship under is their call'). This is valuable behavioral framing for a compliance-adjacent lookup.

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 core purpose, then search-phrasing advice, then the workflow instruction, ending with cost/account status. Dense but every clause carries information; the semicolon-chained sentences are slightly long but not padded.

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

Completeness4/5

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

With three simple parameters, no output schema, and full annotation coverage, the description covers the decision-relevant surface: what it searches, how to phrase it, and that results are candidates for the user to choose from. It does not describe the shape of each returned match (code, description, duty rates), but that is a minor omission for a read-only lookup.

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. The description nevertheless adds meaning beyond the schema's terse 'Product keywords or the start of a code' by explaining the tariff-vocabulary phrasing convention and that a bare code prefix enumerates children. It also reinforces the origin semantics (US = export/Schedule B, supplier country = import/HTS); limit is left to the schema, which is acceptable.

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 the customs code for a product') and immediately splits the domain into its two regimes: 10-digit HTS for US imports vs Schedule B for US exports. That distinction lets an agent understand the tool without opening the schema, and it is a distinct capability from siblings like international_duty_estimate.

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

Usage Guidelines4/5

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

Gives concrete guidance on how to form the query ('short keywords as the official tariff wording uses them... not marketing names; one or two words work best'; code prefix '9401' lists codes under it) and prescribes the interaction pattern ('Show the user the matches and let them pick'). It stops short of naming an alternative tool for duty calculation or a full quote, so it is clear but not exhaustively routed.

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.