Skip to main content
Glama
mcp-server-cloudflare-browser

mcp-server-cloudflare-browser

by vpsm-sh

Render PDF

render_pdf

Generates a PDF from a webpage or custom HTML using a headless browser and returns base64-encoded PDF data for downstream use.

Instructions

Generates a PDF from a webpage or custom HTML using a headless browser. Returns base64-encoded PDF data.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "render_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does add real value by naming the mechanism (headless browser) and the return format (base64-encoded PDF data), which tells the agent what to expect back. However it says nothing about rendering time, whether the headless browser executes JavaScript, size limits on the resulting PDF, or permissions — meaningful gaps for a rendering tool with zero annotation coverage.

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 filler, with the core capability front-loaded and the return format second. Every clause earns its place — nothing is repeated from the title or padded.

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 zero-parameter tool with no output schema, the description does explain the return value, which is the main thing an agent needs. What is missing is the crucial link between the stated inputs (webpage URL or custom HTML) and the fact that the schema accepts nothing — the agent cannot tell whether this renders the current page/tab implicitly or requires something else.

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 schema has zero parameters, which normally yields a baseline of 4, but the description actively implies inputs exist ('from a webpage or custom HTML') without any parameter to carry a URL or HTML string. That mismatch leaves the agent unsure how the source is actually supplied, so the description introduces ambiguity rather than resolving it.

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?

The description states a specific verb and artifact: 'Generates a PDF from a webpage or custom HTML using a headless browser.' That is clearly distinguishable from extract_json or get_crawl_status, but it does not differentiate itself from the closest siblings render_content, render_markdown, or take_screenshot, which plausibly render the same source into different formats.

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?

There is no when-to-use guidance at all — nothing says to pick this over take_screenshot or render_content, and no conditions, prerequisites, or exclusions are given. The only implied usage signal is the output format itself (PDF vs image/markdown), which the agent must infer.

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