Skip to main content
Glama

FMF Tools Doc Tools

markdown_pdf

Markdown to PDF ($0.005 per call, paid via MPP on Tempo). Render Markdown (headings, paragraphs, bold, bullet/numbered lists, code blocks, tables, rules) to a clean A4/Letter PDF. Body: JSON {markdown, title?, page_size?: "A4"|"Letter"} or raw text/markdown. Returns application/pdf (or base64 JSON with format=json). Max 300 KB of Markdown. HTTP POST https://mpp-docs.fmf-x402.workers.dev/mpp/markdown/pdf. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

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": "<markdown>"
    },
    "name": "markdown_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo
formatNo
markdownYes
page_sizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so: it discloses pricing, the payment prerequisite, the crucial caveat that the MCP wrapper does not itself settle payment, the 300 KB input ceiling, and the exact return media type. This is exactly the kind of context an agent needs before spending money on a call.

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?

Purpose and price are front-loaded in the first clause, then format support, body shape, return type, limits, and finally the raw endpoint and payment note. Dense but well ordered. The URL and mppx pointer are slightly operational clutter for an MCP caller, but they earn their place as a fallback path.

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?

Given a paid, no-annotation, no-output-schema tool, the definition covers cost, auth prerequisite, size limit, input forms, and return encoding — everything an agent needs to call it correctly. Only minor gaps remain: the semantics of 'title' and what happens on payment failure or oversized input.

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?

Schema coverage is 0%, so the description must compensate, and it largely does: it documents the body shape (JSON with markdown/title/page_size, or raw text/markdown), the A4|Letter values for page_size, the 300 KB cap matching maxLength, and the format flag for JSON output. The one gap is that the effect of 'title' (PDF metadata vs. rendered heading) is never explained.

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?

Opens with a specific verb+resource ('Markdown to PDF') and enumerates exactly which Markdown constructs are supported (headings, lists, code blocks, tables, rules), which makes it distinguishable from the reverse-direction sibling pdf_markdown. An agent knows precisely what this tool produces without opening the schema.

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 states the practical context for invocation: cost ($0.005/call), the payment rail (MPP on Tempo), and the requirement to supply a Payment Authorization header or route through mppx. It also explains when to expect base64 JSON instead of a PDF (format=json). It does not explicitly state when to prefer this over a raw HTTP call or name sibling alternatives, keeping it short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources