Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as NovaPixel LexGrid. If you published it, claim ownership there.

TARIC / HS Code Customs Duty Calculator

taric_hs_validator
Read-onlyIdempotent

[Deterministic customs tariff calculation. Pure calculation, read-only, side-effect free]. Validates 6, 8, and 10-digit TARIC / Combined Nomenclature codes, calculates CIF customs valuation (goods price + international freight/insurance to EU border), computes third-country import duty payable, and determines border VAT base. Usage: Use this tool to calculate statutory customs duties and import VAT before shipping goods to the EU. For Incoterms cost splitting across parties, use 'incoterms_cost_allocator'. Returns: JSON object with { taricCode: string, cifCustomsValueEur: number, dutyRatePercent: number, dutyPayableEur: number, importVatPayableEur: number, totalBorderTaxesEur: number }.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "taricCode": "<taricCode>",
      "customsValueEur": "<customsValueEur>",
      "countryOfOriginIso2": "<countryOfOriginIso2>"
    },
    "name": "taric_hs_validator"
  }
}

Input Schema

NameRequiredDescriptionDefault
taricCodeYesTARIC code (6, 8, or 10 digits) (e.g. 7208100000, 85423190)
customsValueEurYesInvoice value of imported goods in EUR
countryOfOriginIso2YesCountry of origin 2-letter ISO code (e.g. CN, US, GB)
importVatRatePercentNoApplicable import VAT rate percentage (default: 22%)
freightAndInsuranceEurNoFreight and insurance costs to EU border in EUR
dutyRateOverridePercentNoSpecific duty rate percentage if preferential tariff applies

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / countryOfOriginIso2 / description
      Previous value: -"Country of origin 2-letter ISO code"New value: +"Country of origin 2-letter ISO code (e.g. CN, US, GB)"
    • changedInput schema / properties / dutyRateOverridePercent / description
      Previous value: -"Specific duty rate percentage if known"New value: +"Specific duty rate percentage if preferential tariff applies"
    • changedInput schema / properties / importVatRatePercent / description
      Previous value: -"Applicable import VAT rate percentage"New value: +"Applicable import VAT rate percentage (default: 22%)"
    • changedInput schema / properties / taricCode / description
      Previous value: -"TARIC code (6, 8, or 10 digits)"New value: +"TARIC code (6, 8, or 10 digits) (e.g. 7208100000, 85423190)"
  2. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, and the bracketed '[Pure calculation, read-only, side-effect free]' largely restates that. What it does add beyond structured data is the enumerated return shape, which matters because no output schema exists; however it says nothing about behavior on an invalid or unknown TARIC code, nor how dutyRateOverridePercent interacts with the computed rate.

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?

Structure is front-loaded and scannable: bracketed behavior tag, then Usage, then Returns. The bracketed tag and the parenthetical glosses are mildly redundant with the title and annotations, but nothing is wasted at length.

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

Completeness4/5

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

With no output schema, the description compensates by listing the returned JSON fields, and the CIF/VAT-base framing makes the calculation chain understandable. Remaining gap is error behavior for invalid codes and how the two override/rate parameters affect results, which an agent would need to know for edge cases.

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 all six parameters are already documented; the baseline is 3. The description adds one piece of genuine meaning by spelling out that CIF = goods price + international freight/insurance to the EU border and that the VAT figure is derived from a border VAT base, which clarifies how customsValueEur and freightAndInsuranceEur combine. It says nothing about dutyRateOverridePercent or importVatRatePercent, leaving those to 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?

The description names specific verbs and resources: validating 6/8/10-digit TARIC/CN codes, computing CIF customs valuation, third-country import duty, and the border VAT base. It also explicitly separates itself from the sibling 'incoterms_cost_allocator', so an agent can tell what this tool does and does not cover without opening the 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?

It states the use case ('calculate statutory customs duties and import VAT before shipping goods to the EU') and names the alternative for a different need ('For Incoterms cost splitting across parties, use incoterms_cost_allocator'). Both when-to-use and when-to-use-something-else are explicit.

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.

Resources