Skip to main content
Glama

trade_hts_lookup

Read-only

US tariff (HTS) code lookup with duty rates — Look up the U.S. Harmonized Tariff Schedule by code or keyword (USITC, public domain): every matching tariff line with its full description path (heading > subheading > line), general (MFN) duty rate, special/preferential rates (USMCA, KORUS...), column 2 rate, units, footnotes, rates inherited down to 10-digit statistical suffixes, and any Chapter 99 lines that reference the code (Section 301/232-style extra duties). Params: q (required: an HTS code such as 0901.21 or 8471300100, or a product keyword), limit (optional, default 25, max 50). For plain-English product descriptions use /v1/ai/hts-classify. Price: $0.004 USDC (Base, via x402).

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": {
      "q": "<q>"
    },
    "name": "trade_hts_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYese.g. 0901.21

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, open-world reads, so the bar is lower; the description still adds real context by naming the data source and licensing (USITC, public domain), stating the per-call price and payment rail ($0.004 USDC on Base via x402), and explaining that rates are inherited down to 10-digit statistical suffixes. It stops short of describing rate-limit or error behavior, so a 4 rather than a 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?

The definition is front-loaded with purpose, then return contents, then params, then the alternative, then price — a sensible order with no filler sentences. The long second clause is a dense run-on list of return fields, but each item carries information an agent needs to judge relevance.

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 no output schema, the description must explain return values, and it does so thoroughly, including the inheritance rule and Chapter 99 cross-references that determine whether a result answers a duty question. Combined with source provenance and pricing, an agent has enough to call it correctly and know the cost.

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?

The schema documents only q, with the example "0901.21", which implies a formatted code. The description clarifies that q also accepts a bare keyword and additionally documents a limit parameter (default 25, max 50) that is absent from the schema entirely. That is genuine added meaning, though the limit description has no counterpart in the schema and thus cannot be validated from it.

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?

The description opens with a specific verb and resource ("Look up the U.S. Harmonized Tariff Schedule") and enumerates exactly what comes back: description path, MFN rate, preferential rates, column 2, units, footnotes, and Chapter 99 extra-duty lines. That detail distinguishes it clearly from a classification tool that returns a suggested 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?

It states the two accepted input modes (code or keyword) and explicitly routes plain-English product descriptions to /v1/ai/hts-classify, naming both the alternative and the condition that selects it. It does not spell out a when-not case beyond that one, which keeps it short of the top score.

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