Skip to main content
Glama

web_tools_pdf

PDF from a live URL or from your own HTML, printed by a real browser: paper size, margins, landscape, backgrounds, page numbers. For invoices, reports, resumes and saving articles. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "web_tools_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) address of the page.
htmlNoHTML to print instead of a URL: an invoice, a report, a resume. May load public images, fonts and stylesheets.
mediaNoscreen prints the page as it looks in a browser instead of its print stylesheet.print
scaleNo
formatNoA4
waitMsNoExtra wait after the page has loaded, for animations or late content.
waitForNoCSS selector that must be visible before the capture.
marginMmNo
landscapeNo
backgroundNoPrint background colours and images.
pageNumbersNoFooter with page number and total.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose important behavior: rendering happens in a real browser, and there is a cost of $0.03 USDC via x402 charged only on success — a fact an agent cannot get from structured fields. It does not say what the call returns (raw PDF bytes vs. a URL) or what happens on render failure, so it stops short of full disclosure.

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 core sentences are front-loaded and efficient — purpose, use cases, then price. However, the closing "Part of Web tools: ..." paragraph is roughly fifty words of product-catalog boilerplate listing every sibling capability, which dilutes the definition without helping the agent call this tool.

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 an 11-parameter, zero-annotation, no-output-schema tool, the description covers purpose and cost but leaves a critical ambiguity unaddressed: URL and HTML are both optional, and nothing states that at least one must be supplied or how they interact. It also omits the return format, which matters given there is no output schema.

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 64%, and the description only echoes the option names it makes visible (paper size, margins, landscape, backgrounds, page numbers) without adding units, defaults, or ranges beyond what the schema already states. The undocumented parameters (scale, format, marginMm, landscape) get no extra meaning from the prose, so this is baseline-level.

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?

"PDF from a live URL or from your own HTML, printed by a real browser" states a specific verb (print to PDF) and both input modes, and the trailing catalog sentence implicitly separates it from screenshot (image) and Markdown extraction siblings. An agent can identify this as the document-rendering tool 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 gives concrete usage contexts ("For invoices, reports, resumes and saving articles") and the sibling blurb names the alternative capabilities (screenshot, read as Markdown, social cards) so the agent can infer routing. What is missing is an explicit conditional, e.g., "use screenshot instead when you need a PNG" or "use extract instead for machine-readable text."

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