Skip to main content
Glama
seolcoding

korean-stat-mcp

by seolcoding

filter_statistics

Filter Korean statistical data by region, period, and item using a stored data ID or direct JSON input to retrieve targeted subsets.

Instructions

통계 데이터를 필터링합니다.

서버에 저장된 데이터(data_id) 또는 직접 전달된 데이터(data_json)를 사용합니다. data_id 사용 시 LLM 컨텍스트에 데이터를 포함하지 않아 효율적입니다.

Args: regions: 포함할 지역 목록 (쉼표 구분) 예: "서울특별시,부산광역시" periods: 포함할 기간 목록 (쉼표 구분) 예: "2022,2023" items: 포함할 항목 목록 (쉼표 구분) 예: "인구수,세대수" format: 응답 형식 ("summary" 또는 "raw") data_id: 저장된 데이터 ID (get_statistics_data 결과에서 확인) data_json: KOSIS 데이터 JSON 문자열 (data_id 없을 때 사용)

Returns: JSON 문자열: 필터링된 데이터 (summary 형식이면 요약 포함)

Example: # 권장: data_id 사용 (서버에서 파일 읽음) >>> filter_statistics(regions="서울특별시,부산광역시", data_id="20231213_abc12345")

# 대안: data_json 직접 전달
>>> filter_statistics(regions="서울특별시,부산광역시", data_json=data)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsNo
formatNosummary
data_idNo
periodsNo
regionsNo
data_jsonNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Describes that data_id reads stored data without including it in context, and returns a JSON string (with optional summary). No annotations exist, so description carries the burden; it adequately discloses the tool's read-only, filtering nature.

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

Conciseness4/5

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

Well-structured with Args section and example. Slightly verbose but each sentence adds value. Could be more concise, but effective.

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?

Covers both data sources, all parameters, return format, and an example. Missing details on error handling or edge cases, but sufficient for a filtering tool with output schema.

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?

With 0% schema description coverage, the description fully compensates by explaining each parameter: regions, periods, items, format (enumeration of 'summary'/'raw'), data_id (source), and data_json (alternative source). Examples clarify usage.

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 filters statistics data and explains two modes (data_id vs data_json). It does not explicitly differentiate from sibling tools like search_statistics or aggregate_statistics, but the purpose is clear.

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?

Provides guidance on when to use data_id (efficient, avoids LLM context) vs data_json. Includes an example. However, lacks comparison with alternative sibling tools for filtering or searching.

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/seolcoding/korean-stat-mcp'

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