Skip to main content
Glama

preview

Read-onlyIdempotent

Render a sprite as a PNG image to check drawing results; when no frame is set, display all frames side by side.

Instructions

Render the sprite as a PNG image. frame=None shows all frames side by side. Use it after drawing to check the result.

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": {
      "path": "<path>"
    },
    "name": "preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
frameNo
scaleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description adds one behavioral trait beyond that: frame=None renders all frames side by side. It does not clarify whether the PNG is returned inline or written to a temp file, nor what the required path points to, which leaves a meaningful gap for a render tool.

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?

Two short sentences with the core behavior front-loaded and the usage hint second. No filler, no repetition of the tool name, and the frame=None special case is stated inline where it matters.

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 three-parameter read-only render tool with no output schema, the description is adequate but incomplete: return format (inline image vs file) and the meaning of path and scale are left to inference. The safety side is well covered by annotations, so the remaining gap is modest rather than disqualifying.

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 description coverage is 0%, so the description must carry the semantics, and it only covers one of three parameters: frame=None meaning all frames side by side. The required path parameter is never explained (sprite file? project directory?) and scale (default 8) is undefined, so the most load-bearing parameter is undocumented 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 the sprite as a PNG image" gives a concrete verb and output format, which is enough to distinguish it from export tools like export_spritesheet or batch_export. It stops short of explicitly naming a sibling to contrast against, so it is clear but not maximally differentiated.

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?

"Use it after drawing to check the result" supplies a clear lifecycle context (post-draw inspection), which is genuinely useful for an agent sequencing work. It does not state when-not-to-use it or explicitly route to the export siblings for saving artifacts, so the alternative-selection guidance is implied rather than spelled out.

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