Skip to main content
Glama

Word to Markdown

word_to_markdown

Convert Word .docx files to Markdown for reading or reusing text, preserving headings, lists, tables, bold, italic, and links while returning the saved file path.

Instructions

Convert a .docx to a Markdown file (headings, lists, tables, bold and italic, links). Use this to read a Word file or reuse its text; use word_to_html to keep more of the look. 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_markdown"
  }
}

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 and readOnlyHint=false, so the write is expected; the description adds the useful clarifications that "the input is not changed" and that it "Returns the saved path." It does not discuss failure modes (e.g. malformed .docx, unwritable output path) or whether an existing output file is overwritten, which keeps it short of a 5.

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?

Two tight sentences with the conversion scope front-loaded, followed by routing and return-value notes. Every clause earns its place, though the parenthetical format list is slightly dense.

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?

For a two-parameter conversion tool with an output schema and full annotation coverage, the description covers purpose, alternative routing, output behavior, and input safety. Nothing an agent needs in order to call it correctly is missing.

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 already documented, including the default output location, so the schema does the heavy lifting. The description adds no syntax, path-format, or overwrite semantics beyond what the schema supplies, which is the baseline 3 case.

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 to a Markdown file") and enumerates what is preserved (headings, lists, tables, bold/italic, links). It also names the sibling it is not, word_to_html, so the agent can distinguish them without opening 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?

Gives both the positive case ("read a Word file or reuse its text") and the alternative with its selecting condition ("use word_to_html to keep more of the look"). Nothing about when to choose this tool is left to inference.

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