Skip to main content
Glama
Open Data B2B & Compliance MCP Server

Open Data B2B & Compliance MCP Server

lookup_us_hts_tariff

Read-onlyIdempotent

Look up official US HTS tariff codes and duty rates, compute ad-valorem USD duty estimates for a shipment value, and flag Chapter 99/Section 301 trade-remedy footnotes.

Instructions

Look up official US Harmonized Tariff Schedule (HTS) duty rates from USITC, deterministically compute base ad-valorem USD duty estimates for a shipment value, inherit 8-digit parent rates on statistical subheadings, and flag Chapter 99 / Section 301 trade-remedy footnotes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lookup_us_hts_tariff"
  }
}

Input Schema

NameRequiredDescriptionDefault
keywordNoOptional single keyword or HTS code query (alias merged with htsKeywords).
maxResultsNoMaximum HTS tariff records to return (1-50 in MCP mode). Default: 10.
htsKeywordsNoProduct keywords or 4-10 digit HTS code prefixes (e.g., ["lithium ion"], ["8507.60"], ["semiconductor"]).
shipmentValueUsdNoCustoms shipment value in USD for deterministic ad-valorem duty calculation. Default: 10000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world behavior, so the safety profile is covered. The description adds genuinely non-obvious domain behavior: the 8-digit parent-rate inheritance for statistical subheadings and the trade-remedy flagging, plus the fact that the duty math is deterministic ad-valorem on the supplied value. It omits upstream USITC availability/rate-limit behavior and what happens when no HTS match is found.

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?

A single front-loaded sentence with the primary action first and the secondary behaviors trailing; no filler or restated title. It is dense — three capabilities packed into one sentence — which slightly hurts scannability but nothing is wasted.

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

Completeness3/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 carry the return-shape burden, and it only lists capability categories (rates, duty estimate, footnote flags) without indicating the structure, units, or presence of rate-type breakdowns. Parameter and annotation coverage are strong, so the remaining gap is purely about what comes back.

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 description coverage is 100%, including the keyword/htsKeywords alias merge note, so the schema already carries the parameter semantics. The description adds only a light tie between shipment value and the ad-valorem computation. Baseline 3 applies since the schema does the heavy lifting.

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 names a specific verb and resource ("Look up official US Harmonized Tariff Schedule (HTS) duty rates"), identifies the authoritative source (USITC), and enumerates the three concrete outputs: base ad-valorem duty estimates, inherited 8-digit parent rates, and Chapter 99 / Section 301 footnote flags. An agent immediately knows what this tool returns and why it exists.

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?

Usage is implied by the capability list — search by keyword/HTS prefix, and pass a shipment value to get a duty estimate — but there is no explicit when-to-use or when-not statement, no prerequisite or jurisdiction caveat (US-only), and no mention of alternatives. With no tariff sibling in the catalog, the absence of alternatives is less costly, but the guidance remains inferred rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.