Skip to main content
Glama

KRDS 컴포넌트 공급

get_component

Retrieve KRDS component markup with built-in KWCAG accessibility requirements. If required inputs are missing, it tells you what to provide.

Instructions

KRDS 컴포넌트의 킷 마크업과 접근성 요건을 반환한다. 이 컴포넌트가 보장하는 KWCAG 항목, 사용자가 반드시 채워야 하는 값(필수 입력), 그리고 페이지 조립 후 따로 확인해야 하는 항목을 함께 알려준다. 필수 입력을 채우지 않으면 마크업 대신 무엇을 채워야 하는지 안내한다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputsNo필수 입력 값 — 필드명: 값. 배열(헤더 목록 등)은 쉼표로 이어 받는다. 반복 항목은 객체 배열로 줘도 된다 — 예: crumbs: [{crumbLabel, href}, …]. 바깥 키 이름(crumbs·items 등)은 자유이고 항목 안의 키가 필드명이다. 상태 입력: required(필수 표시)·checked(선택된 항목)는 불리언, errorMessage(오류 상태), currentPage(현재 쪽). 확인용 입력(modalPlacement·captionSync 등 구현 의무 확인)은 true를 준다. breadcrumb·pagination·radio_button·checkbox·text_input·select는 값을 넣은 마크업을 만들어 준다. 미제공 시 요건 안내만 반환하고 마크업은 주지 않는다
variantNo변형 이름 — 예: 'icon', 'size'. 킷 파일명 접미사와 같다
componentIdYes컴포넌트 id — 'krds:button' 또는 'button'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does reasonably well: it discloses the conditional output (markup only when required inputs are supplied, otherwise fill-in guidance) and enumerates the returned artifacts. Missing permissions, rate limits, or error semantics, but the core conditional behavior is clearly stated.

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?

Three sentences, front-loaded with what is returned, then the guarantees, then the fallback behavior. No filler, though the middle sentence bundles three distinct outputs into one long clause.

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?

There is no output schema, so the description properly explains the return payload (markup, KWCAG coverage, required inputs, post-assembly checks). Combined with a 100%-documented schema and a nested inputs object, an agent has enough to invoke it correctly, though sibling routing remains unspecified.

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 componentId, variant, and the nested inputs object in detail. The description's mention of mandatory user-supplied values mirrors the inputs parameter concept but adds no format or syntax detail beyond what the schema provides, so the baseline 3 applies.

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 description states a specific verb and resource: it returns the kit markup and accessibility requirements for a KRDS component, plus the KWCAG items it guarantees. An agent can tell this fetches a single component's definition, but the description never names or distinguishes itself from siblings like list_components or get_requirements.

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?

Usage is implied by the discussed return content and the note that missing required inputs yields guidance instead of markup, but there is no explicit when-to-use statement nor any comparison against list_components, get_requirements, or validate_page. The agent must infer the correct entry point on its own.

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