Skip to main content
Glama
FreightUtils MCP Server

FreightUtils MCP Server

EU Duty Calculator (TARIC)

eu_duty_calculator
Read-onlyIdempotent

Calculate EU import duty for a 10-digit TARIC code by origin, as-of date, and EUR customs value; include TARIC quantities to compute specific duties and flag missing data.

Instructions

Compute EU import duty from TARIC for a declarable 10-digit code, as_of (YYYY-MM-DD, mandatory), origin (ISO country) and customs_value in EUR, with quantities by TARIC unit code (e.g. {"DTN": 12.5}) where a specific duty needs them. Every measure on the code for that origin gets a state: computed, insufficient_data (condition, quota balance, additional code, Meursing, entry price, MIN / MAX, or a quantity named in missing_inputs) or not_applicable. Third-country duty first; each other rate is its own line saying what it requires; no total. Trade-defence duties are listed, never computed. For the measures alone use eu_tariff_lookup; for the UK use uk_duty_calculator. No VAT, excise or currency conversion (EUR only); one monthly TARIC extraction, as_of must be its reference date. Reference, not advice. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets.

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

Input Schema

NameRequiredDescriptionDefault
codeNoDeclarable TARIC code, 10 digits (an 8-digit CN code is read as its 10-digit form). Required.
as_ofNoDate the duty is computed for, YYYY-MM-DD. Required; must be the reference date of the TARIC extraction (a refusal names it).
originNoCountry of origin, ISO 3166 alpha-2 (e.g. CN, US, TR). Required.
currencyNoEUR (the default and the only one accepted: no currency is converted).
quantitiesNoQuantities by TARIC unit code for specific or compound duties, e.g. {"DTN": 12.5} (12.5 × 100 kg), {"HLT": 4}, {"NAR": 100}, {"DTN/E": 3}. A specific duty without its quantity is listed as insufficient_data and named in missing_inputs.
customs_valueNoCustoms value in EUR, a positive number. Required.

Output Schema

NameRequiredDescriptionDefault
okYes
_metaNo
as_ofNo
resultYes
statusNo
_sourceYes
editionNo
citationYes
validityNo
warningsNo
confidenceYes
missing_inputsNo
blocking_errorsNo
envelope_versionYes
normalized_inputNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.34.6

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, and the description goes well beyond them: it discloses the per-measure outcome states (computed, insufficient_data, not_applicable), the ordering rule (third-country duty first, no total), and that trade-defence duties are listed but never computed. It also discloses rate limiting with a reset_at field and the 'reference, not advice' disclaimer, which an agent cannot infer from structured fields.

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?

The core purpose and the sibling routing are front-loaded in the first two sentences, and every clause carries information rather than filler. It is dense, with packed parenthetical lists of insufficiency conditions (Meursing, entry price, MIN/MAX), which is efficient but borders on hard to scan in one pass.

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

Completeness5/5

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

Given an output schema exists, return values need not be explained, and the description still supplies the state model that makes those outputs interpretable. For a six-parameter, nested-object tool with annotations covering safety, nothing an agent needs to call it correctly or interpret refusals is missing.

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%, so code, as_of, origin, currency, quantities and customs_value are already fully documented in the schema, including the insufficient_data/missing_inputs consequence of omitting a quantity. The description mostly restates those constraints (YYYY-MM-DD as_of, ISO origin, EUR only) and adds the illustrative quantity-unit example, which is useful but largely duplicative of the schema text.

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 and resource ('Compute EU import duty from TARIC') and immediately pins down the input scope (10-digit declarable code, origin, EUR customs_value). It explicitly names and distinguishes the two nearest siblings, eu_tariff_lookup (measures only) and uk_duty_calculator (UK), so an agent can route without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use routing ('For the measures alone use eu_tariff_lookup; for the UK use uk_duty_calculator') plus when-not-to-use exclusions ('No VAT, excise or currency conversion'). It also states the prerequisite that as_of must match the monthly TARIC extraction reference date, which prevents a whole class of failing calls.

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