Skip to main content
Glama
calcbloc-mcp

calcbloc-mcp

Look up tariff lines by commodity code

get_tariff
Read-onlyIdempotent

Look up import tariff lines by HS code and destination for MFN duties, preferential rates, quotas, suspensions, extra duties, import VAT, and excise; add origin to filter measures by applicability.

Instructions

The importing country's tariff lines for a commodity code or HS prefix: description, MFN duty, tariff preferences with their agreements and quotas, suspensions, extra duties (anti-dumping and others, grouped by exporter additional code), import VAT, excise and other charges, each in the tariff's own wording, as of the tariff's version date. Tariffs: 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). With origin, only the measures for that origin and the best preferential rate. Paginated: pass nextCursor as cursor for more lines. Not a customs ruling.

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": {
      "hs_code": "<hs_code>"
    },
    "name": "get_tariff"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoLines per page (1 to 25, default 10).
cursorNonextCursor from the previous call, with the same destination, hs_code and origin.
originNoCountry of origin (ISO code or name): keeps only the measures that apply to it and adds the best preferential rate.
hs_codeYesCommodity code: an HS prefix (2, 4, 6 or 8 digits) or the full 10-digit code, e.g. "0901" or "8471.30"; dots and spaces are ignored.
importerNoAlias of destination (the importing country).
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").

Output Schema

NameRequiredDescriptionDefault
codeYes
countYes
linesYes
totalYesTariff lines under the code.
caveatYesThe tariff figures are not a customs ruling; who makes the final determination.
originYes
tariffYes
licenceYes
sourcesYesOfficial sources for the rates used.
warningsYes
disclaimerYes
nextCursorYesPass as cursor for the next lines; null on the last page.
attributionYesAlways "Data by CalcBloc"; show it with the figures.
calcblocUrlYesThe calcbloc.com page for this result.
attributionUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/non-destructive/open-world, so the bar is lower, and the description still adds real behavior: results are per-tariff wording, tied to a tariff version date, EU member states carry their own import VAT, and anti-dumping entries are grouped by exporter additional code. It also discloses the pagination contract (pass nextCursor as cursor) beyond the safety profile. It does not mention error behavior for unknown codes or rate limits.

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 purpose, then the returned fields, then destination options, then the origin modifier and pagination. It is dense but every clause carries information; the long enumerative opening sentence is the only mild readability cost, and the trailing 'Not a customs ruling' is well-placed.

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?

An output schema exists so return values need not be explained, yet the description still sketches the shape of a line, which helps an agent decide whether to call it. Destination/origin semantics and pagination are covered. Minor gaps: no guidance on behavior for malformed or unknown HS codes, and no hint about how large prefix results (2-digit) can be.

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 hs_code, limit, cursor, origin, destination and the importer alias — the description's destination list and origin explanation largely restate it. The one genuine addition is framing the cursor as 'nextCursor' from a prior response for fetching further lines. Baseline 3 applies when the schema carries the parameter burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

A specific verb-and-resource statement — 'tariff lines for a commodity code or HS prefix' — followed by an enumeration of exactly what each line contains (MFN duty, preferences, quotas, anti-dumping, import VAT, excise). The closing 'Not a customs ruling' sharpens scope. It stops short of naming the obvious sibling alternative (calculate_import_duty) that an agent might otherwise confuse it with.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage context is implied rather than stated: the 'Tariffs:' clause lists valid destinations and 'With origin, only the measures for that origin' explains a mode switch, and 'Not a customs ruling' marks a boundary. However, there is no explicit when-to-use-this-vs-alternative guidance, and nothing points to calculate_import_duty or list_trade_agreements even though those are the natural competing choices for the same task.

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