Skip to main content
Glama
SoapyRED

FreightUtils MCP Server

hs_code_lookup

Read-onlyIdempotent

Find Harmonized System tariff codes for any product using description, exact code, or section. Used for customs declarations and duty calculations.

Instructions

Search 6,940 Harmonized System (HS) tariff codes.

HS codes are 6-digit international product classification codes used for customs declarations and duty calculations. The first 2 digits = chapter, 4 digits = heading, 6 digits = subheading.

Use this tool when you need to:

  • Find the HS code for a product (e.g., "laptop", "olive oil")

  • Get the tariff classification hierarchy (section → chapter → heading → subheading)

  • Browse HS sections (I through XXI)

Provide a search term for description-based search, or an exact HS code for detailed lookup.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoExact HS code lookup (2-6 digits)
queryNoSearch by product description (min 2 chars)
sectionNoBrowse by section (Roman numeral I–XXI, e.g., "II")
Behavior4/5

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

Annotations already declare read-only and non-destructive. Description adds context on the tool's scope (6,940 codes), hierarchy details, and three modes of operation. No contradictions.

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?

Efficiently written with front-loaded purpose, bullet points for use cases, and clear separation of input modes. No superfluous text.

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?

Despite no output schema, the description implies what is returned (codes, hierarchy). Could briefly mention return format or contents, but is sufficient for a search tool.

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% with all three parameters documented. Description restates the purpose of query and code but does not add significant detail beyond the schema. Baseline score maintained.

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 clearly states the tool searches HS tariff codes, explicitly mentioning 6,940 codes and their hierarchical structure (chapter, heading, subheading). It distinguishes from sibling tools which cover different domains (ADR, containers, incoterms, etc.).

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?

Provides explicit use cases: find HS code for a product, get hierarchy, browse sections. Also explains input modes. Lacks explicit 'when not to use' statements, but siblings are clearly different so guidance is sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SoapyRED/freightutils-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server