Skip to main content
Glama

Seouldocs

Convert HWP, HWPX and Word files

convert_document
Idempotent

Convert a file between HWP, HWPX, PDF, Word (.docx), Markdown and plain text, and get a download link. Input: an .hwp, .hwpx or .docx file. Use it for requests like 'turn this HWP into a PDF', 'make this Word file an HWP' or 'save this as HWPX'. Tables, pictures and page layout carry over. In PDF, Hancom fonts are drawn with Nanum fonts and the text stays selectable. Give the person the download link from the result.

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>",
      "to": "<to>"
    },
    "name": "convert_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesThe format to save as.
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.3/5.0
Behavior4/5

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

Annotations already declare not read-only, open-world, idempotent, non-destructive, so the bar is lower; the description still adds real substance by disclosing that a download link is returned and should be handed to the user, that tables/pictures/layout are preserved, and that PDF output substitutes Nanum fonts while keeping text selectable. It omits failure modes (password errors, size limits) which the schema covers instead.

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?

Front-loaded with the verb and format inventory, then usage examples, then behavioral details; nearly every sentence carries information. It is slightly longer than necessary — the font-substitution note is a nice-to-have — but nothing is filler.

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 tool with a nested file object, no output schema, and 100% schema coverage, the description covers what to pass, what comes back (a download link), and the one surprising behavior (font substitution). The only real gap is error/edge-case handling, which is acceptable given the schema-level detail.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds a constraint not obvious from the schema: the *input* file must be .hwp/.hwpx/.docx even though the `to` enum allows pdf/markdown/text as outputs. It also explains the practical consequence of PDF conversion (font substitution, selectable text), which informs format choice rather than just restating field names.

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?

States a specific verb (convert) plus both sides of the resource: input formats (.hwp, .hwpx, .docx) and the six output formats. Siblings (create_hwp_document, read_hwp_document, fill_korean_form) are clearly distinct operations, so an agent can route without opening the schema.

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?

Gives concrete example requests ('turn this HWP into a PDF', 'make this Word file an HWP', 'save this as HWPX') that map directly to invocation, and the description of hide_personal_info states the trigger condition. It stops short of naming when *not* to use it (e.g., reading a document instead) or what to do when input is already the target format.

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