Skip to main content
Glama

Word document to HTML

doc_to_html

Convert .docx files to semantic HTML for browser viewing and PDF creation through printing. Returns the .html file path; PDFs are not rendered directly.

Instructions

Call this tool to convert a .docx to semantic HTML you can open in a browser and print to PDF. Returns the path of the .html file. This is the supported PDF route; no PDF is rendered here. Free and unlimited.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the .docx file to convert
out_pathNoWhere to write the .html. Defaults next to the source file. Open the result and print it to PDF; direct PDF output is not offered here
overwriteNoReplace out_path if a file is already there. Default false: an existing file is never overwritten

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.0

TDQS

A4/5.0
Behavior4/5

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

Annotations mark this as a non-read-only, non-idempotent, non-destructive write, and the description adds genuinely useful context beyond them: it writes an .html file and returns that path, performs no PDF rendering itself, and is free/unlimited. It does not discuss failure modes for malformed .docx input, which is the remaining gap.

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?

Four short sentences, front-loaded with the action and the return value, then the PDF routing note and the pricing signal. Nothing is redundant with the title or schema, and 'Free and unlimited' is a legitimate decision-relevant fact.

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?

With no output schema, the description correctly carries the return contract ('Returns the path of the .html file'), which is the key thing an agent needs to chain a follow-up step. It is complete for the common path, though it is silent on what happens on conversion failure or unsupported input.

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%, with all three parameters (path, out_path, overwrite) already documented including the default-next-to-source and no-overwrite behavior. The description reinforces out_path's purpose via the print-to-PDF workflow but adds no syntax, format, or edge-case detail the schema lacks, so this sits at the baseline.

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?

States a specific verb and transformation chain (.docx to semantic HTML, then print to PDF) rather than restating the title. It also implicitly separates itself from the many PDF siblings by saying 'no PDF is rendered here,' though it never names a concrete sibling (e.g. invoice_pdf, resume_to_html, doc_read) for contrast.

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 clear context for use: this is 'the supported PDF route,' so an agent wanting a PDF knows to come here and print. It does not spell out when NOT to use it or which tool to prefer for direct PDF generation, so the routing guidance is strong but not exhaustive.

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

Deploy Server

Other Tools