Skip to main content
Glama

Render to image: HTML, Markdown or a web page to a PNG (cards, charts, previews)

render_png
Read-onlyIdempotent

Use when an agent must turn its own HTML or Markdown into an image (social card, chart, table snapshot, preview) or capture a page as PNG. Input: GET ?url=, or POST JSON {html | markdown | url, width 320-1920, full_page}. Korean fonts included. Output: JSON fileBase64 (decode to the PNG), bytes, viewport. Bad input or daily cap refused before payment. Use instead: web_screenshot for a live page as visitors see it; render_pdf for a PDF. Example: ?url=https://example.com/ Price: $0.01 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

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_png"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) page to render (GET). For html/markdown use POST JSON.
htmlNoHTML to render (MCP argument or POST JSON; alternative to url/markdown)
widthNoViewport width in px (default 1024)
markdownNoMarkdown to render (MCP argument or POST JSON; alternative to url/html)
full_pageNo1 = whole page (default), 0 = first screen only

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, but the description adds material context beyond them: Korean font support, a daily cap enforced before payment, exact price ($0.01 per call) and payment rails via x402. It also discloses the response shape (fileBase64 that must be decoded, plus bytes and viewport). The only thing left implicit is what happens on a partial render failure.

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

Conciseness4/5

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

Front-loaded with the trigger and use cases, then input contract, then output, then alternatives, then a worked example and price — a logical order with no filler sentences. It is dense and packs protocol/pricing details into a single stream, which slightly hurts scannability but every sentence carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema present, the description carries the return-value burden and does so (fileBase64/bytes/viewport). Combined with input modalities, pricing, refusal behavior, and sibling differentiation, an agent has everything needed to call it and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds real meaning by stating the width range 320-1920 (schema only says default 1024), by presenting the three mutually-exclusive input modes (url | html | markdown) as alternatives, and by noting the GET vs POST transport difference. It does not explain the odd string typing of full_page.

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?

States a concrete verb+resource ('turn ... HTML or Markdown into an image ... or capture a page as PNG') and enumerates the use cases (social card, chart, table snapshot, preview). It explicitly contrasts itself with web_screenshot and render_pdf, so an agent can pick correctly from the sibling set.

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

Usage Guidelines5/5

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

Gives an explicit 'Use when' trigger, then names two alternatives with the condition that selects each: web_screenshot for a live page as visitors see it, render_pdf for a PDF. It also states the input modality switch (GET ?url= vs POST JSON), which is the other main routing decision.

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