Skip to main content
Glama
dongguk-rule-mcp

dongguk-rule-mcp

규정 전문 조회

get_rule_full_text
Read-onlyIdempotent

Retrieve a regulation's full articles, supplementary provisions, annexes, and forms in original order by law ID. Use the cursor to continue long texts and merge contentMarkdown sequentially.

Instructions

LAW_ID(선택 HISTORY_ID)로 규정 하나의 조문·부칙·별표·서식 텍스트 전문을 원문 순서로 조회합니다. HWP 우선, 실패 시 HTML 대체와 partial 사유를 표시합니다. 긴 전문은 textCoverage.nextArguments로 이어 받고 contentMarkdown만 순서대로 합치세요. 그림 OCR·원본 화면 배치·법적 적용성은 보증하지 않습니다.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "law_id": "<law_id>"
    },
    "name": "get_rule_full_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNo직전 응답 textCoverage.nextCursor. 직접 만들거나 수정하지 마세요.
law_idYesLAW_ID
max_charsNo페이지당 최대 UTF-16 코드 단위 수. 메타데이터 제외
history_idNoHISTORY_ID (첫 요청 생략=최신, 이어받기는 cursor에 고정된 개정본)

Output Schema

NameRequiredDescriptionDefault
okYes도구 실행 성공 여부
dataNo성공 시 구조화 결과
toolYes실행한 도구 이름
errorNo실패 시 구조화 오류

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.13

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already mark this read-only, idempotent, and open-world, and the description still adds real substance: HWP is tried first with an HTML fallback, a partial reason is surfaced, the pagination contract is spelled out, and explicit non-guarantees are listed (image OCR, original page layout, legal applicability). What it omits is what the partial flag looks like or how large a full regulation typically is, so this falls just short of a 5.

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?

Four dense, front-loaded sentences: purpose first, then fallback behavior, then the continuation procedure, then the caveats. It is appropriately sized for the tool's complexity, though the two different continuation field names (nextArguments versus nextCursor) add avoidable ambiguity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return structure need not be described, and the description still covers the aspects that schema cannot: source-format fallback, partial-result signaling, pagination continuation, and explicit scope limits. An agent has everything it needs to call this correctly and recombine pages.

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 schema already defines all four parameters; nevertheless the description explains the interaction pattern that matters - optional HISTORY_ID on the first call versus the revision pinned by the cursor on continuation - and how max_chars pages should be recombined. Minor inconsistency: it references textCoverage.nextArguments while the cursor parameter is documented as textCoverage.nextCursor, which could confuse an agent.

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 concrete verb and object: retrieves the full text of one regulation, covering 조문·부칙·별표·서식 in original document order, keyed by LAW_ID with optional HISTORY_ID. That is specific enough to distinguish it from a TOC or excerpt tool, but it never names the sibling it differs from (e.g. get_rule_content), so the contrast with 'full' versus partial content is left implicit.

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?

The description gives strong continuation guidance (paginate via textCoverage.nextArguments and concatenate contentMarkdown in order) and clarifies that history_id is omitted on the first request. It does not state when an agent should choose this full-text tool over get_rule_content, get_rule_toc, or search_rule, so selection guidance is only implied by the word '전문'.

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