Skip to main content
Glama

get_stats_data

Retrieve statistical data from Japan's official government portal by specifying table IDs and filtering parameters like categories, time periods, and regions.

Instructions

統計データを取得する.

Args: stats_data_id: 統計表ID cdcat01: 分類事項01のコード(絞り込み用) cdcat02: 分類事項02のコード(絞り込み用) cdcat03: 分類事項03のコード(絞り込み用) lvcat01-lvcat15: 分類事項の階層レベル(lvCatXX) cdtime: 時間軸コード(絞り込み用) cdarea: 地域コード(絞り込み用) start_position: データ取得開始位置 section_header_flg: セクションヘッダ出力フラグ(Trueで有効) cnt_get_flg: 件数取得フラグ(Trueで有効) limit: 取得件数(デフォルト100件)

Returns: 統計データ

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stats_data_idYes
cdcat01No
cdcat02No
cdcat03No
lvcat01No
lvcat02No
lvcat03No
lvcat04No
lvcat05No
lvcat06No
lvcat07No
lvcat08No
lvcat09No
lvcat10No
lvcat11No
lvcat12No
lvcat13No
lvcat14No
lvcat15No
cdtimeNo
cdareaNo
start_positionNo
section_header_flgNo
cnt_get_flgNo
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions that the tool 'gets' data (implying read-only), but doesn't address authentication requirements, rate limits, error conditions, or what happens when parameters are omitted. The description provides minimal behavioral context beyond the basic operation.

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 description is structured with a brief purpose statement followed by organized parameter documentation. However, the initial purpose statement is overly brief and uninformative. The parameter documentation is comprehensive but could be more efficiently organized, especially for the repetitive lvcat parameters. The structure is adequate but not optimal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (25 parameters, no annotations, but has output schema), the description provides good parameter documentation but lacks critical context about usage guidelines, behavioral traits, and differentiation from sibling tools. The presence of an output schema means the description doesn't need to explain return values, but other gaps remain significant for a tool of this complexity.

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 0% schema description coverage and 25 parameters, the description provides substantial parameter documentation in Japanese, explaining each parameter's purpose (e.g., '統計表ID', '絞り込み用' for filtering, 'データ取得開始位置', default values). This compensates well for the complete lack of schema descriptions, though some parameters like the lvcat series could use more explanation about their hierarchical relationships.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states '統計データを取得する' (get statistical data), which is a tautology that essentially restates the tool name 'get_stats_data'. It doesn't specify what kind of statistical data, from what source, or how it differs from sibling tools like 'get_stats_data_bulk' or 'get_stats_data_csv'. The purpose is vague and doesn't provide meaningful differentiation.

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?

No guidance is provided about when to use this tool versus alternatives. With multiple sibling tools available (get_stats_data_bulk, get_stats_data_csv, get_stats_list, etc.), the description offers no context about when this specific retrieval method is appropriate versus bulk operations, CSV exports, or other statistical data tools. The agent receives no usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/koizumikento/e-stats-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server