Skip to main content
Glama
LufiSprite Studio

LufiSprite Studio

by Lufi735

get_layer_pixels

Reads non-empty pixels from a 2D layer, optionally limited to a bounding rectangle, so agents can inspect sprite content before editing or verifying artwork.

Instructions

Read non-empty pixels from a 2D layer (optionally within a bounding rectangle).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_layer_pixels"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
widthNo
heightNo
layerIndexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does contribute one genuinely useful behavioral fact — that only non-empty pixels are returned, so empty regions are omitted — but it says nothing about the return shape (coordinate-to-color mapping?), coordinate origin conventions, or that the operation is a side-effect-free read.

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 front-loaded sentence with no filler or repetition. It is efficient, though the brevity tips into under-specification rather than crispness.

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

Completeness2/5

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

For a five-parameter tool with no annotations, no output schema, and zero schema coverage, this one-line description leaves too much undefined: layer selection semantics, coordinate conventions, and result format are all absent.

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 compensate for all five parameters and it largely does not. "Bounding rectangle" loosely implies x/y/width/height, but layerIndex is never mentioned and nothing states which layer is used by default when it is omitted (0 required parameters).

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?

States a concrete verb ("Read") and resource ("non-empty pixels from a 2D layer") with a scoping qualifier (optional bounding rectangle). That is enough to separate it from write-side siblings like draw_pixels and flood_fill, though it never names an alternative read tool such as get_canvas_screenshot.

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

Usage Guidelines2/5

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

The phrase "optionally within a bounding rectangle" hints at a filtered vs full-layer mode but gives no when-to-use guidance, no exclusions, and no pointer to how a layerIndex should be obtained (e.g. via list_layers). An agent must guess at the intended usage context.

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