Skip to main content
Glama

EU Duty Calculator (TARIC)

eu_duty_calculator
Read-onlyIdempotent

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
as_ofYes
resultYes
statusYes
_sourceYes
editionYes
citationYes
warningsNo
confidenceYes
missing_inputsYes
blocking_errorsNo
envelope_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds substantive behavior beyond them: the three-way measure state taxonomy, that trade-defence duties are listed but never computed, that there is deliberately no total, and the rate-limit contract with reset_at. The one uncovered area is roughly how large a response is (one line per measure), which matters for a wide tariff code.

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?

Purpose and inputs are front-loaded before output semantics, alternatives, exclusions and the rate-limit note, and nearly every clause carries operational information. It is dense and semicolon-heavy, and the closing 'Reference, not advice' disclaimer is the only sentence that could be trimmed without losing call-relevant meaning.

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?

Despite an output schema already existing, the description still explains the shape of the answer (per-measure states, third-country duty first, no total), which is what an agent needs to interpret results rather than re-derive them. Combined with input format notes, exclusions and rate-limit behavior, nothing material is left for the agent to guess.

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 100%, so the baseline is 3; the description goes further by tying parameters to outcomes — a specific duty without its quantity becomes insufficient_data and is named in missing_inputs, and as_of has a hard validity constraint tied to the extraction date. It reinforces the quantity unit-code format with an inline example, adding modest value over the schema.

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?

Opens with a specific verb+resource ('Compute EU import duty from TARIC') and immediately bounds the scope to a declarable 10-digit code, origin and customs value. It explicitly distinguishes itself from two siblings by name, so an agent can route between eu_duty_calculator, eu_tariff_lookup and uk_duty_calculator without inspecting schemas.

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 alternatives with the condition that selects each ('For the measures alone use eu_tariff_lookup; for the UK use uk_duty_calculator') and states what the tool does NOT cover (VAT, excise, currency conversion). The 'as_of must be the reference date of the TARIC extraction' line makes a precondition actionable.

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.