Skip to main content
Glama

PDFShift

convert

Convert an HTML document or a URL to a PDF, PNG, JPEG or WEBP file. Returns a temporary download URL (valid ~2 days).

Input Schema

NameRequiredDescriptionDefault
cssNoExtra CSS to inject, as a URL or raw string.
delayNoMilliseconds to wait before capture (max 10000).
formatNoOutput format: pdf (default), png, jpeg or webp.
sourceYesA URL (http/https) or a raw HTML string to convert.
sandboxNoGenerate a free, watermarked document that does not consume credits. Useful for testing.
wait_forNoA JS variable/function or CSS selector to wait for before capturing.
landscapeNoLandscape orientation instead of portrait (PDF only).
use_printNoUse the print CSS media type instead of screen.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose one important trait: the result is a temporary download URL valid ~2 days. However, it says nothing about credit consumption (only the `sandbox` schema field hints at credits), authentication, rate limits, or whether failures still consume credits.

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?

Two sentences, zero waste, with the conversion capability front-loaded and the return value immediately after. Nothing could be removed without losing information.

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 eight-parameter, mutation-free but credit-bearing tool with no annotations and no output schema, the description covers purpose and the return artifact well. It leaves the cost model and the sandbox-versus-paid decision unexplained, which is a meaningful gap an agent would need when choosing call settings.

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 description coverage is 100%, so every one of the eight parameters is already documented, including the format enum and the sandbox/credit tradeoff. The description merely repeats the format list, adding no new meaning such as default behavior or interactions between `wait_for`, `delay`, and `css`; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Convert') and both the accepted inputs (HTML document or URL) and all four output formats, so the agent knows exactly what the tool produces. It stops short of naming siblings only because none of them overlap (create_template, list_logs, pricing, etc.), so the tool is still unambiguously identifiable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to prefer this over alternatives, when to use a URL versus raw HTML, or when the sandbox mode is appropriate. The agent must infer everything from the schema property descriptions rather than from the description itself.

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