Skip to main content
Glama

ai_hts_classify

Read-only

AI tariff classification (HS / HTS code) verified against the US schedule — Describe a product in plain English and get its likely 6-digit HS subheading(s), each checked against the live USITC Harmonized Tariff Schedule: verified true/false, the U.S. tariff lines under it with general / special / column 2 duty rates, statistical suffixes, a best match, the deciding product facts and the questions an importer should confirm. Params: product (required, up to 1500 chars: material, function, use), origin (optional ISO2 country of origin - adds a Chapter 99 extra-duty reminder). AI-assisted, not a binding ruling. Price: $0.012 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": {
      "product": "<product>"
    },
    "name": "ai_hts_classify"
  }
}

Input Schema

NameRequiredDescriptionDefault
productYese.g. 14-inch laptop computer with keyboard and screen, 1.4 kg

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true), so the bar is lower, and the description clears it by disclosing cost ($0.012 USDC via x402), the non-binding-ruling disclaimer, and what 'verified' means (checked against the live USITC schedule). It does not describe failure behavior when a code cannot be verified, 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?

The purpose, verification promise, and return contents are front-loaded before parameters and pricing, so the important selection signal comes first. The single dense paragraph is heavy on clauses and could be split, but nearly every sentence carries distinct information.

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 no output schema, the description usefully enumerates what comes back — verified true/false, tariff lines with general/special/column 2 rates, statistical suffixes, best match, deciding facts, and follow-up questions. Payment model and the non-binding caveat are covered; only error/edge-case behavior and the origin/schema mismatch are gaps.

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 baseline is 3; the description does add real value by specifying what to put in 'product' (material, function, use) and a 1500-character cap. But it also documents an 'origin' optional ISO2 parameter that does not appear in the input schema at all, creating a mismatch an agent must resolve on its own.

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

Purpose4/5

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

The description names a concrete verb and resource — 'AI tariff classification (HS / HTS code)' from a plain-English product description — and scopes it to the US schedule with live USITC verification. That scope detail distinguishes it from a generic classifier such as ai_classify, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

It implies usage well ('Describe a product in plain English and get...') and adds a caveat that results are AI-assisted and not a binding ruling, which frames expectations. However, it never says when to prefer this over ai_classify, trade_hts_lookup, or classify, and gives no explicit exclusions or prerequisites.

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