Skip to main content
Glama
gmlcjf0326

claude-code-hwp-mcp

by gmlcjf0326

hwp_verify_5stage

Verifies HWP/HWPX documents through a 5-stage process: step log, body char count, file size, text snippet match, and optional layout PNG, ensuring document integrity after creation.

Instructions

문서를 TEST_CHECKLIST Phase 19 의 5단계 검증 기준으로 평가합니다. (v0.7.5.4 신규) Stage 1 step_log (호출자 보장), 2 body_verified (chars ≥ expected×0.5), 3 file_size (22KB/28KB 하한), 4 text cross-check (snippet 90%+ 매칭), 5 layout PNG (opt-in). overall_pass 는 stage 1-4 모두 PASS 시 true. 신규 문서 작성 후 자동 검증에 사용.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes검증할 HWP/HWPX 파일 절대 경로
run_layoutNostage 5 layout PNG 생성 실행 (기본 false, 시간 오래 걸림)
expected_charsNo예상 본문 글자수 (stage 2 판정 기준, 없으면 chars > 0 만 확인)
expected_text_snippetNo본문에 포함돼야 할 텍스트 샘플 (stage 4 판정)
Behavior5/5

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

With no annotations, the description fully discloses the five verification stages, criteria for each, and the overall_pass logic. This gives the agent a thorough understanding of the tool's behavior, including optional stage 5 and pass/fail conditions.

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?

Description is a single coherent paragraph that front-loads the purpose and clearly enumerates stages. It is slightly verbose with version info but remains efficient and scannable.

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

Completeness2/5

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

Description lacks information about the return value format (e.g., whether individual stage results are returned), prerequisites (e.g., whether the document must be open or if the tool handles opening/closing), and error handling. For a verification tool with no output schema, these gaps reduce completeness.

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

Parameters5/5

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

Schema coverage is 100% with detailed parameter descriptions. The description adds value by explaining how parameters like expected_chars and expected_text_snippet are used in specific stages, and the business context (TEST_CHECKLIST Phase 19, version info).

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?

Description clearly states the tool evaluates documents according to a specific 5-stage verification criteria (TEST_CHECKLIST Phase 19) and lists the stages. It distinguishes from sibling tools like hwp_verify_layout by specifying the multi-stage checklist approach.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Description indicates usage 'after creating a new document for automatic verification', providing clear context. However, it does not explicitly state when not to use it or mention alternative tools for single-stage or layout-only verification.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gmlcjf0326/claude-code-hwp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server