Skip to main content
Glama

Japan Trade Statistics (customs data)

Get item

get_item
Read-onlyIdempotent

Item details: parent and child levels, unit, and the months covered. Use this to navigate the hierarchy. For an item's figures, partners and growth, use get_item_summary; use this to navigate parent and child levels. / 品目の詳細(上位・下位の区切り、単位、データのある期間)を返します。下位の品目をたどるときに使います。品目の金額・相手国・伸びなどの全体像は get_item_summary を使います。こちらは区切りの上下をたどるときに。

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. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive behavior, so the safety burden is lifted. The description adds real behavioral context by disclosing the payload's scope (hierarchy boundaries, unit, covered period) versus quantitative figures, which steers correct tool choice. It stops short of stating behavior for unknown/invalid codes or whether child listings are exhaustive.

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

Conciseness3/5

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

The substantive content is front-loaded and short, but the English half repeats the navigation clause twice ('Use this to navigate the hierarchy' / 'use this to navigate parent and child levels'), and the entire text is then duplicated in Japanese. The bilingual pairing is defensible given the lang parameter, yet the redundant clause wastes attention.

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 4-parameter read tool with no output schema, the description still sketches the return payload (hierarchy levels, unit, months covered) and routes to get_item_summary for figures. Only edge behavior (invalid code, missing level) is left unaddressed, which the schema partially 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 description coverage is 100%, with enum descriptions for flow, lang and level, and the code parameter already points to search_items for lookup. The description adds nothing beyond the schema about how code, flow or level interact (e.g., level inference from code length is only in the schema). Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific resource and its returned content: 'Item details: parent and child levels, unit, and the months covered.' It also explicitly separates itself from the sibling get_item_summary ('For an item's figures, partners and growth, use get_item_summary'), so an agent can distinguish the two without opening either schema.

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?

Gives both the when ('use this to navigate parent and child levels') and the when-not with a named alternative ('For an item's figures, partners and growth, use get_item_summary'). The routing decision is fully specified rather than implied.

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