Skip to main content
Glama
gmlcjf0326

claude-code-hwp-mcp

by gmlcjf0326

hwp_extract_template_structure

Extract tree structure (TOC, sections, tables, fields) from HWP/HWPX templates using heading regex heuristics. Entry point for analyzing document forms.

Instructions

양식 문서의 트리 구조(목차/섹션/표/필드)를 추출합니다. (v0.7.1 신규) heading 정규식 휴리스틱(제 N 장/조/절, I./II., 1./1.1, 가./나., (1)/(가))으로 섹션 인식. analyze_document + traverse_all_ctrls 재활용 (95%). 사용자 양식 분석의 진입점.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes양식 파일 경로 (HWP/HWPX)
max_depthNo인식할 heading 깊이 (기본 4)
Behavior3/5

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

With no annotations, the description carries the burden. It reveals internal heuristics (regex patterns) and reuse of other functions, offering moderate behavioral insight. However, it does not disclose safety or side effects (though it is likely read-only), nor does it describe any performance implications.

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?

The description is concise with two sentences. The first states the core functionality, and the second adds technical context. Although the regex patterns could be simplified for an AI agent, it is efficiently structured.

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?

Without an output schema, the description should explain the return format, but it does not. It also fails to mention performance considerations or how the output relates to sibling tools like hwp_get_document_info. Key aspects of the tool's use are missing.

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 baseline is 3. The description does not add any information about the parameters beyond what the schema provides. The mention of heading depth is tangentially related to max_depth but does not elaborate.

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 clearly states that the tool extracts tree structure (toc/sections/tables/fields) from a form document and identifies it as the entry point for user form analysis. This is specific and differentiates from many sibling tools, though it could explicitly contrast with similar tools like hwp_generate_toc.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It mentions it is the 'entry point for user form analysis' but does not specify when not to use it or suggest other tools for different scenarios.

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