Skip to main content
Glama

TradeStats - customs trade statistics

get_landed_cost

What it costs to bring imports in, month by month: the general import value, the freight and insurance charges, the CIF value, the charges as a share of the value and the CIF value as a share of the general value. Imports only. Only reporters that publish charges have it (see get_catalog, "measures"); other reporters get the error measure_unavailable. A ratio without a usable denominator or figure is null, never 0. Use it for freight, insurance and CIF against the import value.

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_landed_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoOptional last month, YYYY-MM (or YYYY). Default: the latest published month.
codeYesRequired. HS or national code; dots are ignored.
fromNoOptional first month, YYYY-MM (or YYYY).
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.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and delivers key behavior: imports-only coverage, a specific failure mode (error measure_unavailable), and the null-instead-of-zero rule for ratios with unusable denominators. It omits units/currency and ordering of returned months, which matters for a numeric series tool.

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: what the tool returns, then the imports-only constraint, then the availability/error rule, then the recommended use. The enumeration of returned measures is long but earns its place because there is no output schema. Minor redundancy in spelling out both ratio definitions in full prose.

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?

For a 6-parameter, no-annotations, no-output-schema tool, the description covers return contents, coverage limits, error behavior and null semantics — enough to call it safely. Missing pieces are units of value and default/time-range behavior, which the schema only partly covers.

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 parameters are already documented and the baseline is 3. The description adds contextual meaning about monthly granularity and reporter coverage but no syntax or format detail beyond what the schema fields already state.

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?

Names a specific resource (import landed cost: general import value, freight and insurance, CIF value, plus two derived ratios) with an explicit verb-free but precise scope, and the 'Imports only' line separates it from any broader trade-value tools. An agent can tell exactly what data comes back 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?

Gives a positive use case ('freight, insurance and CIF against the import value') and a prerequisite with a routing pointer: only reporters that publish charges have it, check get_catalog under 'measures', otherwise expect measure_unavailable. It stops short of stating when to prefer a contrasting sibling, but the coverage-condition guidance is concrete.

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