Skip to main content
Glama

TradeFacts

Search the US HTS

search_us_hts
Read-onlyIdempotent

Find US HTS codes by product description. Every word must appear (AND); words match inside longer words ("wire" also finds "wires"). Returns classifiable tariff lines with their rates. limit: 1-25 (default 10).

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>"
    },
    "name": "search_us_hts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many results to return, 1 to 25.
queryYesWords describing the product, e.g. "copper wire". Every word must appear in the tariff line text.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / limit / description
      Added value: +"How many results to return, 1 to 25."
    • addedInput schema / properties / limit / maximum
      Added value: +25
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • addedInput schema / properties / query / description
      Added value: +"Words describing the product, e.g. \"copper wire\". Every word must appear in the tariff line text."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this as a read-only, idempotent, non-destructive, closed-world operation, so the bar is lower. The description still adds real behavioral context the annotations cannot: words are ANDed, matching is substring-based ('wire' finds 'wires'), and results are classifiable tariff lines with rates. It omits result ordering and what happens on zero hits, but an output schema exists to cover returns.

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 the purpose, then matching semantics, then the constraint. No filler and no restatement 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 and annotations cover safety and world-boundary semantics, so the description only needs purpose and matching behavior, both of which are present. Its one gap is routing guidance against lookup_us_hts and the other sibling search tools.

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?

With 100% schema coverage the baseline is 3, but the description earns more by explaining the matching model — every word must appear, and words match inside longer words — which the schema only partially conveys ('Every word must appear in the tariff line text') and never addresses substring behavior. The limit restatement of 1-25 default 10 is redundant with the schema but harmless.

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?

States a specific verb and resource — 'Find US HTS codes by product description' — which implicitly separates it from code-lookup siblings like lookup_us_hts. It never names an alternative explicitly, so the differentiation rests on the reader noticing 'by product description' instead of by code.

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?

The description implies the search-by-description use case but gives no explicit when-to-use guidance, no indication of when lookup_us_hts would be preferable, and no mention of the other country search tools. Usage is inferable from the purpose sentence but not spelled out.

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