Skip to main content
Glama

Seouldocs

Read an HWP or HWPX file

read_hwp_document
Read-onlyIdempotent

Read an HWP or HWPX file (or a Word .docx) and get its text as Markdown, with tables kept as Markdown tables. Use it to summarise, translate, check, answer questions about or rewrite a Korean HWP document. Very long documents are cut at 60,000 characters (the result says so).

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": {
      "file": "<file>"
    },
    "name": "read_hwp_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe file. In ChatGPT, pass the attached file (download_url and file_id). Elsewhere, pass a public https download_url, or data as base64 for files under 3 MB with download_url set to an empty string.
passwordNoOnly for a password-protected HWP file.
hide_personal_infoNoHide personal information first: Korean resident and foreign registration numbers (주민등록번호, 외국인등록번호), phone numbers, email addresses, bank account and passport numbers are masked (900101-*******, 010-****-5678). Use it when the person asks to hide or remove personal information, or before sharing a document that holds other people's details.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds a real behavioral fact not present in structured data: documents are truncated at 60,000 characters and the result flags this, which matters for long-document workflows. It does not mention failure modes such as a password-protected file with no password supplied.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core capability and output format. The truncation caveat is the only edge-case note and it earns its place by preventing a wrong assumption about completeness.

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?

For a read-only extraction tool with no output schema, the description conveys the return format (Markdown text plus Markdown tables) and the truncation limit, which is the key thing an agent needs. Only the interaction with the password parameter in failure cases is left to the schema.

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%, with file, password, and hide_personal_info all documented thoroughly in-schema, so the baseline is 3. The description adds nothing about parameters — it never mentions the password or masking options that materially change what an agent must supply.

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?

"Read an HWP or HWPX file ... and get its text as Markdown, with tables kept as Markdown tables" gives a specific verb (read), resources (HWP/HWPX/docx), and an explicit output form. It is clearly distinct from create_hwp_document, though it never explicitly contrasts itself with convert_document, which could plausibly also produce text.

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?

"Use it to summarise, translate, check, answer questions about or rewrite a Korean HWP document" gives concrete, actionable when-to-use contexts. It stops short of exclusions or naming an alternative (e.g., convert_document for format changes), so it is clear context without routing guidance.

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.

Resources