Skip to main content
Glama

TradeStats - customs trade statistics

get_catalog

Call this first. Describes what the service holds: the reporters (JP, US, GB, EU) with their currency, national code level, and for import and export the first month and the latest published month; per reporter also source (the agency to name when you cite the data) and latest_month (that reporter's own latest published month; data_through, also given as common_latest_month, is only the latest month published by every reporter for BOTH flows, so a reporter can be ahead); the HS levels, the datasets, how to choose between the tools (get_catalog, then search_items, then get_item_summary, then the specific tools), and the access limits that apply to you (history window, ranking size, whether an API key is in use). Takes no arguments. It also lists null_reasons, the fixed words used in _unavailable_reason fields. Use it for "what period does the data cover?" and "what is the latest month?"; it has no product figures, so for a product use get_item_summary. Customs trade statistics of several reporting countries (Japan JP, United States US, United Kingdom GB, European Union (27 member states) EU) from their official customs data, monthly, by HS product code and partner country. value fields are in the reporter's currency (currency: JPY, USD, GBP or EUR) and _usd fields in US dollars; ratios and shares are fractions precomputed from the full dataset; every answer carries reporter, currency, data_through (latest published month), the reporter's attribution, and notes. Maximum 200 rows per answer. Numbers in answers are rounded once, at the end: amounts (value, _usd, v12 ...) to 2 decimals, quantity and kg to 3, unit prices (unit_price) to 4 significant digits below 100 and 2 decimals from 100 up (never rounded to 0), and ratios, shares and growth rates (yoy, mom, share*, hhi*, chg3y) to 6; whole numbers and null are left as they are. A null quantity, kg or unit price comes with a *_unavailable_reason (mixed_units, weight_only, no_quantity_in_source, no_weight_in_source, source_gap, withheld; get_catalog lists them in null_reasons), and a missing seasonality with seasonality_unavailable_reason. The national level (JP 9-digit, US 10-digit, GB 8-digit, EU 8-digit codes) differs between reporters and between import and export; HS6, HS4 and HS2 are shared. Import and export are separate datasets, so reporter and flow are always required for product figures. Rankings (limit) are limited to the top 20 without an API key (more is refused with out_of_scope) and to 100 with a free API key. Start with get_catalog (coverage, your access limits, which tool to use) or, when you already know the code, get_item_summary for a one-call overview of a product.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_catalog"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does so: it states the tool takes no arguments, discloses the caller's access limits (history window, ranking size capped at 20 without an API key, 100 with a free key, refusal with out_of_scope), the 200-row answer cap, and the precomputed/rounded nature of numbers. It also discloses what is NOT returned ('no product figures') and the null_reasons vocabulary exposed in *_unavailable_reason fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead 'Call this first' is well front-loaded, but the remainder is a single sprawling paragraph of semicolon-chained clauses. Large blocks are irrelevant to selecting or invoking a zero-argument catalog call: rounding rules for value, *_usd, quantity, kg and unit_price, the four-significant-digit unit-price rule, national code digit counts per reporter, and the JPY/USD/GBP/EUR field conventions all belong to the product tools.

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?

There is no output schema, yet the description fully specifies what the response contains: per-reporter currency, national code level, first and latest published month, source attribution, latest_month versus data_through/common_latest_month semantics, HS levels, datasets, and null_reasons. An agent can call it and interpret the result without further documentation.

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?

The tool takes zero parameters and the schema is empty, so there is nothing for the description to disambiguate. The statement 'Takes no arguments' is the only relevant note, which matches the baseline for a parameterless tool.

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 'Call this first. Describes what the service holds' names a concrete resource (service coverage metadata) and enumerates its contents: reporters with currency and national code level, import/export month ranges, HS levels, datasets, tool-selection guidance, and the caller's access limits. It also explicitly separates itself from siblings, noting it 'has no product figures, so for a product use get_item_summary.'

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

Usage Guidelines5/5

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

Usage is stated as an imperative sequence: 'Call this first' and 'Start with get_catalog ... or, when you already know the code, get_item_summary.' It names the exact questions it answers ('what period does the data cover?', 'what is the latest month?') and routes product questions elsewhere, plus it embeds an ordered tool chain (get_catalog, then search_items, then get_item_summary).

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