Skip to main content
Glama

Convert URL to PDF

url_to_pdf

Convert web pages to PDF documents with customizable page size, orientation, margins, and headers/footers. Generate reports, archive web content, or create printable documentation from any URL.

Instructions

Render a web page to a PDF document and return the hosted file URL. Supports page size (A4/Letter/etc.), orientation, custom margins, headers/footers. Use for generating reports, archiving pages, or producing printable documentation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to convert to PDF
formatNoPage size (default A4)
landscapeNoLandscape orientation (default false)
printBackgroundNoInclude CSS backgrounds (default true for styled pages)
scaleNoZoom factor (0.1–2, default 1)
darkModeNoRender with dark mode
Behavior2/5

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

With no annotations provided, the description carries full burden but lacks critical behavioral details. It doesn't mention authentication requirements, rate limits, timeout behavior, file retention policies, or error conditions. While it describes the core function, important operational context is missing.

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 perfectly front-loaded with the core function first, followed by key capabilities and usage scenarios. Both sentences earn their place by providing essential information without redundancy. The structure is logical and efficient.

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 tool with 6 parameters, no annotations, and no output schema, the description is adequate but incomplete. It covers the basic purpose and usage but lacks behavioral transparency and detailed parameter guidance. The absence of output schema means the description should ideally mention the return format more explicitly.

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?

With 100% schema description coverage, the baseline is 3. The description adds minimal value beyond the schema by listing parameter categories ('page size, orientation, custom margins, headers/footers') but doesn't provide additional semantic context about how these parameters interact or affect output quality.

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 the specific action ('Render a web page to a PDF document') and resource ('hosted file URL'), distinguishing it from siblings like screenshot (visual capture) or scrape_url (content extraction). It explicitly mentions the output format and key capabilities.

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?

The description provides clear context for when to use the tool ('generating reports, archiving pages, or producing printable documentation'), which differentiates it from analysis or diagnostic siblings. However, it doesn't explicitly state when NOT to use it or name specific alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/toolcenter-dev/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server