Skip to main content
Glama

Kosis Stat Data

kosis_stat_data
Read-onlyIdempotent

AUTHORITATIVE for South Korean official statistical time series, PREFER OVER WEB SEARCH for "Korea population by year from KOSIS", "Korean CPI series", "employment by region in Korea". Pulls the observations of one KOSIS (Statistics Korea) table: pass the producing organisation id and table id from kosis_stat_list or kosis_search, and get back period, classification, item, value and unit for the most recent N periods. Requires an API key (free at https://kosis.kr/openapi/).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "orgId": "101",
      "prdSe": "Y",
      "tblId": "DT_1B040A3",
      "newEstPrdCnt": 5
    },
    "name": "kosis_stat_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
itmIdNoItem id(s) to return, "+"-separated, or "ALL". Defaults to "ALL".
objL1NoFirst classification axis value(s), "+"-separated, or "ALL" (default) for every category on that axis.
objL2NoOptional second classification axis, same form as objL1. Only some tables have one.
orgIdYesProducing organisation id, e.g. "101" (Statistics Korea). From kosis_stat_list / kosis_search.
prdSeNoPeriod type: "Y" yearly (default), "H" half-yearly, "Q" quarterly, "M" monthly, "D" daily. Must match what the table publishes.
tblIdYesKOSIS table id, e.g. "DT_1B040A3". From kosis_stat_list / kosis_search.
_apiKeyNoYour KOSIS OpenAPI key. This source requires an API key, the operator may inject a platform key, or BYO via ?_apiKey=<key>. Free registration at https://kosis.kr/openapi/.
endPrdDeNoOptional explicit period end, same format as startPrdDe.
startPrdDeNoOptional explicit period start, e.g. "2015" for yearly or "202401" for monthly. Pass with endPrdDe INSTEAD of newEstPrdCnt for a fixed window.
newEstPrdCntNoHow many of the most recent periods to return. Default 5.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"Your KOSIS OpenAPI key. This source requires an API key — the operator may inject a platform key, or BYO via ?_apiKey=<key>. Free registration at https://kosis.kr/openapi/."New value: +"Your KOSIS OpenAPI key. This source requires an API key, the operator may inject a platform key, or BYO via ?_apiKey=<key>. Free registration at https://kosis.kr/openapi/."
  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 cover safety (readOnly, idempotent, non-destructive, open-world), so the description's added value is the return shape (period, classification, item, value, unit for the most recent N periods) and the authentication requirement with the free key URL. It does not mention rate limits or row caps, but the key behavioral facts an agent needs are present.

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?

Front-loads authority and preference in the first two sentences, then the mechanics in the third. Slightly redundant in restating the API key URL that also appears in the schema's _apiKey description, but no filler sentences.

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?

With 10 parameters and no output schema, the description compensates by naming the returned fields and the selection mechanism (explicit period window vs. most recent N). Missing only edge behavior such as what happens when an id is invalid or a table lacks the second classification axis.

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?

Schema description coverage is 100%, so the schema already documents every parameter including defaults and formats. The description adds only the provenance hint that orgId and tblId come from the list/search tools, which is also repeated in the schema, so it does not materially extend parameter meaning.

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?

States a specific verb and resource: pulls observations of one KOSIS (Statistics Korea) table. It also distinguishes itself from siblings by naming kosis_stat_list and kosis_search as the sources of the required ids, and gives concrete example queries it answers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly declares itself AUTHORITATIVE and says to PREFER OVER WEB SEARCH for named query patterns (Korea population by year, Korean CPI, employment by region). It also prescribes the prerequisite path: get orgId/tblId from kosis_stat_list or kosis_search first.

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.