Skip to main content
Glama

EU Tariff Lookup (TARIC)

eu_tariff_lookup
Read-onlyIdempotent

Look up an EU tariff code: give a CN (8-digit) or TARIC (10-digit) code and as_of (YYYY-MM-DD, mandatory), optionally origin (ISO country or TARIC country-group code) and direction (import, default, or export). It returns whether the code exists and is declarable on that date (with the declarable codes below it when it is not), and every measure that applies by TARIC's cascade from its parent lines: measure type and name, the duty as published and parsed, origin or destination with its name, exclusions, additional codes (codes only), quota order numbers, legal base, start and end. For the duty on a value use eu_duty_calculator; for the UK tariff use uk_duty_calculator. Codes, measures and rates only: no goods description is served; every answer links the Commission's TARIC consultation for the code's wording. Answers come from one monthly TARIC extraction and as_of must be its reference date (every answer and refusal names it). No VAT, excise or national measures; 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_tariff_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoCN code (8 digits) or TARIC code (10 digits); spaces and dots allowed. Required.
as_ofNoDate the measures are read for, YYYY-MM-DD. Required; must be the reference date of the TARIC extraction the answers come from (a refusal names it).
originNoOptional: ISO 3166 country code (e.g. CN) or a 4-digit TARIC country-group code (e.g. 1011). Without it every measure on the code is listed.
directionNoOptional: import (default) or export.

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
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description adds substantial behavior beyond them: the answers come from a single monthly TARIC extraction, as_of must equal that extraction's reference date, refusals name the date, and a rate-limit error carries reset_at. It also discloses that measures are cascaded from parent lines and that exclusions/additional codes/quota order numbers are included, which an agent could not infer from annotations.

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?

Front-loaded with the core call signature and returns summary before the caveats and alternatives, which is the right ordering. It is dense and long for a four-parameter tool, with some clauses ("every answer and refusal names it", "reference, not advice") that could be tightened, but nothing is padding.

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?

An output schema exists, so return values need not be enumerated, and the description still gives a useful shape of the response (declarability, cascade of measures, duty as published and parsed). For a read-only lookup with full annotation and schema coverage, 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 coverage is 100%, so the schema already documents all four parameters, and the description largely restates them (origin as ISO or TARIC country-group, direction defaulting to import). It does add one meaningful correction — that as_of is mandatory and must be the extraction reference date — which the schema's empty required list does not convey, but beyond that the description adds little semantic depth over the structured fields.

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 and resource ("Look up an EU tariff code") and immediately scopes it to CN 8-digit or TARIC 10-digit codes. It distinguishes itself from eu_duty_calculator and uk_duty_calculator by name, so an agent can pick the right tool without opening either 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?

Explicitly routes the agent: "For the duty on a value use eu_duty_calculator; for the UK tariff use uk_duty_calculator." It also states the boundary of what this tool will not answer ("no goods description is served", "No VAT, excise or national measures"), which is a when-not-to-use condition, not just a when-to-use hint.

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.