Skip to main content
Glama

Document to Markdown: Korean HWP/HWPX to Markdown, plus web pages, PDF and DOCX

convert_to_markdown
Read-onlyIdempotent

Use when an agent must read a document as clean Markdown: web page, PDF, DOCX or Korean HWP/HWPX, tables kept. Input: url (http/https) via GET, or POST a file (multipart 'file', raw body, or JSON contentBase64+filename). Free-plan size cap → 413 before payment: HWP 48 KB, HWPX 100 KB XML. Output: JSON markdown, title, pages, sourceType, warnings. Price by detected type: HTML $0.0027, PDF/DOCX $0.0045, HWP/HWPX $0.009. Use instead: web_read for an HTML page with max_chars or injection flags; web_read_batch for several web pages; docs_extract for key facts as fixed JSON; convert_ocr for scans and images without a text layer. Example: ?url=https://example.com/ Price: $0.0027–$0.009 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "convert_to_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) URL of a web page, PDF, DOCX, HWP or HWPX (max 10 MB)
typeNoOptional expected type: html, text, pdf, docx, hwp, hwpx
filenameNoOriginal file name, e.g. report.hwp (helps detection)
contentBase64NoDocument bytes as base64 (alternative to url; max 10 MB decoded)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already grant readOnly/idempotent/non-destructive/openWorld, but the description goes well beyond: dual ingestion modes (GET ?url or POST multipart 'file', raw body, JSON contentBase64+filename), a 413 pre-payment size cap with concrete limits per format, per-type pricing, and the payment rails (x402/USDC). The 413-before-payment detail is exactly the kind of failure-mode disclosure an agent needs.

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 use case, then input, limits, output, price, and alternatives in a logical order with no filler. The style is telegraphic and dense, which is efficient but makes the middle sections slightly harder to scan on first read.

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

Completeness5/5

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

No output schema exists, yet the description names the return fields (markdown, title, pages, sourceType, warnings). Combined with format coverage, size caps, error code, and cost, an agent has everything needed to call it and to predict the result shape.

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; the description adds value by explaining that url is fetched via GET and that the file path accepts three distinct encodings, and by tying the optional 'type' to pricing tiers. It stops short of documenting enum values for 'type' (html, text, pdf, docx, hwp, hwpx), leaving that to the schema.

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?

Opens with a specific verb+resource: 'read a document as clean Markdown' and enumerates the supported formats (web page, PDF, DOCX, Korean HWP/HWPX) plus the 'tables kept' property. This is clearly distinguishable from siblings like docs_extract (fixed JSON) and convert_ocr (scans).

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

Usage Guidelines5/5

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

Explicit 'Use when...' trigger followed by a 'Use instead:' block naming four alternatives (web_read, web_read_batch, docs_extract, convert_ocr) each with the condition that selects it. The agent never has to infer routing.

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