Skip to main content
Glama
kareemaly

MD-PDF MCP Server

by kareemaly

convert_markdown_to_pdf

Convert Markdown content to PDF documents with customizable formatting options, output sizes, and PDF engine selection.

Instructions

Convert Markdown content to PDF with customizable formatting options.

Args: working_dir: Absolute path to the working directory for file operations markdown_content: The markdown content to convert to PDF output_filename: Name of the output PDF file relative to working_dir (default: output.pdf) size: Output size - 's' (small/compact), 'm' (medium), 'l' (large/detailed) (default: l) pdf_engine: PDF engine to use - weasyprint or pdflatex (default: weasyprint)

Returns: A message indicating success or failure of the conversion

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
working_dirYes
markdown_contentYes
output_filenameNooutput.pdf
sizeNol
pdf_engineNoweasyprint
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool performs a conversion and returns a success/failure message, but doesn't describe what 'failure' might entail (e.g., invalid input, file system errors), performance characteristics, or side effects like file creation in the working directory. The description is functional but lacks operational context.

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 well-structured with a clear purpose statement followed by organized parameter documentation. Every sentence adds value, though the 'Args:' and 'Returns:' sections could be more integrated with the main description. The information is front-loaded with the core functionality stated first.

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 tool with 5 parameters, no annotations, and no output schema, the description provides adequate parameter documentation but lacks details about behavioral aspects. The return value description ('A message indicating success or failure') is minimal. Given the complexity and absence of structured metadata, the description should ideally include more about error conditions or output format.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by providing clear explanations for all 5 parameters. Each parameter gets specific context: 'working_dir' as 'Absolute path to the working directory for file operations', 'markdown_content' as 'The markdown content to convert', and detailed explanations for optional parameters including default values and valid options for 'size' and 'pdf_engine'.

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 content to PDF') and distinguishes it from sibling tools like 'convert_markdown_file_to_pdf' (which takes a file input rather than content) and 'convert_pdf_to_markdown' (which does the reverse operation). The mention of 'customizable formatting options' further clarifies the tool's capabilities.

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 usage context through parameter explanations (e.g., 'working_dir' for file operations), but doesn't explicitly state when to use this tool versus alternatives like 'convert_markdown_file_to_pdf'. It mentions 'customizable formatting options' which hints at use cases, but lacks clear guidance on tool selection among siblings.

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

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