Skip to main content
Glama
rubatoyd

io.github.rubatoyd/kosis-openapi-mcp

by rubatoyd

kosis_indicator_search

Read-only

Search KOSIS key indicators by name or ID and retrieve values directly, with pagination support.

Instructions

주요지표를 이름으로 찾는다 — 통계표와는 다른 계열이다.

KOSIS 는 통계표(TBL_ID) 말고 지표(statJipyoId) 계열을 따로 둔다(합계출산율, 추계인구 …). 표 구조를 몰라도 바로 값을 볼 수 있는 대신, 지표로 큐레이션된 것만 있다. 표 단위로 파고들 거라면 kosis_search 를 쓴다.

🔴 이 계열에만 페이징이 있고 안 주면 서버가 10건에서 자른다 — 이 도구가 끝까지 넘겨 전수를 회수한다(meta.pages 에 몇 쪽을 읽었는지 실린다).

Args: name: 지표명(예: '출산율', '인구'). jipyo_id: 지표ID 로 직접 찾을 때(둘 중 하나는 필요). max_records: 돌려줄 최대 건수.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
jipyo_idNo
max_recordsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

The readOnlyHint and openWorldHint annotations already signal safety, and the description adds meaningful behavior: it auto-paginates through all pages and reports pages read in meta.pages. No side effects are claimed, so there is no contradiction with the annotations.

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?

The description is compact and well structured, with a purpose statement, a usage distinction, a pagination warning, and an Args list. It is slightly repetitive in emphasizing the indicator-vs-table distinction, but all sentences carry useful information.

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?

The description covers key usage context and pagination, but with no output schema it does not describe the returned item fields or structure beyond meta.pages. An agent would still need to infer what an indicator result object contains and how to use the returned IDs with related tools.

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?

Although the schema has no descriptions, the Args section explains all three parameters: name with examples, jipyo_id as a direct-ID alternative, and max_records as the maximum number of returned items. It also clarifies that either name or jipyo_id should be supplied, which is important operational guidance.

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 the tool's purpose: finding major KOSIS indicators by name, and explicitly distinguishes this from the statistical-table series. It also names the sibling tool kosis_search for table-oriented searches, so an agent can disambiguate immediately.

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?

It gives concrete guidance: use kosis_search instead when working at the table level, and explains that indicator results are curated. It also describes pagination behavior, though it does not explicitly mention when to use kosis_indicator_data instead of this search tool.

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