Skip to main content
Glama

Japan Trade Statistics (customs data)

Get seasonality

get_seasonality
Read-onlyIdempotent

Seasonality: monthly shares over the last three full years with year-to-year range, peak and low months, for the world and the top 5 partners (or one country). / 季節の波を返します。直近の丸3年の月ごとの割合と年によるばらつき、山の月・谷の月。全世界と上位5か国(country を指定すればその国)。

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)
countryNo国コード(税関の3桁。000=全世界) / Country code (3-digit customs code, 000 = world)
min_valueNo下限(ドル、直近12か月か前の12か月。既定 1,000,000) / Minimum value in USD (last 12 months or the 12 before; default 1,000,000)

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.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds genuinely new behavioral context: the fixed three-year lookback window, the default top-5-partner aggregation versus single-country restriction, and the derived metrics returned (yoy range, peak/low months). It stops short of explaining the min_value filtering effect on which partners appear, or any truncation behavior.

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 sentence is front-loaded and dense with the key facts — scope, metrics, and aggregation default — with no filler. The full Japanese restatement doubles the length, which is defensible for a bilingual server but is still redundant text for a single agent.

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?

With no output schema, the description carries the burden of describing return values and does so concretely (monthly shares, yoy range, peak/low months, partner breakdown). Combined with the fully documented six-parameter schema, an agent has enough to call this correctly and interpret the result without further guessing.

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?

With 100% schema description coverage the baseline is 3, and the description earns a bump by clarifying the aggregation default that the schema does not encode: without `country` the result aggregates the world plus the top 5 partners, while supplying `country` returns just that country. That is real added meaning beyond the property descriptions.

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 names a specific resource (seasonality) and spells out exactly what it computes: monthly shares over the last three full years, the year-to-year range, peak and low months, for the world and the top 5 partners or a single country. This is clearly distinguishable from siblings like get_series and get_partners, which return raw series or partner lists rather than a derived seasonality profile.

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

Usage Guidelines3/5

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

It implies when the tool is appropriate by describing the shape of the answer (three-year monthly shares, peak/trough) and notes that passing `country` narrows to one country instead of the default top-5 set. However, it never states when to prefer this over get_series or get_item_summary, nor does it mention prerequisites or exclusions, leaving the routing decision to inference.

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