Skip to main content
Glama

write_docx

Convert Markdown text to a Word document and save it locally. Use this tool to create properly formatted .docx files with headings, bold, italic, tables, lists, and code blocks from Markdown content.

Instructions

Convert Markdown text to a Word (.docx) document and save it to disk. Use this when the user asks you to create or save a Word document from text or Markdown content. The output_path should be an absolute path ending in .docx.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
markdownYes
output_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool saves to disk (a behavioral trait) and specifies the output path format, but lacks details on error handling, file overwriting behavior, or performance characteristics. It adequately covers the core action but misses some operational nuances.

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?

The description is front-loaded with the core purpose, followed by usage guidance and parameter specifics in three concise sentences. Each sentence adds value without redundancy, making it efficient and well-structured for quick comprehension.

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?

Given the tool's moderate complexity (2 parameters, no annotations, but has an output schema), the description is mostly complete. It covers purpose, usage, and parameter semantics adequately. The output schema likely handles return values, so the description doesn't need to explain those. Minor gaps remain in behavioral details like error handling.

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?

With 0% schema description coverage, the description must compensate. It explains that 'markdown' is the input text and 'output_path' should be an absolute path ending in .docx, adding crucial semantic context beyond the bare schema. However, it doesn't detail markdown formatting support or path validation rules.

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?

The description clearly states the specific action ('Convert Markdown text to a Word (.docx) document and save it to disk') and distinguishes it from siblings like 'convert_md_file_to_docx' (which likely processes files rather than text) and 'read_docx' (which reads rather than writes). It uses precise verbs and specifies the resource type.

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?

The description explicitly states when to use this tool ('when the user asks you to create or save a Word document from text or Markdown content'), providing clear context for its application. It also implies differentiation from siblings by focusing on text input rather than file processing.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cjwpenner/md-docx-converter'

If you have feedback or need assistance with the MCP directory API, please join our Discord server