Skip to main content
Glama

convert_markdown

Convert Markdown files to Word or PDF documents, optionally applying a .dotx template for consistent styling.

Instructions

Convert markdown to Word/PDF with optional .dotx template.

This tool converts markdown files to professional documents using python-docx. You can optionally provide a .dotx template file for consistent styling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_pathYesBase path for output (without extension)
markdown_pathYesPath to input .md file
output_formatNoOutput format - "docx" (Word), "pdf", or "both"docx
template_pathNoOptional path to .dotx template file for styling

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It mentions using python-docx and optional template styling, but fails to explain overwriting behavior, output return values, failure modes, or dependencies for PDF conversion. This is a notable gap.

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?

The description is short and front-loaded, with the core purpose in the first line. However, the second paragraph partially restates the first sentence ('This tool converts markdown files to professional documents'), introducing minor redundancy.

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 conversion tool with four parameters and no annotations, the description provides a basic overview but omits important context such as output file naming (e.g., extension handling), error cases, and PDF conversion details. An output schema may exist, but the description alone is not 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?

The schema covers all parameters with 100% description coverage, so the baseline is 3. The description adds minimal extra meaning beyond the schema, such as hinting at output format and template purpose, but does not significantly enhance parameter understanding.

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 'Convert markdown to Word/PDF' which is a specific verb and resource. It also mentions the optional .dotx template, distinguishing this tool from the batch variant and list_supported_formats.

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?

The description implies single-file conversion but does not explicitly state when to use this tool versus convert_markdown_batch. There is no mention of exclusions or alternatives, leaving usage guidance to inference.

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/sham-devs/mcp-md-pdf'

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