Skip to main content
Glama

render_preview

Read-only

Render a single sprite frame to a PNG image you can view, with adjustable scale and color, value, or silhouette views, so you can visually inspect pixel art before export.

Instructions

Render a single frame to a PNG and return it as an image you can view.

Use this to *see* your work. frame is 1-based; scale enlarges small sprites
(default 8x) so individual pixels are visible. A large sprite is shown at a lower
scale, so the image is at most 2048 px on its longer side; one already longer than
that is shown at 1x. A frame the sprite does not have is refused, not swapped for
another.

Args:
    views: Show the frame several ways side by side, labelled, instead of in colour
        alone. Choose from "color"; "value", the frame in greys of each colour's own
        lightness, which shows whether the forms read without hue (a figure drawn in
        dark colours on a dark outline turns to mud here and nowhere else);
        "silhouette", every drawn pixel black on white, which shows whether the shape
        reads with no interior and whether its parts have air between them; and
        "actual", the frame at 1x, the size a player sees. `["color", "value",
        "silhouette"]` is the usual check after a pass. Still one launch.

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": {
      "filename": "<filename>"
    },
    "name": "render_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
frameNoDefault: 1.
scaleNoDefault: 8.
viewsNo
filenameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.0
    • addedInput schema / properties / views
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed6 schema fields changedv0.10.0
    • removedInput schema / properties / filename / title
      Removed value: -"Filename"
    • addedInput schema / properties / frame / description
      Added value: +"Default: 1."
    • removedInput schema / properties / frame / title
      Removed value: -"Frame"
    • addedInput schema / properties / scale / description
      Added value: +"Default: 8."
    • removedInput schema / properties / scale / title
      Removed value: -"Scale"
    • removedInput schema / title
      Removed value: -"render_previewArguments"
  3. First observedv0.7.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description goes further by disclosing the 2048 px output cap, the fallback to 1x for oversized sprites, and the important refusal semantics ("A frame the sprite does not have is refused, not swapped for another"). It also notes "Still one launch", hinting that combining views costs nothing extra, but it does not otherwise describe response payload beyond the image.

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?

The purpose is front-loaded in the first sentence and the sizing rules follow logically. The views discussion is long and parenthetical, and the "Args:" block documents only views while ignoring the other three parameters, which is a slightly awkward structure, but every sentence still carries information an agent would otherwise have to guess.

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

Completeness4/5

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

For a read-only render tool with no output schema, the definition covers output format and size limits, scaling behavior, and invalid-frame handling, which is nearly everything needed to call it correctly. The remaining gap is filename — its expected form and meaning are never stated despite being the only required parameter.

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 50% and the schema has no enums, so the description carries real weight: it establishes that frame is 1-based, that scale defaults to 8x and is auto-reduced to fit 2048 px, and it enumerates the legal views values ("color", "value", "silhouette", "actual") with their meanings, which the schema lists only as a free string array. The filename parameter is left entirely unexplained in both schema and description.

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?

"Render a single frame to a PNG and return it as an image you can view" gives a specific verb (render), resource (a single frame), and output (PNG image), and "Use this to *see* your work" frames it as the visual-inspection tool. It never names a sibling such as assess_sprite, so it does not explicitly separate itself from other read/evaluation tools in the catalog.

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

Usage Guidelines4/5

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

It states the calling context clearly ("Use this to see your work") and recommends a concrete default check: `["color", "value", "silhouette"]` after a pass. It offers no when-not guidance and never contrasts itself with alternative analysis tools, so an agent must infer the boundary itself.

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

Deploy Server

Other Tools