Skip to main content
Glama

SnapForge PDF

snapforge_pdf
Read-only

Generate a PDF from a URL or HTML. Configure margins, orientation, page size, and wait conditions. Returns the PDF file path.

Instructions

Render a public URL or raw HTML to a PDF. The PDF is written to a temp file and its path is returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoPublic http/https URL to render. Provide either url or html.
htmlNoRaw HTML to render instead of a URL (max 2MB). Provide either url or html.
delayNoExtra wait in milliseconds before capture (0–10000)
marginNoCSS size applied to all margins, e.g. "1cm"
landscapeNoLandscape orientation (default false)
waitUntilNoWhen to consider the page ready: "load" (default) or "networkidle"
pageFormatNoPaper size when paginating (default A4)
singlePageNoOutput one continuous page sized to the content height (no A4 pagination)
printBackgroundNoInclude CSS background colors and images (default true)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bytesYesSize of the PDF in bytes
savedPathYesAbsolute path to the saved PDF file
Behavior1/5

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

Annotations declare readOnlyHint=true, but the description explicitly says 'PDF is written to a temp file and its path is returned', which indicates a write operation. This is a direct contradiction. The description fails to align with annotations, providing misleading behavioral cues.

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 two sentences, front-loaded with the primary action, and contains no fluff. Every word contributes to understanding the core functionality.

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?

Given the tool's complexity (9 parameters, output schema), the description covers the main action but omits important context like parameter relationships (e.g., url vs html exclusivity) and lifecycle of the temp file. It is adequate but not rich.

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?

The input schema has 100% description coverage, so the baseline is 3. The description adds no supplemental information about parameters (e.g., mutual exclusivity of url and html, default values). It does not exceed the value already provided by the schema.

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 action ('Render') and resource ('public URL or raw HTML') and output ('PDF, path returned'). It inherently distinguishes from sibling tools which render to screenshot or markdown, making the purpose unambiguous.

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 does not explicitly state when to use this tool over siblings (snapforge_screenshot, snapforge_markdown) or any prerequisites. Usage context is only implied by the tool name and output format; no guidance on exclusions or alternatives is provided.

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/sporty303/snapforge-mcp'

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