Skip to main content
Glama

web_tools_render_html

Turn HTML and CSS into a PNG, JPEG or WebP with a real browser engine: cards, banners, charts, email previews, code snippets, diagrams. Fixed size or as tall as the content, up to 3x density, transparent background. Price: $0.02 USDC via x402, charged only on success. Part of Web tools: A real browser for agents: screenshot any page on desktop or phone, read a page as clean Markdown, print a URL or HTML to PDF, draw HTML to an image, make social cards, audit a page for SEO, speed, accessibility and broken links, and compare two versions of a page pixel by pixel..

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "html": "<html>"
    },
    "name": "web_tools_render_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
cssNoExtra CSS added after the document's own.
darkNo
htmlYesHTML to draw: a fragment or a full document. May load public images, fonts and stylesheets.
scaleNo
widthNo
formatNopng
heightNoFixed height. When omitted the image is as tall as the content.
waitMsNoExtra wait after the page has loaded, for animations or late content.
qualityNo
selectorNoCapture only this element, cropped to its box.
transparentNoKeep the page background transparent (PNG and WebP).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does meaningful work: it discloses the pricing model ($0.02 USDC via x402, charged only on success), the rendering engine, output constraints (as tall as content, up to 3x density, transparent background). Gaps remain on the return shape (image bytes vs. hosted URL) and failure behavior, which matter for a paid tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The capability and pricing sentences are front-loaded and earn their place. The trailing 'Part of Web tools: ...' sentence is a long generic family blurb that catalogues sibling features irrelevant to invoking this tool and dilutes the definition.

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 11-parameter, paid, image-producing tool with no annotations and no output schema, the description covers capability and cost but omits what comes back, how long it takes, and what several parameters mean. It is adequate to pick the tool but thin for invoking it confidently.

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 55%, below the threshold where the schema can be assumed to do the heavy lifting. The description adds meaning for format, height (content-driven sizing), scale and transparent, but says nothing about css, selector, waitMs, quality, dark or width, leaving roughly half the parameters explained only by the schema.

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 opening sentence gives a precise verb and resource ('Turn HTML and CSS into a PNG, JPEG or WebP') plus the enabling mechanism ('a real browser engine'), which is enough to distinguish it from URL-based siblings like web_tools_screenshot. It stops short of explicitly naming the alternative, so differentiation is inferred from the capability list rather than stated.

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 example list (cards, banners, charts, email previews, code snippets, diagrams) implies when this tool is appropriate, which is useful implied guidance. However, there is no explicit when-not, no prerequisite statement, and no routing instruction such as using web_tools_screenshot instead when the source is a live URL rather than a string of HTML.

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