Skip to main content
Glama

Convert Markdown to PDF

md_to_pdf

Convert Markdown files or raw Markdown text to PDF files on disk using headless Chromium. Works offline without a Google account.

Instructions

Render a Markdown file (or raw Markdown text) to a PDF file on disk, using a headless Chromium render. No network or Google account needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoDocument title (used in <title>)
markdownNoRaw markdown text to convert (alternative to markdown_path)
out_pathYesAbsolute path to write the output .pdf file to
markdown_pathNoAbsolute path to the .md file to convert
Behavior4/5

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

With no annotations provided, the description carries the full transparency burden. It discloses the render mechanism (headless Chromium), supports both file and raw text input, and clarifies offline operation. It does not mention overwrite behavior or error handling, but for a straightforward converter, this is adequate.

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 two sentences long, front-loaded with the primary action, and contains no extraneous information. Every word contributes to understanding the tool's purpose and key traits.

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 simplicity, a full output schema is not necessary. The description, combined with a well-documented schema, covers the tool's purpose, mechanism, and offline nature. It lacks explicit return-value or error-handling details, but these are not critical for a conversion tool with no output schema.

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 has 100% coverage with clear descriptions for all 4 parameters, so the baseline is 3. The description adds minimal param-level information beyond what the schema already states, though it does highlight the dual input modes (markdown_path vs markdown), which is already captured in the schema. No significant additional semantic value is provided.

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 a specific action: 'Render a Markdown file (or raw Markdown text) to a PDF file on disk,' with a specified mechanism ('headless Chromium'). It distinguishes itself from the sibling tool md_to_gdoc by emphasizing 'No network or Google account needed,' which is a clear differentiation between a local offline converter and a Google-Docs-based one.

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?

The description gives strong context for when to use this tool: it is offline and requires no network/Google account, which implicitly contrasts with the sibling tool. However, it does not explicitly name the sibling or provide 'when not to use' guidance, so it falls short of a perfect 5.

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/BheshRajNeupane/mcp-md-converter'

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