Skip to main content
Glama
calcbloc-mcp

calcbloc-mcp

Calculate import duty and landed cost

calculate_import_duty
Read-onlyIdempotent

Calculates import duty, taxes and landed cost for shipments to the UK, EU, US or India from origin, HS code, customs value and proof of origin, flagging any duties that cannot be computed.

Instructions

Duties and taxes on one import, as of the tariff's version date: the third-country (MFN) duty or, with proof_of_origin, the lowest preferential duty under a trade agreement; extra duties in force for the origin (anti-dumping, countervailing, safeguard, US Section 301); excise (UK); import VAT (UK, or the EU member state's standard rate); US entry fees; and the landed cost. Destinations: gb (the UK), eu or an EU member state (de, fr, it, es, nl…; its import VAT applies), us (the United States) or in (India). Each line has its measure, legal instrument and source. A duty that cannot be computed (a specific duty without quantity, an exporter-specific anti-dumping duty without additional_code) is shown as not computed and totals.complete is false with the reasons. Use get_tariff to find the 10-digit code. The figures are an estimate, not a customs ruling: TARIC is not legally binding, and the customs authority makes the final determination.

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": {
      "origin": "<origin>",
      "hs_code": "<hs_code>",
      "customs_value": "<customs_value>"
    },
    "name": "calculate_import_duty"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNoUnit of quantity: kg, g, tonne, 100 kg, l, hl, items, 1000 items, pairs, m, m2, m3, or the tariff's own unit (e.g. "% vol/hl").
originYesCountry of origin of the goods (ISO code or name), e.g. "cn", "India".
hs_codeYesThe 10-digit commodity code of the importing tariff (a shorter prefix works when it matches one line only), e.g. "0901210000"; dots and spaces are ignored.
importerNoAlias of destination (the importing country).
quantityNoQuantity in unit, for specific duties and excise (give unit too).
vat_codeNoUK VAT additional code for another VAT rate (e.g. VATZ zero rate, VATR reduced rate).
documentsNoDocument (certificate) codes declared with the goods (up to 10), e.g. D008 for the invoice that gives an EU exporter its own anti-dumping rate.
transportNoUS only: how the goods arrive; vessel adds the harbor maintenance fee.
destinationNoImporting country (required, or give importer): gb (the UK), eu or an EU member state (de, fr, it, es, nl…; its import VAT applies), us (the United States) or in (India). Names work too ("United Kingdom", "Germany").
excise_codeNoUK excise additional code where several apply (e.g. X311).
customs_valueYesCustoms value in the tariff's currency: CIF (price plus transport and insurance to the border) in GBP for the UK and EUR for the EU; the transaction value in USD for the US; INR for India.
additional_codeNoAdditional codes declared with the commodity code (up to 4): the exporter's code for exporter-specific anti-dumping or countervailing duties (e.g. 8A95).
proof_of_originNotrue when the goods have a valid proof of origin for a preference: the lowest preferential duty is used instead of MFN. Default false.

Output Schema

NameRequiredDescriptionDefault
mfnYes
basisYes
linesYes
notesYes
caveatYesThe tariff figures are not a customs ruling; who makes the final determination.
inputsYes
originYes
tariffYes
totalsYes
licenceYes
sourcesYesOfficial sources for the rates used.
currencyYes
warningsYes
commodityYes
disclaimerYes
attributionYesAlways "Data by CalcBloc"; show it with the figures.
calcblocUrlYesThe calcbloc.com page for this result.
destinationYes
memberStateYes
customsValueYes
otherChargesYesListed, not added to the totals.
preferentialYesThe preference applied (proof_of_origin true), or the best one available.
attributionUrlYes
tariffDisclaimerYes
extraDutiesPossibleYesExtra duties that apply to some imports of this origin (e.g. per exporter additional code).
preferentialOptionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/openWorld annotations, it discloses the as-of-date semantics (the tariff's version date), the per-line attribution (measure, legal instrument, source), and precisely what happens on failure: a specific duty without quantity or an exporter-specific anti-dumping duty without additional_code is marked not computed and totals.complete is false with reasons. It also carries the legal caveat that TARIC is not binding, which no annotation covers.

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 description is dense but front-loaded: what it computes, then which components, then destinations, then failure handling, then the caveat. The destination enumeration duplicates the destination parameter description, which is the main redundancy. Nearly every other clause carries distinct information.

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 13-parameter calculation tool with an output schema and rich annotations, the description covers scope, inputs' roles, currencies, partial-result semantics, and legal limitations. Since an output schema exists, it does not need to describe return values, and nothing an agent needs to invoke it correctly is missing.

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 adds cross-parameter meaning the schema states only locally: proof_of_origin switches to the lowest preferential duty, additional_code is required for exporter-specific anti-dumping rates, and quantity/unit are needed for specific duties and excise. The destination semantics (EU member state's own VAT rate) are repeated from the schema, but the failure-mode linkage is genuine added value.

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 opens with a specific verb and resource — duties and taxes on one import plus landed cost — and enumerates exactly which duty components are included (MFN/preferential duty, anti-dumping, countervailing, safeguard, Section 301, excise, import VAT, US entry fees). It also explicitly routes the user to get_tariff for the code, so an agent can separate it from the sibling calculators 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 Guidelines4/5

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

It names the companion tool and precondition (use get_tariff to find the 10-digit code) and explains the proof_of_origin branch that selects preferential over MFN duty. It also frames the output as an estimate rather than a customs ruling, which is a meaningful usage boundary. It does not explicitly say when to use another sibling, so it stops short of a 5.

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