Skip to main content
Glama

palette_edit

Add, insert, remove, move, sort, reverse, ramp, or dedupe palette colors in Aseprite sprites; indexed pixels are remapped so colors stay intact.

Instructions

Edits the palette structure: add or insert colors, remove entries, move entries, sort (by hue, saturation, value, lightness, luminance, red, green, blue, alpha), reverse a range, generate a ramp between two colors, or dedupe. In indexed sprites pixels are remapped so they keep their colors (set remapPixels=false to skip); pixels using removed colors move to the nearest remaining one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
atNoinsert/ramp: target index (default end)
byNo
toNoRange end, or the destination index for move
fromNoRange start for remove/move/sort/reverse
saveNoBatch mode: write changes back to the sprite file (default true)
spaceNoramp interpolation (default rgb)
stepsNo
actionYes
colorsNoadd/insert
insertNoramp: insert instead of overwriting entries
spriteNoFile path, open tab title, or sprite id. Defaults to the active sprite (live). Batch mode needs a file path.
backendNoauto (default): live Aseprite if connected, else headless batch
indicesNoremove/move: entries to act on
toColorNoramp end
fromColorNoramp start
descendingNo
remapPixelsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds genuinely useful behavior context beyond that — indexed-sprite pixels are remapped to preserve their colors, and pixels whose colors are removed fall back to the nearest remaining entry. It still omits whether the palette is persisted by default or how failures surface, but the remap semantics are substantial added value.

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?

Two sentences, front-loaded with the core verb and the full action inventory, then the side-effect caveat. The long parenthetical sort-key list is bulky but each operation enumerated is load-bearing for action selection.

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?

A 17-parameter mutation tool with no output schema, so the description carries more burden than it does. It covers the action space and the key side effect well, but says nothing about return shape, save/persistence defaults, or error behavior, which leaves gaps an agent must guess at.

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 71% and the schema already documents most parameters including per-action applicability. The description contributes the sort key list (matching the 'by' enum), the remapPixels side effect, and the action vocabulary, but leaves many of the 17 parameters (save, backend, steps, insert, sprite, descending) solely to schema text.

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 (Edits) and resource (palette structure) and enumerates the eight discrete operations, so an agent immediately knows the action space. It does not, however, distinguish itself from adjacent palette siblings like set_palette, get_palette, or save_palette, leaving that routing inference to the reader.

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?

Usage is only implied through the action list and one parameter-level hint ('set remapPixels=false to skip'). There is no explicit when-to-use guidance, no statement of when to prefer set_palette/replace_color instead, and no stated prerequisites for choosing between live and batch backends beyond what the schema says.

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