Skip to main content
Glama

EuroCompliance Studio & Ultrathink Edge MCP (36 Tools)

calculate_import_duty

Read-onlyIdempotent

Validate 10-digit HTS code (detect Shopify CSV truncation/leading-zero loss), query live USITC/HMRC rates & compute US/UK landed duty + Section 301 + MPF.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate_import_duty"
  }
}

Input Schema

NameRequiredDescriptionDefault
htsNo10-digit HTS code (e.g. 8471.30.0100)
qtyNo
destNo
originNo
keywordNo
valueUsdNo
freightUsdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, and the word 'live' usefully reinforces that rates come from an external USITC/HMRC call and may vary. Beyond that it says nothing about failure behavior for malformed codes, rate limits, or what happens when one jurisdiction's feed is unavailable.

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 dense sentence that front-loads the validation step and moves to lookup then computation; nothing is redundant. It is jargon-heavy (MPF, Section 301) and packed with parentheticals, but every phrase carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter tool with no required parameters, no output schema, and near-empty schema descriptions, the definition is under-specified: it does not explain the alternate input modes (hts versus keyword), which inputs drive the duty breakdown, or what the computed result looks like. The gaps in parameter semantics are the main reason this falls short of adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 14%, so the description must carry the burden, and it only partly does: it clarifies the 10-digit format for hts, the US/UK scope of dest, and implies valueUsd/freightUsd feed the landed-cost math. It says nothing about qty, origin, or keyword, and with zero required parameters an agent cannot tell which inputs are needed for which of the three stated functions (validate, lookup, compute).

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 concrete verbs and resources: validate a 10-digit HTS code, query live USITC/HMRC rates, and compute US/UK landed duty including Section 301 and MPF. This clearly distinguishes a duty-calculation tool from a plain lookup such as tariff_hts_lookup, though it never names that sibling or sanitize_shopify_hts_csv, whose CSV-truncation concern it references.

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 only implied by the phrasing: an agent can infer it should call this when it needs an actual duty figure rather than a code lookup, and the Shopify CSV mention hints at repair-then-calculate workflows. There is no explicit when-to-use versus sanitize_shopify_hts_csv or tariff_hts_lookup, and no statement of prerequisites for a call.

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.