Skip to main content
Glama

MD2Doc

Convert markdown to Word

convert_to_docx

Converts markdown to a Microsoft Word (.docx) file and returns a download URL valid for 10 minutes. For large files, POST the markdown to https://md2doc.com/mcp/upload and pass the returned id as markdown_upload_id.

Input Schema

NameRequiredDescriptionDefault
filenameNoOptional filename for the download, without the .docx extension. Defaults to 'document'.
markdownNoThe markdown text to convert. Provide either this OR markdown_upload_id.
markdown_upload_idNoID returned by POST /mcp/upload (multipart file field 'file'). Single-use, expires after 10 minutes. Use this instead of markdown for large documents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and openWorldHint=false; the description adds useful extra behavior — the download URL lives only 10 minutes and the upload id is single-use. It does not mention failure modes (invalid markdown, expired id) or what happens when both inputs are supplied.

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?

Two sentences, no filler: the primary behavior and its return value come first, the large-file escape hatch second. Every sentence earns its place.

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?

No output schema exists, and the description covers the return value (download URL, TTL) and the two input paths. It is a bit thin on error/edge behavior for a conversion tool with zero required parameters, where an agent could easily call it with no inputs.

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 the baseline is 3, but the description gives the concrete host URL for the upload endpoint that the schema only references as a path. It also documents the either/or relationship between markdown and markdown_upload_id, though it says nothing about filename defaults beyond the schema.

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?

Names a specific verb and resource plus the output format ('Converts markdown to a Microsoft Word (.docx) file'), which inherently separates it from convert_to_html and convert_to_pdf. It never explicitly contrasts with those siblings, so it stops short of a 5.

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 a concrete routing rule for the large-document case: POST to the upload endpoint and pass the returned id instead of inline markdown. It does not state when to prefer this over convert_to_pdf/html or preview_markdown, so guidance is strong but incomplete on sibling selection.

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