Skip to main content
Glama

Finds Harmonized System codes from UN Comtrade's HS

logistics_hs_code_classifier
Read-only

Finds Harmonized System (HS) codes from UN Comtrade's HS reference list by code prefix or description keyword: code, official description, hierarchy level. It lists candidate headings and subheadings; it does not decide the legal tariff code for a shipment. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": "logistics_hs_code_classifier"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesHS code digits (e.g. 8703) or a keyword (e.g. motor cars)
limitNo1 to 20, default 5

Output Schema

NameRequiredDescriptionDefault
countNo
queryNo
sourceNo
matchesNo
checkedAtNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true and openWorldHint=true, so the safety profile is already covered and the description correctly stays consistent with a read-only lookup. It adds genuinely useful non-schema context: $0.002 per successful call via x402 in USDC across multiple networks, and failed calls are not charged, which lets an agent reason about cost and retry behavior. It does not describe pagination or truncation behavior for candidate lists, which is the main remaining gap.

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?

Two compact sentences, front-loaded with what the tool returns, followed by the scope disclaimer and then the pricing. Every clause carries information an agent needs; nothing is repeated from the schema or annotations.

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 two fully documented parameters, an output schema, and read-only/open-world annotations, the description covers purpose, result type, scope limit, and cost, which is sufficient to invoke it correctly. The only omission is result-volume behavior (limit bounds, ranking of candidates), but the schema's limit field partly covers that.

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?

Schema coverage is 100%, so q and limit are already documented with examples, establishing a baseline of 3. The description adds meaning beyond that by specifying that q is matched by code prefix (partial-code matching) as well as by description keyword, which is a matching semantic the schema's example only implies.

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 (finds), specific resource (HS codes from UN Comtrade's reference list), and the two lookup modes (code prefix or description keyword). It also names what the response contains (code, official description, hierarchy level), so the agent knows the output's shape before opening the output schema.

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?

Gives clear qualification: it lists candidate headings and subheadings and explicitly does not decide the legal tariff code for a shipment, which tells an agent when the result is insufficient on its own. It stops short of naming an actual alternative tool (e.g. a tariff or duty calculator among the siblings), so the routing is a scope statement rather than an explicit when-to-use-this-instead instruction.

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