Skip to main content
Glama

HS Codes Classifier

Classify Product to HS Code

classify_product

Given a product description (e.g., 'wireless bluetooth headphones'), returns the most likely HS (Harmonized System) customs code with confidence score and reasoning.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionYesProduct description in English

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose that the tool returns a confidence score and reasoning, which is useful behavioral context. However, it says nothing about accuracy limits, how ambiguous products (which don't map cleanly to one code) are handled, or whether the result is deterministic/cached.

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 tight sentence that is front-loaded with the input and states the output. Efficient and free of filler, though it packs input, output, and return fields into one sentence rather than structuring them.

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?

For a one-parameter, no-output-schema tool, the description is largely self-sufficient: it explains the input, the result type (HS code), and the supplementary return fields (confidence, reasoning). The main remaining gap is uncertainty/ambiguity handling, which is minor at this complexity.

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?

Only one parameter, and schema coverage is 100% — the schema already documents it as 'Product description in English'. The description's inline example adds a concrete illustration but no syntax, length, or format constraints beyond what the schema provides. Baseline 3 is correct.

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 (classify) and resource (product to HS customs code), and the example input makes the operation unambiguous. No siblings exist to differentiate from, but the purpose is fully clear on its own.

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 usage via the input example ('wireless bluetooth headphones') but gives no explicit when-to-use guidance, no conditions of applicability, and no alternatives (there are no siblings to name). Adequate but with a clear gap.

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