Skip to main content
Glama

Japan Trade Statistics (customs data)

Get item summary

get_item_summary
Read-onlyIdempotent

One call for an item overview: last-12-month value with YoY and 3-year change, main partners and their growth, growing and declining partners, new markets, seasonality, yearly trend, concentration and a one-line summary. Use this first for questions about an item. / 品目の全体像を1回で返します(直近12か月の金額と前年比・3年前比、主な相手国と伸び、伸びた国・減った国、新しい市場、季節の波、年ごとの推移、集中度、1行の要約)。品目について聞かれたら、まずこれを使います。

Input Schema

NameRequiredDescriptionDefault
codeYes統計品目番号(9桁・6桁・4桁)か類(2桁)・部の番号。分からなければ search_items で探す / Statistical code (9, 6 or 4 digits) or chapter (2 digits) or section; use search_items to find it
flowYesexport=輸出、import=輸入 / export or import
langNo答えの言葉(ja=日本語・既定、en=英語) / Response language (ja default, en)
levelNo区切り(省略時はコードの桁数で判断) / Level (inferred from the code length if omitted)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / code / description
      Added value: +"統計品目番号(9桁・6桁・4桁)か類(2桁)・部の番号。分からなければ search_items で探す / Statistical code (9, 6 or 4 digits) or chapter (2 digits) or section; use search_items to find it"
    • addedInput schema / properties / lang / description
      Added value: +"答えの言葉(ja=日本語・既定、en=英語) / Response language (ja default, en)"
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is fully covered. The description adds real value on top by disclosing the breadth of the computed output (YoY, 3-year change, growing/declining partners, concentration), which tells the agent this is an expensive aggregated read rather than a raw lookup. It does not mention response size limits or the currency/unit of the values, so it stops short of 5.

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 English half is well front-loaded: the core purpose and the 'use first' directive are stated before the content list. The structure costs points because the entire text is duplicated in Japanese, roughly halving information density, and the long mid-sentence inventory of outputs could be tightened.

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?

With no output schema, the description carries the burden of describing return values, and it does so thoroughly by naming every component of the payload. The remaining gap is that it never states the unit/currency of the monetary values or the approximate shape of the response (e.g., whether partners are ranked or capped), which matters for a multi-metric aggregation tool.

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% and three of four parameters carry enums with descriptions, so the schema does the heavy lifting. The description adds nothing about parameter behavior — notably it does not clarify how `level` interacts with the code length inference or what changing `lang` affects beyond the schema's own note. 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 description opens with a specific verb+resource framing ("One call for an item overview") and then enumerates the exact contents returned: 12-month value with YoY and 3-year change, partners and their growth, new markets, seasonality, yearly trend, concentration, and a one-line summary. This enumeration clearly distinguishes it from the narrower siblings (get_partners, get_seasonality, get_series) by positioning it as the aggregated overview.

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 routing rule twice ("Use this first for questions about an item" / "品目について聞かれたら、まずこれを使います"), which is strong first-choice guidance. However, it never states when NOT to use it — e.g., that get_series should be used for full time series or get_partners for partner-level depth — so the agent must infer the boundary from the sibling names.

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