Skip to main content
Glama

KRDS 페이지 뼈대

get_page_scaffold

Generate a KRDS page scaffold to start building accessible government pages. Specify a pattern for complete templates or omit it for an empty skeleton.

Instructions

KRDS 페이지의 시작 골격을 반환한다. pattern을 지정하면 공식 KRDS 패턴 기반 완성 템플릿(접근성 교정 적용)을 주고, 미지정 시 빈 뼈대를 준다. 새 페이지를 만들 때 컴포넌트 조회보다 먼저 호출하라. 로그인·신청 등 정형 화면은 반드시 pattern을 사용하라 — 레이아웃을 직접 창작하지 않는 것이 KRDS 준수의 기본이다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNo주 언어 코드. 기본 "ko" (kwcag:7.1.1)
slotsNo패턴 슬롯 값 — 필수 슬롯 미입력 시 무엇을 채울지 안내만 반환한다
outputNo"parts"면 조각(head·header·main·footer·scripts)으로 나눠 준다 — 여러 화면이 공통부를 공유할 때(JSP include, 정적 사이트 공통 조각, 레이아웃 컴포넌트) 손으로 떼어 내지 말고 이것을 써라. 기본 "page"
logoSrcNo기관 로고 이미지 경로 — 킷 로고(CSS 배경)를 바꾸는 CSS를 헤더·푸터에 넣는다. 고대비 모드에도 같은 이미지를 쓴다
orgNameNo기관명 — withSiteChrome의 헤더·푸터 로고 대체 텍스트가 된다(로고는 CSS 배경이라 유일한 텍스트). 실제 기관명을 넣어라
patternNoKRDS 패턴 이름 (예: "login"). 정형 화면이면 지정하라 — 완성 구조를 반환한다
homeHrefNo로고 링크 — 기본 "/"
siteMenuNowithSiteChrome의 헤더 메뉴(1~3단계) — 주면 킷 데모 메뉴(자리 문구 수십 개) 대신 이 트리로 데스크톱 메뉴와 모바일 전체메뉴를 만든다. 하위가 없는 항목은 href 필수, 하위가 있는 항목은 여닫는 버튼이 된다. 예: [{label:"민원",children:[{label:"민원 신청",href:"/apply"}]},{label:"알림",href:"/notice"}]
assetBaseNo킷 자산 경로 — 기본 "node_modules/krds-uiux". 킷을 복사·CDN으로 서빙하면 그 경로
loginHrefNo있으면 헤더에 로그인 링크를 둔다 (siteMenu와 함께)
pageTitleYes페이지 제목 — <title>과 h1에 들어간다 (kwcag:6.4.2). 비어있으면 안 된다
withCarouselNo캐러셀 사용 예정이면 true — swiper 번들 스크립트 포함
withSiteChromeNotrue면 사이트 공통부(공식 배너·헤더·푸터·운영기관 식별자)를 도구가 올바른 랜드마크 구조로 조립해 포함한다 — 직접 조립보다 이 옵션을 권장. siteMenu·orgName·logoSrc로 메뉴와 로고까지 만든다

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does disclose key traits: output differs drastically with vs without pattern, pattern templates come with accessibility corrections already applied, and missing required slots produce guidance rather than content. It does not state side-effect/idempotency profile or the exact return shape, but for a read-only generator the disclosed behavior is substantive.

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

Conciseness5/5

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

Four short sentences, front-loaded with the core behavior and then the mandatory rules. Every sentence carries a distinct instruction (what it returns, pattern vs no pattern, ordering vs component lookup, compliance rule); no filler.

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 13-parameter, nested-object tool with no output schema and no annotations, the description covers purpose, mode selection, and sequencing well. The remaining gap is the concrete return form (HTML string vs parts vs file, and how much the caller must post-process) — the `output` parameter implies it, but the description never states it directly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns above baseline by giving 'pattern' real semantic weight — that it switches the tool into official-template mode with accessibility fixes and is mandatory for standard screens. The other dozen parameters (withSiteChrome, siteMenu, slots, output, etc.) are left entirely to the schema, which is adequate given full coverage.

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 (returns the starting skeleton of a KRDS page) and immediately distinguishes the two output modes: pattern specified yields a complete accessible template, omitted yields an empty skeleton. It also positions itself relative to siblings by telling the agent to call it before component lookup, so an agent can tell it apart from get_component/list_components.

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?

Explicit sequencing (call before component lookup when building a new page) and an explicit when-not/alternative path (do not hand-craft layouts; use pattern for standard login/apply screens). Both the trigger and the prohibited behavior are stated, leaving nothing to inference.

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