search_stats_by_keyword
Search Japan's official government statistics by keyword to find census data, economic indicators, and demographic information across 17 statistical fields.
Instructions
キーワードで統計情報を検索する.
より簡単に統計表を検索するためのヘルパーツール。
Args: keyword: 検索キーワード(例: "人口", "GDP", "雇用") limit: 取得件数(デフォルト20件)
Returns: 検索結果のリスト
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | Yes | ||
| limit | No |
Implementation Reference
- e_stats_mcp/tools/stats.py:325-337 (handler)The main handler function for the 'search_stats_by_keyword' tool. It takes a keyword and optional limit, and delegates to get_stats_list to perform the search.async def search_stats_by_keyword(keyword: str, limit: int = 20) -> dict: """キーワードで統計情報を検索する. より簡単に統計表を検索するためのヘルパーツール。 Args: keyword: 検索キーワード(例: "人口", "GDP", "雇用") limit: 取得件数(デフォルト20件) Returns: 検索結果のリスト """ return await get_stats_list(search_word=keyword, limit=limit)
- e_stats_mcp/main.py:53-53 (registration)Registration of the 'search_stats_by_keyword' tool using the FastMCP tool decorator.mcp.tool()(search_stats_by_keyword)
- e_stats_mcp/main.py:24-25 (registration)Import of the search_stats_by_keyword function in main.py for registration.search_stats_by_keyword, )
- e_stats_mcp/tools/__init__.py:28-28 (helper)Re-export of the tool in tools/__init__.py __all__ list."search_stats_by_keyword",