Skip to main content
Glama

US Tariff Schedule

Calculate base US import duty

calculate_import_duty

Base HTS duty for an 8/10-digit code, ISO-2 country of origin and customs value. Applies Column 2 for CU/KP/RU/BY and FTA special rates where the HTS lists the country's program. Ad valorem rates only; Chapter 99 additional duties are not included.

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": {
      "hts_code": "<hts_code>",
      "country_of_origin": "<country_of_origin>",
      "customs_value_usd": "<customs_value_usd>"
    },
    "name": "calculate_import_duty"
  }
}

Input Schema

NameRequiredDescriptionDefault
hts_codeYes
country_of_originYes
customs_value_usdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does substantial work: it states the Column 2 treatment for CU/KP/RU/BY, that FTA special rates apply only where the HTS lists the country's program, that only ad valorem rates are handled, and that Chapter 99 duties are excluded. It stops short of stating the return shape, rounding, or error behavior for invalid code/country combinations.

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, each carrying distinct information: inputs, rate-selection rules, and scope limits. Nothing is repeated from the schema and no sentence is filler.

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?

The rate-selection logic is well covered, but with no output schema and no annotations the description never says what is returned — a duty amount, an effective rate, or a breakdown — or how errors surface. For a numeric calculator that omission leaves a real gap for an agent deciding how to consume the result.

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 description coverage is 0%, so the description must compensate, and it does: it clarifies '8/10-digit' for hts_code (more informative than the bare minLength 8 / maxLength 14), ISO-2 for country_of_origin, and that customs_value_usd is the customs value. It does not state the assumed currency despite the _usd suffix, which keeps it from a 5.

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?

The description names the specific computation (base HTS duty) and enumerates the three inputs that drive it, which is enough for an agent to tell it apart from lookup_hts_code. It is phrased as a noun fragment rather than a verb phrase, but the resource and scope are unambiguous.

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 input shape, and the 'Chapter 99 additional duties are not included' sentence sets an important boundary on when results are valid. There is no explicit statement of when to use this versus lookup_hts_code, or of prerequisites such as needing a resolved HTS code first.

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.