Skip to main content
Glama

e-Stat 統計表メタ情報取得 / e-Stat Statistics Table Meta Info

e-stat-get-meta-info
Read-only

e-stat-get-stats-list ツールで取得した統計表IDに基づいて、メタ情報(分類項目、地域区分、時間軸、表章事項などの構造情報)を取得する。ここで得た分類ID・項目コードは e-stat-get-stats-data ツールの絞り込み引数(cdCat01, cdArea など)に指定する。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNo言語 (J: 日本語, E: 英語)
classIdNo項目を取得する分類事項を限定する(例: cat01, area, time, tab)。指定しない分類は件数のみ返す
classLimitNo分類ごとに返す項目数の上限(省略時は100件。全項目数以上を指定すると全量取得できる)
statsDataIdYes統計表情報取得ツール(e-stat-get-stats-list)で取得した統計表ID
classNameFilterNo分類項目名の部分一致フィルタ(例: 東京)。該当する項目のみ返す
explanationGetFlgNo解説情報有無

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteYes項目の省略が発生した場合の案内
tableYes統計表の基本情報
classificationsYes分類事項(表章事項・地域・時間軸・分類)の一覧

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed4 schema fields changed
    • addedInput schema / properties / classId
      Added value: +{
      +  "description": "項目を取得する分類事項を限定する(例: cat01, area, time, tab)。指定しない分類は件数のみ返す",
      +  "type": "string"
      +}
    • addedInput schema / properties / classLimit
      Added value: +{
      +  "default": 100,
      +  "description": "分類ごとに返す項目数の上限(省略時は100件。全項目数以上を指定すると全量取得できる)",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / classNameFilter
      Added value: +{
      +  "description": "分類項目名の部分一致フィルタ(例: 東京)。該当する項目のみ返す",
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "classifications": {
      +      "description": "分類事項(表章事項・地域・時間軸・分類)の一覧",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "id": {
      +            "description": "分類ID(tab / area / time / cat01 など)。e-stat-get-stats-data では cd を付けた引数(cat01 → cdCat01)で絞り込みに使う",
      +            "type": "string"
      +          },
      +          "items": {
      +            "description": "分類項目の一覧",
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "code": {
      +                  "description": "項目コード。e-stat-get-stats-data の絞り込み引数に指定する値",
      +                  "type": "string"
      +                },
      +                "level": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "階層レベル"
      +                },
      +                "name": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "項目名"
      +                },
      +                "parentCode": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "親項目のコード"
      +                },
      +                "unit": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "単位"
      +                }
      +              },
      +              "required": [
      +                "code",
      +                "name",
      +                "level",
      +                "unit",
      +                "parentCode"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "name": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "分類名"
      +          },
      +          "returnedCount": {
      +            "description": "今回返した項目数",
      +            "type": "number"
      +          },
      +          "totalCount": {
      +            "description": "この分類の全項目数",
      +            "type": "number"
      +          },
      +          "truncated": {
      +            "description": "項目が省略されている場合 true。classId・classLimit・classNameFilter で絞り込み・全量取得ができる",
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name",
      +          "totalCount",
      +          "returnedCount",
      +          "truncated",
      +          "items"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "note": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "項目の省略が発生した場合の案内"
      +    },
      +    "table": {
      +      "additionalProperties": false,
      +      "description": "統計表の基本情報",
      +      "properties": {
      +        "collectArea": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "集計地域区分"
      +        },
      +        "cycle": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "提供周期"
      +        },
      +        "description": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "解説"
      +        },
      +        "govOrg": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "作成機関"
      +        },
      +        "mainCategory": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "統計大分野"
      +        },
      +        "openDate": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "公開日"
      +        },
      +        "overallTotalNumber": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "統計表の全データ件数(セル数)"
      +        },
      +        "statName": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "統計名(例: 人口推計)"
      +        },
      +        "statisticsName": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "提供統計名"
      +        },
      +        "statsDataId": {
      +          "description": "統計表ID",
      +          "type": "string"
      +        },
      +        "subCategory": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "統計小分野"
      +        },
      +        "surveyDate": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "調査年月"
      +        },
      +        "title": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "統計表題名"
      +        },
      +        "updatedDate": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "最終更新日"
      +        }
      +      },
      +      "required": [
      +        "statsDataId",
      +        "statName",
      +        "govOrg",
      +        "statisticsName",
      +        "title",
      +        "cycle",
      +        "surveyDate",
      +        "openDate",
      +        "collectArea",
      +        "mainCategory",
      +        "subCategory",
      +        "overallTotalNumber",
      +        "updatedDate",
      +        "description"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "table",
      +    "classifications",
      +    "note"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the read-only safety is covered. The description adds context about the types of metadata returned and how to use the results in subsequent data retrieval, which goes beyond the annotations without contradicting them.

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 two sentences, front-loaded with the primary purpose and followed by a clear workflow note. No redundant or extraneous content.

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?

Given the tool has an output schema and read-only annotations, the compact description is sufficient. It covers the typical usage path (from list to meta to data) and does not need to explain return values because the output schema exists.

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?

Input schema descriptions cover 100% of parameters with detailed explanations (e.g., classId examples, classLimit behavior, lang enum). The description itself does not add parameter-specific information, so the baseline of 3 for full schema coverage is appropriate.

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 clearly states it retrieves meta information (classification items, area, time axis, table presentation) for a stats table ID obtained from e-stat-get-stats-list. It distinguishes from siblings by naming both the source tool (e-stat-get-stats-list) and the downstream consumer (e-stat-get-stats-data), making its role in the workflow explicit.

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?

The description provides workflow context: use after getting a statsDataId from e-stat-get-stats-list and before fetching data with e-stat-get-stats-data. It implies when to use the tool but does not explicitly mention when not to use it or compare it with e-stat-get-data-catalog.

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.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool targets a distinct aspect: catalog metadata, statistical table metadata, and table listing. Their descriptions clarify the workflow (catalog -> list -> meta), so there is no ambiguity about which tool to use.

Naming Consistency5/5

All tool names follow the consistent pattern e-stat-get-<resource>, using snake_case and a clear verb-noun structure. This makes the set predictable and easy to navigate.

Tool Count3/5

With only 3 tools, the server is on the smaller side but not necessarily too few for a focused purpose. However, the descriptions refer to a missing e-stat-get-stats-data tool, suggesting the count is incomplete for the intended workflow.

Completeness1/5

The server lacks a tool to actually retrieve statistical data (e-stat-get-stats-data), which is explicitly referenced in two existing tools. This is a severe gap that prevents the server from fulfilling its core purpose.

Resources