Skip to main content
Glama

TradeStats - customs trade statistics

get_transport_mode

How an item arrives or leaves by method of transport, month by month: the value, the share of the total, the shipping weight and the value per kilogram of each mode (vessel, air, other), the change of the share against the same month a year earlier in percentage points, and containerized vessel shipments shown as part of vessel (part_of, not added again). The three shares of vessel, air and other add up to 1. Only reporters that publish transport-mode figures have it (see get_catalog, "measures" and "breakdowns"); other reporters get the error measure_unavailable. The shipping weight is the source's weight of the mode, not the item quantity. A null figure has a reason; it is not zero. Use it for how the mix of vessel, air and other transport changed.

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>",
      "flow": "<flow>",
      "code": "<code>"
    },
    "name": "get_transport_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoOptional last month, YYYY-MM (or YYYY). Default: the latest published month.
codeYesRequired. HS or national code; dots are ignored.
flowYesRequired. "import" (goods entering the reporting country) or "export" (goods leaving it); there is no combined view: "both" does not exist. For a comparison across countries use compare_countries, for exports minus imports use get_balance.
fromNoOptional first month, YYYY-MM (or YYYY).
limitNoOptional. Newest months shown (default 12).
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
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 well: the three shares sum to 1, containerized vessel appears as part_of vessel and must not be added again, weight is the source's mode weight rather than item quantity, and nulls have a reason rather than meaning zero. It also discloses the specific error returned for unsupported reporters. This is exactly the kind of semantic and failure-mode context annotations would otherwise supply.

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?

It is front-loaded with the resource and dimension, and nearly every clause carries substantive meaning (shares summing to 1, part_of handling, null semantics, error case). The opening sentence is long and clause-heavy, stacking five distinct measures plus a caveat, which slightly hurts scannability.

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 seven-parameter read tool with no annotations and no output schema, the description covers the return shape in detail and warns about the unsupported-reporter failure mode. Remaining gaps are minor, chiefly the unit/currency of value and weight and whether results are paginated, though period bounds and the limit are handled by the schema.

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 baseline is 3; the schema already documents reporter, flow, code, from/to, limit, and country. The description adds no parameter-level detail such as unit or currency of the 'value' figure, and the flow alternatives (compare_countries, get_balance) live in the schema rather than the description. Its contribution beyond structured fields is mostly about the returned measures.

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?

The description states a specific resource and dimension: transport-mode breakdown (vessel, air, other) with value, share, weight, value-per-kg, and year-over-year share change, month by month. It closes with a scoping statement, 'Use it for how the mix of vessel, air and other transport changed.' It stops short of naming a sibling tool it must not be confused with, so it is clear but not sibling-differentiated.

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 an explicit eligibility rule: only reporters that publish transport-mode figures have it, and others return measure_unavailable, with a pointer to get_catalog 'measures' and 'breakdowns' to check. The final sentence frames the intended question. It does not state when another tool is the better choice for adjacent questions, so it falls short of full when/when-not/alternatives guidance.

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