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).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNo
dataset_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior5/5

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

Annotations only cover read-only/idempotent/open-world; the description goes well beyond by disclosing auth behavior (caller's own X-DataGoKr-Key may be needed, keys are never returned or stored), failure semantics (ok=false means retry later), and hard limits (max 50 columns/20 rows; Seoul/Gyeonggi public paths max 5 rows without a key). This is exactly the behavioral context annotations cannot carry.

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

Conciseness2/5

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

Purpose is front-loaded, but the entry is bloated: every statement is repeated in Korean and English, and a long enumeration of return fields (columns, rows, total, truncated, source_note, page_url, access_guide) duplicates the output schema that already exists. Significant redundancy.

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?

Behaviorally rich for a complex multi-source preview tool, but it over-invests in return-value narration that the output schema already supplies while leaving both input parameters undocumented. Coverage is uneven rather than incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, yet it never explains `dataset_id` or the `n` row-count parameter by name. Row limits are mentioned incidentally (5/20 rows) but the link to `n` is never made explicit.

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?

States a specific verb+resource: view the actual first rows of a public-data-portal dataset, split by STD_FILE/PORTAL_FILE types. Clear enough to distinguish from a full download or field listing, though it never names its siblings (download_url, fields, record, search, show) to sharpen the boundary.

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

Usage Guidelines3/5

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

Gives conditional routing hints ('OPEN_API→request_templates, LINK→url, STD 하위행→parent_id') and notes the key requirement for API fallback, which is useful. But it never says when to prefer get_preview over record/show/search, so the when-to-use guidance is only implied.

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.