Skip to main content
Glama

Markdown to Word

doc_from_markdown

Convert Markdown to a .docx Word file. Preserves headings, lists, tables, code blocks, and inline formatting, then returns the file path and block counts.

Instructions

Call this tool to turn markdown into a .docx. Returns the file path and a count of the blocks written, by type. Free and unlimited.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
styleNo
titleNoDocument title; defaults to the first heading in the markdown
markdownYesThe markdown source. ATX headings, paragraphs, bullet and numbered lists, GFM pipe tables and fenced code blocks as monospace are honoured, as are **bold**, *italic* and `code` inline
out_pathNoWhere to write the .docx. Defaults to the data directory
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

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and it does add beyond-schema value: it states the return payload ('a count of the blocks written, by type'), important since no output schea exists, and the policy 'Free and unlimited'. It does not describe failure behavior when a file already exists or conversion errors, though the overwrite default is already captured in the schema.

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?

Three short sentences with the core purpose front-loaded in the first. The imperative 'Call this tool to' is slightly redundant framing and 'Free and unlimited' is ancillary, but overall the text is compact, scannable and every substantive piece earns its place.

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

Completeness3/5

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

For a 5-parameter tool with 1 required and no output schema, the description plus schema covers the essentials: purpose, return value, parameter defaults and overwrite policy. It is weak on routing among the many document siblings and silent on error/conflict behavior, but for a simple conversion tool this is adequate rather than deficient.

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 description coverage is 80%, above the high threshold, so the baseline applies. The description adds no parameter-level meaning: the markdown parameter is already extensively documented in the schema and the style enum values are self-seplanatory. The mention of block counts hints at supported constructs but adds nothing beyond the schema's list of headings, lists, tables and code blocks.

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?

The descrition uses a clear verb+resource framing: 'turn markdown into a .docx', with the title 'Markdown to Word' reinforcing the same conversion. It is unmistakably a markdown-to-docx converter and the direction implicitly sets it apart from siblings like resume_to_markdown and doc_to_html, though it never names them explicitly.

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

Usage Guidelines3/5

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

'Call this tool to turn markdown into a .docx' is an explicit invocation instruction, giving an agent the canonical use case. However, no alternatives or exclusions are provided, which matters here because the sibling list contains plausible adjacent document tools (doc_to_html, doc_create, convert, proposal_create) that an agent might conflate with this one.

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

Install Server

Other Tools