Skip to main content
Glama

view_sprite

Read-only

Preview selected sprite frames as a PNG with transparency, optional layer, scale, region, rulers, grid, and onion skin for inspection. Nothing is saved.

Instructions

Look at the sprite: a PNG of the requested frames plus a short description.

Frames are laid out left to right, then down, over a grey checkerboard that marks transparency. Without scale, the largest that keeps the image within 512 px is used. The image never exceeds 2048 px per side: a larger scale is reduced, and when even scale 1 is too big every n-th pixel is shown; the text says so. Up to 64 frames per call. Without layer the visible layers are composited; with layer only that layer's own pixels are shown. onion_skin shows each frame's previous frames beneath it, the nearest at 50% opacity and each older one at half the one after. Nothing is saved. Not available in batch.

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

Input Schema

NameRequiredDescriptionDefault
gridNoLines between pixels, from scale 4
pathYesSprite file. Relative paths resolve against the server root.
layerNoLayer name or 'group/child' path for that layer's own pixels; omit for the visible layers composited
scaleNoScreen pixels per sprite pixel
framesNoFrames: a number, "1-4", "1-4,7" or "all" (1-based)
regionNoShow only this canvas rectangle
rulersNoCanvas coordinates along the edges
onion_skinNoPrevious frames to show faded beneath each frame

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true; the description goes far beyond that, disclosing the scale auto-fit (512 px target), the 2048 px per-side hard cap, the every-n-th-pixel fallback with a text warning, a 64-frame cap, layer compositing semantics, onion-skin opacity falloff and the fact nothing is persisted. These are exactly the operational limits an agent needs before calling.

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?

Purpose and output are front-loaded in the first sentence, and each following sentence covers a distinct behavior (layout, scale limits, frame cap, layer mode, onion skin, persistence). It is a dense single block and could be broken into bullets for faster scanning, but there is no filler.

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?

With 8 parameters, no output schema and only a readOnly annotation, the description carries the load well by explaining what the returned image contains and how it degrades under size limits. The main gap is failure behavior — nothing says what happens on a missing path or an unknown layer name.

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 schema already documents each field; the description still adds meaning the schema lacks, notably the layer compositing rule ('only that layer's own pixels' vs visible layers), the 50%/halving opacity model behind onion_skin, and the 64-frame ceiling on frames. It adds little for region, grid and rulers, which the schema handles alone.

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 first clause states a concrete verb and resource ('Look at the sprite') and immediately names the output form ('a PNG of the requested frames plus a short description'), which separates it from mutation/drawing siblings. It never names a sibling it is not (e.g. get_sprite_info for metadata or compare_frames), so the differentiation is implied by the output rather than stated.

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?

Gives real routing constraints: 'Not available in batch' and 'Nothing is saved', plus the composited-vs-single-layer choice. What is missing is explicit guidance on when to prefer a rendering view over siblings that inspect state without rendering (info, animation check, frame comparison).

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