Skip to main content
Glama
FreightUtils MCP Server

FreightUtils MCP Server

EU Tariff Lookup (TARIC)

eu_tariff_lookup
Read-onlyIdempotent

Look up EU tariff measures for a CN or TARIC code on a specified date, including declarability, duty rates, origin, additional codes, quotas, and import/export direction.

Instructions

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
_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.5/5.0
Behavior4/5

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

Goes well past the annotations (which only establish read-only, non-destructive, closed-world, idempotent) by disclosing the monthly TARIC extraction, the requirement that as_of equal its reference date, that refusals name that date, the absence of VAT/excise/national measures, the 'reference, not advice' caveat, and the rate limit with reset_at. The one gap is that it describes the return payload in detail even though an output schema exists, spending transparency budget on content the schema already carries.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and every clause carries information, but the definition is a single dense paragraph of roughly 150 words mixing purpose, return shape, alternatives, caveats and rate-limit behavior with no structural separation. An agent can parse it, but splitting output shape and constraints into their own sentences or clauses would reduce scanning cost.

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?

For a four-parameter lookup with full schema coverage, annotations, and an output schema, the definition covers everything an agent needs: what it returns, what it deliberately excludes, the as_of constraint, the sibling alternatives, and failure behavior (refusal naming the date, limit error with reset_at). Nothing material is left implicit.

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 coverage is 100%, so the baseline is 3, but the description reinforces the semantics that matter operationally: code formats (8 vs 10 digits, spaces/dots allowed), as_of being mandatory and pinned to the extraction's reference date, origin accepting either ISO country or a TARIC country-group code, and direction defaulting to import. It adds modest but real meaning over the schema rather than merely restating it.

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 narrows scope to CN 8-digit / TARIC 10-digit codes with a mandatory as_of. It explicitly separates itself from eu_duty_calculator and uk_duty_calculator, so an agent can distinguish it from the duty-calculation siblings without opening a 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 concrete routing rules: 'For the duty on a value use eu_duty_calculator; for the UK tariff use uk_duty_calculator', each paired with the condition that selects the alternative. It also states the domain boundary (codes, measures and rates only; no goods description), which tells the agent when this tool will not answer the question.

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