Skip to main content
Glama

set_pixel

Paint a single pixel at specified x,y coordinates with a hex color, optionally targeting a layer or frame, all within an atomic undo transaction.

Instructions

Paints a single pixel at (x, y) with the specified color within an atomic undo transaction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesX coordinate in canvas space
yYesY coordinate in canvas space
colorYesHex color (#RRGGBBAA or #RRGGBB)
layerNameNoOptional target layer name
layerIndexNoOptional target layer index
frameNumberNoTarget frame number (1-indexed)
returnPreviewNoWhen true, returns updated preview image

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?

With no annotations, the description carries the full behavioral burden. It usefully discloses that the operation is wrapped in an atomic undo transaction, but it omits other important traits such as default layer/frame targeting, permission requirements, and the interaction between layerName and layerIndex.

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?

A single efficient sentence with the core action and scope front-loaded. Every phrase earns its place.

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?

The description is minimally adequate for a 7-parameter mutation tool with no annotations. It covers the core action and undo behavior, but lacks details on default layer/frame selection and mutual exclusivity of layerName/layerIndex, which an agent would need for correct invocation.

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?

Schema description coverage is 100%, so each parameter is already documented in the schema. The description only restates x, y, and color without adding nuance, so the baseline of 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 states a specific verb ('Paints') and exact resource ('a single pixel at (x, y)'), which implicitly distinguishes it from batch or shape-drawing siblings like set_pixels, draw_line, and flood_fill. An agent can tell what the tool does without opening the schema.

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?

No explicit when-to-use guidance is given. The description does not mention when to prefer this over set_pixels, draw_line, flood_fill, or replace_color, nor does it note any prerequisites or alternatives.

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