Skip to main content
Glama

webpage_to_pdf

Fetch a public URL and render the webpage to a PDF file in a headless browser, so you can archive or print any page. Writes the result to a required output_path.

Instructions

Fetch a public URL and render the page to PDF in a headless browser. Use this to archive or print a web page. This tool takes a URL rather than a file, so output_path is required. The input is uploaded to the Papyrio API, processed in memory and not stored. The result is written to output_path, replacing any file already there, and the call returns that path and the size in bytes. Inputs are limited to 50 MB, and each call counts as one operation against the daily quota.

Input Schema

NameRequiredDescriptionDefault
urlYesPublicly reachable page URL, including https://.
output_pathYesAbsolute path to write the .pdf result to. Required for this tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so thoroughly: it discloses headless-browser rendering, upload to the Papyrio API, in-memory processing with no storage, overwriting output_path, returned path and size, a 50 MB input limit, and quota consumption. These details cover side effects, data handling, output, and constraints beyond what the schema or annotations provide.

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?

The description is front-loaded with purpose, then usage, parameter rationale, behavior, and limits. Every sentence adds relevant operational information without repetition or wasted framing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with no annotations and no output schema, the description is complete: it explains what the tool does, when to use it, how inputs are processed, where output is written, what is returned, and relevant limits. No critical agent-facing context appears to be missing.

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 already 100%, so the baseline is 3. The description adds useful meaning by explaining why output_path is required for this URL-based tool and by noting that output_path will be overwritten if a file already exists.

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?

The description states a specific verb and resource: fetch a public URL and render the page to PDF in a headless browser. It distinguishes the tool from PDF-oriented siblings by clarifying that it takes a URL rather than a file, so an agent can identify it without opening another 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 clear usage context with 'Use this to archive or print a web page' and reinforces the URL-versus-file distinction. It does not explicitly name alternative sibling tools such as image_to_pdf or office_to_pdf, so it stops short of fully explicit routing guidance.

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