Skip to main content
Glama
pdf4me
by pdf4me

convert_md_to_pdf

Convert a local Markdown file to PDF using the PDF4me API. Provide the file path and output directory to save the resulting PDF.

Instructions

Convert a local Markdown file (.md) to PDF using the PDF4me ConvertMdToPdf API. Provide the file path to the Markdown file and output_dir where the PDF will be saved. Long HTTP timeouts on requests. complete. Optional output file name (defaults to .pdf).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesLocal path to the Markdown file (.md).
output_dirYesDirectory to save the PDF (required).
output_file_nameNo
Behavior3/5

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

With no annotations, the description provides some behavioral details such as long HTTP timeouts and the default output filename pattern. It does not mention potential side effects like overwriting existing files or whether the source is modified. The fragment 'complete.' appears to be an incomplete thought, reducing clarity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short but contains a typo with a double space and the unexpected fragment 'complete.', which appears to be a leftover sentence. This makes the text feel unfinished and less concise.

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 no output schema, the description explains how to invoke the conversion and where the output is saved. However, it does not state what the function returns or any error handling. The incomplete 'complete.' sentence suggests missing content.

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?

The schema describes file_path and output_dir, and the description reinforces these. It adds the default naming behavior for output_file_name, which the schema lacks, providing extra semantic value.

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 tool converts a local Markdown file to PDF using the PDF4me API. This specific verb+resource combination distinguishes it from sibling tools like convert_html_to_pdf or convert_to_pdf.

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?

It clearly indicates the tool is for local .md files and requires file_path and output_dir. However, it does not explicitly mention alternatives or when not to use it, but the use case is evident.

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/pdf4me/pdf4me-mcp'

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