Skip to main content
Glama

동국 규정 MCP

규정 개정본 비교

compare_rule_versions
Read-onlyIdempotent

원본 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. Changed6 schema fields changed
    • addedInput schema / properties / from_history_id / minimum
      Added value: +1
    • changedInput schema / properties / from_history_id / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / law_id / minimum
      Added value: +1
    • changedInput schema / properties / law_id / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / to_history_id / minimum
      Added value: +1
    • changedInput schema / properties / to_history_id / type
      Previous value: -"number"New value: +"integer"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With annotations already declaring readOnlyHint=true, idempotentHint=true and openWorldHint=true, the description still adds real value: it discloses that output includes fallback-to-HTML substitution and specific extraction diagnostics when the original HWP text fails, which is behavior an agent could not infer from the schema. Minor gaps remain (no note on size limits of the diff or cost of large comparisons), but this is above the annotation baseline.

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 before the fallback/diagnostics note and the default-id hint. Only the to_history_id sentence slightly duplicates the schema; otherwise there is no wasted wording.

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?

The tool is moderately complex (6 params, oneOf article type, an output schema), and the description covers the essential what-is-compared plus error/fallback output behavior; return-value details are rightly left to the output schema. It misses only optional-parameter guidance (article scoping, max_changes behavior on large diffs), which keeps it from 5.

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 coverage is 100%, so law_id, article, from/to_history_id, max_changes and include_appendices are all documented in the schema itself. The description only restates the to_history_id default (already in the schema) and adds no extra semantics for article filtering, max_changes (default 20, max 50), or include_appendices, 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?

"원본 HWP의 조문·별표와 표의 셀·병합 구조, 그림 파일 변경을 비교합니다" gives a concrete verb (비교) and a precise resource scope (articles, appendices, table cell/merge structure, images), so the agent knows exactly what is diffed. It does not, however, name or distinguish itself from siblings such as compare_university_rules or list_rule_history, so it stops short of a 5.

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: the tool is for diffing two rule revisions, and "to_history_id 생략 시 최신 개정본입니다" gives a useful default (compare against the latest revision when the end id is omitted). There is no explicit when-to-use/when-not or pointer to the alternative tools (e.g., list_rule_history to find ids, get_rule_content for a single version).

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.