Skip to main content
Glama

Markdown to PDF

pdf_from_markdown
Idempotent

Generate a PDF from a Markdown file on A4 or Letter pages, preserving headings, lists, tables, code, and links.

Instructions

Typeset a Markdown file (headings, paragraphs, lists, tables, code, links) as a PDF on A4 or Letter pages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesPath to a Markdown file (.md) inside an allowed folder.
titleNo
outputYesPath for the new PDF, inside an allowed folder. Must not exist yet; superPDF never overwrites files.
page_sizeNoA4

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bytesYes
pagesYes
outputYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the write-but-safe profile is covered. The description adds output-format context (A4/Letter pages, supported Markdown syntax) but says nothing about allowed-folder restrictions, permission needs, or failure modes. Adds modest value beyond the annotations, hence a 3.

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?

A single front-loaded sentence with no wasted words; the parenthetical list of supported Markdown elements is informative rather than padding. It could still carry a routing clause, but on pure structure it is tight.

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?

An output schema exists, so return values need not be explained, and the schema itself carries the 'must not exist / never overwrites' and allowed-folder constraints. For a straightforward converter the description covers the essential capability, leaving only usage routing unaddressed.

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 50%: input and output are documented in the schema, page_size is an enum with no description, and title is undocumented entirely. The description only echoes the A4/Letter page options and does not explain the title parameter or the input/output path constraints, so it adds marginal meaning over the schema.

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 ('typeset') and resource ('a Markdown file ... as a PDF'), and enumerates the supported Markdown constructs. It is clearly a conversion tool, though it never explicitly differentiates itself from the sibling pdf_from_office, which also produces PDFs from a source document.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no mention of alternative tools. The usage is only implied by the tool name and the input being a Markdown file; an agent has to infer that pdf_from_office is the counterpart for non-Markdown sources.

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