Skip to main content
Glama

Reelfinery

html_to_image

Read-only

HTML→图片($0.03):渲染 HTML/CSS 成单张 PNG(海报/封面/数据卡)。像素级控制。零 API 成本。

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

Input Schema

NameRequiredDescriptionDefault
htmlYes完整 HTML 字符串
ratioNo画幅,默认 1:1
widthNo
heightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint/openWorldHint/destructiveHint, so safety is covered structurally. The description adds pricing ($0.03) and 'pixel-level control,' which is useful context, but it doesn't explain how width/height interact with the ratio enum or what happens on invalid HTML. The 'zero API cost' phrasing also sits oddly alongside the $0.03 charge.

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?

A single dense, front-loaded line that leads with input→output and cost. Efficient with no filler, though the parenthetical price and 'zero API cost' slightly muddy the point.

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 4-param tool with no output schema, the description nails output type (single PNG) but leaves width/height semantics and their interaction with the ratio enum unexplained. It's adequate but incomplete for the parameter set.

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

Parameters2/5

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

Schema coverage is only 50%: html and ratio are documented in the schema, but width and height have no descriptions at all. The description doesn't clarify these params or how they relate to ratio, so it fails to compensate for the coverage gap.

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 (render) and clear input/output: HTML/CSS in, a single PNG out. Use cases (poster/cover/data card) reinforce the intent. It doesn't distinguish itself from the sibling render_html, which could render HTML for a different purpose, so it's not a 5.

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 use-case examples (海报/封面/数据卡) imply when to reach for it, but there's no explicit when-not guidance and no routing to alternatives like render_html or image_to_3d. The guidance is implied rather than stated.

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