Skip to main content
Glama

Makemancer

Render HTML Image

render_html_image

Render HTML/CSS to a PNG in headless Chromium. Costs 1 credit. Use only when the user explicitly asks to render HTML/CSS, supplies HTML, or needs a deterministic code-based layout or an exact text watermark for overlay_images. A social card, banner or poster by itself is not a reason to use it: use generate_image.

Returns the finished image in this call; do not call check_job. If the queue is busy the call returns a job instead, and check_job gives the URL.

Tailwind utility classes work without a CDN. Any web font works: load it in the HTML, and the render waits for document.fonts.ready. No default font is injected. Use transparent_background=true for marks that go over video, and keep the canvas close to the visible content.

Pass images or fonts as inline_images: with {token: "photo", url}. Every {{token}} must have an entry. Requests to private addresses are refused; the page has up to 25 seconds to load. Up to 4096 pixels per side.

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": "render_html_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesHTML to render. Write it as for a real browser. Use {{token}} for inline_images.
nameNoOptional asset name for the saved file.
tagsNoOptional tags for the saved file.
widthNoOutput width in pixels. Default: 1200.
heightNoOutput height in pixels. Default: 630.
force_newNoAn identical request submitted in the last 10 minutes returns that job without charging again; true generates it again.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
inline_imagesNoImages or fonts to embed. Every {{token}} needs a matching entry.
budget_projectNoOptional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project.
transparent_backgroundNoMake unused pixels transparent in the PNG.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Beyond the annotations (openWorld, non-idempotent, non-destructive), it discloses cost (1 credit), synchronous-vs-job return behavior, the dedupe window interaction, SSRF protection ('requests to private addresses are refused'), a 25 second load timeout, and a 4096px per-side cap. These are exactly the operational traits annotations cannot express, though the job-fallback wording is slightly softened by the later 'do not call check_job' instruction.

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?

Front-loaded with purpose, then use/avoid routing, then return semantics, then rendering specifics. It is dense but every sentence carries a fact an agent would otherwise get wrong (fonts, Tailwind, credit cost, job fallback); no filler or restatement of the title.

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?

For a 10-parameter tool with no output schema, the description covers what comes back (finished image inline, or a job when the queue is busy and how to resolve it), cost, limits, and the token contract. An agent has enough to call this correctly on the first try.

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 would be 3, but the description adds real meaning: a worked inline_images example ('<img src="{{photo}}">' with {token, url}), the invariant that every token must have an entry, guidance to set transparent_background=true for overlays, and advice to keep the canvas close to visible content. It does not cover name/tags/skills_used/budget_project, which is acceptable given the schema documents them.

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 specific verb and resource ('Render HTML/CSS to a PNG in headless Chromium') and immediately distinguishes itself from the closest sibling by naming generate_image as the tool for social cards/banners. An agent can route between the two without opening a schema.

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 explicit inclusion criteria (user explicitly asks, supplies HTML, needs deterministic code layout, or an exact text watermark for overlay_images) and an explicit exclusion ('a social card, banner or poster by itself is not a reason to use it: use generate_image'). Both the when and the when-not are named with a concrete alternative.

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.