Skip to main content
Glama

get_meta_info

Retrieve metadata for statistical tables from Japan's official government data portal, including classifications and time periods, using the table ID.

Instructions

統計表のメタ情報を取得する.

Args: stats_data_id: 統計表ID

Returns: メタ情報(分類事項、時間軸など)

Input Schema

NameRequiredDescriptionDefault
stats_data_idYes

Input Schema (JSON Schema)

{ "properties": { "stats_data_id": { "type": "string" } }, "required": [ "stats_data_id" ], "type": "object" }

Implementation Reference

  • The main handler function for the 'get_meta_info' tool. It takes a stats_data_id parameter, constructs API params, calls _make_request to the e-Stat 'json/getMetaInfo' endpoint, and returns the response as dict.
    async def get_meta_info(stats_data_id: str) -> dict: """統計表のメタ情報を取得する. Args: stats_data_id: 統計表ID Returns: メタ情報(分類事項、時間軸など) """ params = { "lang": "J", "statsDataId": stats_data_id, } response = await _make_request("json/getMetaInfo", params) return cast(dict[str, Any], response)
  • Registers the get_meta_info function as an MCP tool using the FastMCP mcp.tool() decorator.
    mcp.tool()(get_meta_info)
  • Imports the get_meta_info function from e_stats_mcp.tools for use in main.py.
    get_meta_info,
  • Re-exports get_meta_info from stats.py in tools/__init__.py.
    get_meta_info,

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