Skip to main content
Glama
farazmazhar

faraztools-mcp

Official
by farazmazhar

markdown_to_pdf

Convert Markdown documents into styled PDF files. Choose a preset theme or custom JSON settings, add a title, and get a formatted PDF with support for headings, tables, code, and local images.

Instructions

Convert Markdown into a styled PDF file and return the path written.

Pass the document either as markdown text or as input_path pointing at a .md file (exactly one of the two). output_path is where the PDF is written.

theme is a preset name ("default", "compact", "academic") or a path to a JSON file overriding theme keys such as margin_cm, accent, font_size_pt or heading_numbering. title adds a centred title block above the content.

Supports headings, emphasis, links, lists, blockquotes, fenced code, tables, rules and local images (resolved relative to the input file). Remote image URLs are not fetched.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
themeNodefault
titleNo
markdownNo
input_pathNo
output_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It discloses side effects (writing to output_path), input selection, theme overrides, supported Markdown features, and a key limitation (remote image URLs not fetched). It is slightly incomplete on overwrite and failure behavior, but strong overall.

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 purpose, then organized into input modes, theming, and feature support. Each sentence carries useful information without filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter tool with an output schema and no annotation support, the description fully covers input constraints, parameter semantics, supported features, and limitations. The output schema can handle return details, so the note about returning the written path is sufficient.

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?

Schema coverage is 0%, so the description must explain all parameters. It covers every one: markdown vs input_path, output_path, theme presets and key overrides, and title. This adds essential meaning that the bare schema cannot provide.

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 first sentence states a specific action ('Convert Markdown into a styled PDF file') and result ('return the path written'), which clearly differentiates it from the echo sibling. No ambiguity about what the tool does.

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 concrete invocation rules: exactly one of markdown or input_path must be supplied, and output_path is required. It does not explicitly contrast this tool against alias echo, but it provides sufficient context for correct use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools