Skip to main content
Glama

change_color_mode

Convert a sprite to RGB, grayscale, or indexed color, adding optional dithering to control palette reduction.

Instructions

Converts the sprite to RGB, grayscale or indexed, with optional dithering.

Input Schema

NameRequiredDescriptionDefault
modeYes
saveNoBatch mode: write changes back to the sprite file (default true)
rgbmapNo
spriteNoFile path, open tab title, or sprite id. Defaults to the active sprite (live). Batch mode needs a file path.
toGrayNo
backendNoauto (default): live Aseprite if connected, else headless batch
ditheringNo
fitCriteriaNo
ditheringFactorNo
ditheringMatrixNoe.g. 'bayer2x2', 'bayer4x4', 'bayer8x8'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.9/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, so the safety profile (a non-destructive write) is already conveyed and the description does not contradict it. The description adds the optional-dithering trait but says nothing about persistence, batch vs live execution, or what happens to the sprite data.

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, which is well-structured. It is arguably too terse for a 10-parameter tool, but as conciseness it works.

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 mutation tool with 10 parameters, 40% schema coverage, and no output schema, the description leaves major gaps: how modes interact with dithering/rgbmap, whether changes are saved, and the batch-vs-live distinction. It is far from complete enough to guide correct invocation.

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 only 40%, so the description must compensate for the many undocumented parameters (mode, rgbmap, toGray, fitCriteria, ditheringFactor, ditheringMatrix), yet it only alludes to dithering. The mode enum values are restated but no format, defaults, or interactions are explained beyond the schema.

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 specific verb (converts) and resource (sprite) plus the three target color modes, so an agent can tell it apart from siblings like replace_color or palette_edit. It stops short of naming any sibling explicitly, so it earns a 4 rather than a 5.

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?

There is no when-to-use, when-not-to-use, or alternative-tool guidance at all. The agent must infer that this is for changing a sprite's color mode rather than for palette or per-pixel color edits.

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