Skip to main content
Glama

Generate a PDF from a public URL

pdf_from_url

Loads a public web page and renders it to PDF. Returns a download URL valid for 1 hour. Only public http/https URLs are allowed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesPublic http(s) URL of the page to render
formatNoPaper size, default A4
marginNoPage margin on all sides, e.g. "18mm"
landscapeNoLandscape orientation, default false
footerTextNoSmall footer text on every page
headerTextNoSmall header text on every page
pageNumbersNoShow page numbers in the footer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are present, so the description carries the full transparency burden. It usefully discloses that a download URL valid for 1 hour is returned and that only public URLs are allowed. However, it omits failure modes, rate limits, or handling of inaccessible URLs, leaving notable behavioral gaps.

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 concise, consisting of three short sentences that front-load the core action before adding output and constraint details. Every sentence contributes essential information without redundancy or filler.

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 the tool has 7 parameters and no output schema, the description covers the essential output (download URL with validity) and a key constraint (public URLs). It does not explain error handling or default parameter behaviors, but these are partly covered by the schema, making it fairly complete for a tool of this complexity.

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?

All 7 parameters have descriptions in the schema (100% coverage), so the description adds no additional semantic value to the parameters. The mention of public http/https URLs mirrors the schema's url description, and no extra meaning is provided for formatting options like margin or landscape.

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 clearly states it loads a public web page and renders it to PDF, specifying a specific verb and resource. It distinguishes itself from the generic sibling generate_pdf by emphasizing URL input, leaving no ambiguity about the tool's function.

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?

The description implies usage for public URL-based PDF generation and explicitly restricts to public http/https URLs, providing a when-not scenario. However, it does not explicitly mention the alternative sibling tool or define broader usage contexts, leaving differentiation to the reader rather than stating it.

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.