Skip to main content
Glama
dongguk-rule-mcp

dongguk-rule-mcp

규정 개정본 비교

compare_rule_versions
Read-onlyIdempotent

Compares two versions of a university rule, including article text, appendix tables, cell merges, and embedded images, and reports extraction diagnostics when original HWP parsing fails.

Instructions

원본 HWP의 조문·별표와 표의 셀·병합 구조, 그림 파일 변경을 비교합니다. 원문 실패 시 HTML 대체 여부와 구체적인 추출 진단을 표시합니다. to_history_id 생략 시 최신 개정본입니다.

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>",
      "from_history_id": "<from_history_id>"
    },
    "name": "compare_rule_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
law_idYesLAW_ID
articleNo선택 조문. 예: 제10조의2, 부칙 제2조
max_changesNo본문에 표시할 최대 변경 조문 수. 기본 20, 최대 50
to_history_idNo비교 종료 HISTORY_ID. 생략하면 최신
from_history_idYes비교 시작 HISTORY_ID
include_appendicesNoHWP 별표·서식의 텍스트·표 구조·그림도 비교(기본 true)

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.12.0
    • changedInput schema / properties / include_appendices / description
      Previous value: -"HWP 별표·서식 텍스트도 비교(기본 true)"New value: +"HWP 별표·서식의 텍스트·표 구조·그림도 비교(기본 true)"
  2. Addedv0.10.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and openWorld, so safety is covered; the description still adds genuine behavioral context by disclosing that HWP table cell/merge structure and images are compared and that an HTML fallback plus extraction diagnostics are surfaced when raw text extraction fails. That failure-mode disclosure is information an agent cannot get from the annotations or schema.

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 short sentences, front-loaded with the comparison scope, followed by failure behavior and one parameter default. Nothing is padded, though the trailing to_history_id sentence duplicates the schema and could have been dropped or replaced with selection guidance.

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?

With an output schema present the description need not explain return values, and it still covers the comparison surface, fallback behavior and the default for the optional end revision. Complete enough to call correctly; the only real omission is how this tool relates to the retrieval siblings.

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% and every parameter is documented in-schema, including the to_history_id default and max_changes bounds. The description's note that omitting to_history_id yields the latest revision merely restates the schema, so it clears the baseline without adding new semantic meaning.

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 opens with a concrete verb (비교합니다) and enumerates the compared surfaces precisely: 조문·별표, 표 셀·병합 구조, 그림 파일 변경. That is far more specific than the bare name, though it never names a sibling (e.g., list_rule_history or get_rule_content) to mark the boundary of when comparison rather than retrieval applies.

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 only implied by the verbs – an agent can infer this is for diffing two revisions, but there is no explicit when-to-use/when-not guidance and no routing to the retrieval siblings. The only conditional guidance given (omitting to_history_id picks the latest) is parameter behavior rather than tool-selection guidance.

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