Skip to main content
Glama
Izyuusya
by Izyuusya

get_regional_data

Retrieves regional statistics for a specified area and stats table, returning formatted markdown tables with codes converted to readable names. Use to obtain or compare Japanese public data by region.

Instructions

指定した地域の統計データを取得し、整形して返す.

コード番号は自動的に人間が読める名称に変換される。

Args: stats_data_id: 統計表ID(search_statistics で取得) area: 地域名(例: "東京都")または地域コード(例: "13000") tab_code: 表章項目コード(特定の指標に絞り込む場合) time_code: 時間軸コード(特定の年に絞り込む場合) cat01_code: 分類事項01コード(特定のカテゴリに絞り込む場合) limit: 取得件数上限(デフォルト1000) summary: Trueの場合、最新時点の主要指標のみ返す(データ量を大幅に削減)

Returns: 整形済みの統計データ(マークダウンテーブル)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
areaYes
limitNo
summaryNo
tab_codeNo
time_codeNo
cat01_codeNo
stats_data_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that codes are automatically converted to human-readable names, returns a markdown table, and that the summary option reduces data volume. However, it does not mention whether the operation is read-only, any error handling, rate limits, or side effects, leaving gaps in behavioral transparency.

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

Conciseness5/5

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

The description is concise and well-structured: a brief purpose statement, a note about code conversion, an organized Args list with each parameter on its own line, and a Returns section. No redundant information, and the structure makes it easy to scan.

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?

Given the output schema exists, return values are covered. The description covers all parameters, mentions the summary behavior, and the prerequisite of search_statistics. However, it lacks guidance on when to use this tool vs siblings, and doesn't mention error scenarios or edge cases, leaving some contextual gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so the description must fully compensate. It explains every parameter: stats_data_id (from search_statistics), area (with examples), tab_code, time_code, cat01_code (filtering), limit (with default), and summary (with behavior). This is comprehensive and adds meaning beyond the bare schema.

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 clearly states the tool retrieves and formats regional statistics data, with a specific verb and resource. It also mentions code conversion. However, it does not explicitly differentiate itself from siblings like get_population or get_regional_profile, so the agent must infer which tool fits based on names.

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

Usage Guidelines2/5

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

The description mentions that stats_data_id is obtained from search_statistics, which implies a prerequisite. However, it provides no explicit guidance on when to use this tool versus alternatives, nor any exclusions. There is no statement like 'use this for general statistics' or 'for population-specific data, use get_population'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.