Skip to main content
Glama

web_tools_markdown_pdf

A clean, printable PDF from Markdown: headings, lists, tables, code blocks, quotes and images, set in a readable typeface with page numbers. For reports, specs, invoices and notes an agent has written. Also returns the standalone HTML. Price: $0.03 USDC via x402, charged only on success. Part of Web tools: A real browser for agents: screenshot any page on desktop or phone, read a page as clean Markdown, print a URL or HTML to PDF, draw HTML to an image, make social cards, audit a page for SEO, speed, accessibility and broken links, and compare two versions of a page pixel by pixel..

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": "web_tools_markdown_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
cssNoExtra CSS to restyle the document.
titleNoDocument title for the PDF metadata. The first heading when omitted.
formatNoA4
marginMmNo
markdownYesThe document in Markdown: headings, lists, tables, code blocks, images by public URL.
fontSizePtNo
pageNumbersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the price ($0.03 USDC via x402), that billing occurs only on success, and that the standalone HTML is also returned. It omits any auth/setup detail for x402 and says nothing about latency or size limits.

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

Conciseness3/5

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

The first two sentences are tight and front-loaded with the core purpose and use cases. The trailing 'Part of Web tools: ...' catalog sentence is a long family blurb that adds little for this specific tool and dilutes the signal.

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 7-parameter tool with no output schema, the description covers the return value (PDF plus HTML) and cost, which is valuable. However, with 43% schema coverage it leaves layout parameters (format, marginMm, fontSizePt, css) under-explained, so an agent must open the schema to use them confidently.

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 43%, so the description must compensate and only partly does: 'page numbers' and 'readable typeface' loosely map to pageNumbers and fontSizePt, and 'restyle' hints at css. It says nothing about format, marginMm, or the title parameter's metadata role, leaving several parameters documented only by 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 and resource ('A clean, printable PDF from Markdown') and enumerates the supported Markdown constructs, so the agent knows exactly what it produces. The 'from Markdown' framing implicitly separates it from the URL/HTML-to-PDF sibling, but no sibling is named explicitly.

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 use-case list ('For reports, specs, invoices and notes an agent has written'), which implies when to reach for it. It never states when not to use it or names an alternative such as the URL/HTML-to-PDF tool, so routing between the PDF siblings is left to inference.

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