Skip to main content
Glama

Render Markdown to PDF

render_pdf

Convert Markdown files into styled PDFs deterministically using a headless Chromium browser—no LLM involved—so you can generate consistent documents from .md sources.

Instructions

Deterministically convert a Markdown file to a styled PDF using a headless Chromium-based browser (no LLM involved). Both paths must be under the server's allowed roots.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "markdown_path": "<markdown_path>",
      "output_path": "<output_path>"
    },
    "name": "render_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoDocument title (defaults to the file name)
overwriteNo
output_pathYesAbsolute path of the .pdf to write (not inside .git)
markdown_pathYesAbsolute path of the .md file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and openWorldHint=false; the description adds useful context beyond that: determinism, the browser engine, and a path-restriction constraint. However, it never discloses what happens when the output file already exists (the overwrite parameter has no description anywhere), so mutation semantics remain opaque.

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?

Two short sentences, action first, constraint second. Every clause carries information and nothing is padded.

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?

No output schema, so the description would ideally say what is produced or returned (a file path, a success payload) and how overwrite interacts with existing files. Purpose and path constraint are covered, but these gaps matter for a write tool.

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?

Schema coverage is 75%, so most parameters are already documented; the description adds a meaningful constraint applying to both path parameters (must be under allowed roots, .git exclusion is schema-only). It adds nothing about title defaults or overwrite behavior beyond what the schema already states, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: convert a Markdown file to a styled PDF, plus the mechanism (headless Chromium-based browser). The parenthetical 'no LLM involved' implicitly separates it from the local_llm sibling, though the differentiation is left implicit rather than naming the alternative.

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?

Gives a precondition ('Both paths must be under the server's allowed roots') but no explicit when-to-use vs when-not guidance or named alternative. An agent can infer this is the deterministic rendering path versus LLM tools, but must infer it.

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