Skip to main content
Glama

datagokr — 공공데이터포털 검색을 더 쉽게 (find data.go.kr datasets easily)

첫 행 미리보기 (Preview rows)

get_preview
Read-onlyIdempotent

[공공데이터포털 검색 (datagokr)] 실제 첫 행 보기. STD_FILE·PORTAL_FILE(첨부 있으면)은 키 없이 첫 행을 줍니다. PORTAL_FILE 첨부 미리보기 실패 시 API 대체 조회에 본인 X-DataGoKr-Key가 필요할 수 있음(키는 반환·저장 안 함). 서울·경기의 확인된 공개 경로는 키 없이 최대5행. 그 밖의 OPEN_API→request_templates, LINK→url, STD 하위행→parent_id. Preview standard data and portal attachments without a key. API fallback may require the caller's X-DataGoKr-Key. Keys are never returned or stored. API/link/subset responses give access guidance. 반환: ok(true=처리됨, false=포털이 지금 응답 안 함→잠시 후 재시도), data{columns, rows}(rows는 columns 순서의 값 배열, 최대 50컬럼·20행), total, truncated, source_note, 또는 안내 필드(url/parent_id/request_templates/message/page_url/access_guide). 지역 API가 확인되면 service_name/request_format도 반환. data가 있으면 실제 행을 받은 것. ok=false: retry later. data means actual rows, as value arrays in columns order (up to 50 columns/20 rows). 삭제된 ID면 deleted·alternatives가 온다.

Input Schema

NameRequiredDescriptionDefault
nNo
dataset_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, openWorld, non-destructive), the description discloses authentication behavior (the caller's X-DataGoKr-Key may be needed for API fallback), a privacy guarantee (keys are never returned or stored), result caps (50 columns / 20 rows, 5 rows for Seoul/Gyeonggi public paths), and failure semantics (ok=false means the portal is not responding right now, retry later; deleted IDs return deleted and alternatives). That is genuine behavioral context the annotations cannot convey.

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

Conciseness3/5

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

The purpose is front-loaded in the first sentence, which is good. However, the Korean and English halves largely duplicate each other (including a repeated explanation of data/columns/rows and ok=false), which roughly doubles the length without adding information, and the return-value prose is redundant given an output schema exists.

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?

For a tool whose behavior branches across many dataset types, this description covers the important branches, the key/auth caveat, the row/column caps, and error recovery. Since an output schema exists, the detailed return-field walkthrough is surplus rather than necessary, but nothing critical to calling it correctly appears to be missing.

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 coverage is 0%, so the description carries the full burden for the two parameters. It implies what dataset_id means through references to deleted IDs and per-type routing, and it hints at row-count limits ('최대5행', '최대 20행'), but it never explains that 'n' is the requested row count or what its default of 5 governs relative to those caps. Partial compensation only.

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 opening sentence pairs a specific verb ('실제 첫 행 보기 / Preview') with a specific resource (first rows of datagokr datasets) and immediately scopes it by source type (STD_FILE, PORTAL_FILE, OPEN_API, LINK, STD child rows). That is enough to separate it from siblings like search, record, or download_url, though none of those siblings are named explicitly as alternatives.

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?

The description gives conditional routing rules: OPEN_API datasets return request_templates, LINK types return url, STD child rows need parent_id, and a failed PORTAL_FILE attachment preview may fall back to an API call requiring the caller's own key. It also says what to do on ok=false (retry later) and on deleted IDs (deleted plus alternatives). What is missing is an explicit statement of when to prefer a sibling tool over this one.

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.