Skip to main content
Glama

pixel_copy_region

DestructiveIdempotent

Copy a rectangular region between pixel art canvases to move limbs, stamp repeated parts, or composite sprites. Supports transparency-aware overlaying or full replacement.

Instructions

Copy a rectangular region from one canvas onto another (or within the same canvas) — for moving limbs between frames, stamping repeated parts, or compositing a sprite onto a background.

mode='over' (default) respects transparency like layering; mode='replace' overwrites the destination rect including alpha. Destination coordinates may be negative or overhang; the region clips to the destination canvas. Returns JSON {"source", "canvas", "region", "pasted_at", "mode"}; plus a rendered image of the destination when preview=true. On failure returns "Error: ...".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes
Behavior5/5

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

The description goes well beyond annotations by explaining mode behavior ('over' composites respecting transparency; 'replace' overwrites including alpha), clipping for out-of-bounds coordinates, return JSON structure, preview feature, and error format. Annotations indicate destructive and idempotent, which the description aligns with. No contradictions.

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?

The description is very concise, consisting of four sentences that front-load purpose and use cases, then detail mode behavior, clipping, return values, and error handling. Every sentence adds value without redundancy.

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 complex tool with modes, clipping, preview, and return values, the description covers all critical aspects. It lacks only a minor detail on the format of the rendered image when preview=true. No output schema exists, but the description compensates by detailing the JSON structure. Annotations provide additional safety context (destructive, idempotent).

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

Parameters3/5

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

The input schema already provides descriptions for all parameters (e.g., 'Source region left edge X', 'Region width in pixels', etc.), so schema coverage is high. The description does not add new parameter-specific information beyond what the schema gives. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'copy', the resource 'rectangular region', and scope 'from one canvas onto another (or within the same canvas)'. Use cases like moving limbs, stamping, compositing further clarify purpose and distinguish it from sibling tools like pixel_draw_pixels or pixel_transform_canvas.

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 description lists specific use cases (moving limbs between frames, stamping repeated parts, compositing) which imply when to use the tool, but it does not explicitly mention when not to use it or compare with alternatives. No direct exclusions or alternative tool names are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/light-vp/pixelart-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server