Skip to main content
Glama

TradeStats - customs trade statistics

get_tariff_burden

Duty paid on imports as a share of their value, month by month, for one HS or national code (and optionally one partner country; default the world). Returns the calculated duty, the dutiable value, the consumption value and two effective rates: duty / consumption value (counted only where a duty is reported) and duty / dutiable value, plus the change of the first rate against the same month a year earlier in percentage points. It is a calculated duty as published by the source agency (not duty collected, and not the statutory tariff rate), on the imports-for-consumption basis. Only reporters that publish duty figures have it (see get_catalog, "measures"); other reporters get the error measure_unavailable. A month the source reports no duty for is null with a reason (source_null, incomplete when some items below report none), never 0. Imports only. Use it for the effective duty rate of an import item and how it moved.

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": {
      "reporter": "<reporter>",
      "code": "<code>"
    },
    "name": "get_tariff_burden"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoOptional last month, YYYY-MM (or YYYY). Default: the latest published month.
codeYesRequired. HS or national code (2, 4, 6 or the national digits); dots are ignored.
fromNoOptional first month, YYYY-MM (or YYYY). Default: 24 months before the last.
limitNoOptional. Newest months shown (default 36).
countryNoOptional partner country (ISO alpha-2 code or name); omit for the world total.
reporterYesRequired. The reporting country whose customs statistics are read: "JP" (Japan), "US" (United States), "GB" (United Kingdom) or "EU" (European Union (27 member states)). Partners are the other countries.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it states the accounting basis (imports-for-consumption, calculated duty as published by the source agency), the exact metrics returned, and the null semantics (null with reason source_null, or incomplete when some items report none, never 0). It also discloses the failure mode measure_unavailable and the imports-only scope.

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 purpose and scope are front-loaded in the first clause, which is the right ordering. The middle sentence is a long run-on enumerating return fields and rate definitions, but with no output schema that content is load-bearing rather than 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?

For a six-parameter analytical tool with no output schema and no annotations, the description covers purpose, return values, rate formulas, null handling, error behavior and scope restriction. Nothing an agent needs to call it correctly or interpret results 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 description coverage is 100%, so the schema already documents every parameter including defaults, enums and limits. The description adds only marginal meaning — that omitting the partner country yields the world total and that the code may be HS or national — most of which is already in the schema text. Baseline 3 applies.

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 opening clause names a specific measure (duty on imports as a share of their value), its granularity (month by month, one HS/national code, optional partner), and explicitly excludes confusable concepts — 'not duty collected, and not the statutory tariff rate'. An agent can tell this apart from landed-cost or mirror-estimate tools 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 gives a concrete use case ('effective duty rate of an import item and how it moved') and a real prerequisite: only reporters publishing duty figures have data, others return the error measure_unavailable, with a pointer to get_catalog 'measures'. It stops short of naming alternatives to use instead when a reporter lacks duty data, so no explicit when-not routing.

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