Skip to main content
Glama

Word to HTML

word_to_html

Convert a .docx file into a single self-contained HTML file with images inlined, returning the saved path while leaving the original document unchanged.

Instructions

Convert a .docx to one self-contained HTML file, with its images inlined. Use word_to_markdown for plain, editable text. Returns the saved path; the input is not changed.

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": "word_to_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesPath to the file (absolute, or relative to the working directory).
outputNoWhere to save the result. Defaults to a new file next to the input.

Output Schema

NameRequiredDescriptionDefault
notesYesAnything the output does not carry over from the input.
summaryYesOne line describing the result.
writtenYesPaths of the files written, in order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.2

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=false, so the safety profile is partly covered, but the description adds genuinely new context: images are inlined rather than linked, the call returns the saved path, and the source file is left untouched. It does not say what happens if the target output path already exists, which is the main remaining behavioral gap for a write tool.

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 short sentences, front-loaded with the primary action and its output form, then the alternative, then the side-effect guarantees. Nothing is repetitive or 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 two-parameter file converter with annotations and an output schema, the definition covers input, output, side effects, and the sibling choice. It stops short of covering failure modes (non-.docx input, existing destination file), which keeps it from being fully complete.

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% and both parameters are documented, including the default location for the output. The description's phrasing mirrors the schema's default clause rather than adding new meaning such as overwrite behavior, so the baseline 3 applies.

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 and resource ("Convert a .docx") plus the defining output property ("one self-contained HTML file, with its images inlined"). That distinguishes it cleanly from word_to_markdown without requiring the agent to open either schema.

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?

Explicitly routes the agent to the sibling: "Use word_to_markdown for plain, editable text," which names the alternative and the condition that selects it. Combined with the stated output format, an agent can choose between the two converters without inference.

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