Skip to main content
Glama

Find HTS classification codes

classify_hts
Read-onlyIdempotent

Find the US Harmonized Tariff Schedule classification for a product. Returns candidate HTS codes with their official descriptions and base duty rates. Use when the user wants the code itself rather than a cost. Not charged: it does not use a duty lookup.

Input Schema

NameRequiredDescriptionDefault
queryYesProduct description, e.g. "cotton t-shirts" or "lithium ion batteries".

Output Schema

NameRequiredDescriptionDefault
noteNo
queryNo
sourceNo
gatewayNo
resultsNoCandidates ranked by text match, not a classification ruling.
warningNo
disclaimerNo
guest_allowanceNo
guest_lookups_remainingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / guest_allowance
      Added value: +{
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds value beyond that by disclosing the return shape (multiple candidate codes with descriptions and base duty rates) and that the call is not billed, which matters for planning.

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

Conciseness5/5

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

Three short sentences, front-loaded with what it does, then the return value, then the routing rule and billing note. No filler and no repetition of the title.

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?

An output schema exists so return values need only be summarized, and the description does that. For a one-parameter read-only lookup this is nearly complete; it could add a hint about how specific the product description should be, which matters for classification quality.

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?

There is a single required parameter with 100% schema description coverage including concrete examples, so the schema does the work. The description adds nothing about how the query string is matched (keyword vs semantic, specificity expectations), so 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 the US Harmonized Tariff Schedule classification for a product, and names the return payload (candidate HTS codes with official descriptions and base duty rates). This clearly separates it from the landed_cost sibling, which is about cost rather than the code.

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?

"Use when the user wants the code itself rather than a cost" gives an explicit selection condition against the cost-oriented sibling, and the billing note clarifies it is not a charged duty lookup. It stops short of naming landed_cost directly or covering edge cases such as ambiguous product descriptions.

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.

Resources