Skip to main content
Glama

adjust_colors

Adjust layer colors using Aseprite's HSL, brightness/contrast, and invert filters without changing alpha, with optional frame and region targeting.

Instructions

Adjust the colours of a layer with Aseprite's filters; alpha is never changed.

They run in this order: hue/saturation/lightness (HSL, as percentages), then brightness/contrast, then invert.

Every requested frame must have a cel. A filter removes a cel it leaves fully transparent, so a later op on that frame in the same batch finds no cel. Linked cels change once; one also linked to frames outside the list always gets its own copy, even when nothing changes. Indexed sprites only support invert (each pixel gets the palette entry nearest to its inverted colour): the other adjustments would rewrite the shared palette.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>",
      "layer": "<layer>"
    },
    "name": "adjust_colors"
  }
}

Input Schema

NameRequiredDescriptionDefault
hueNoDegrees to turn the hue
pathYesSprite file. Relative paths resolve against the server root.
layerYesLayer name, or a 'group/child' path for nested layers
framesNoFrames: a number, "1-4", "1-4,7" or "all" (1-based)
invertNoInvert the RGB channels
regionNoOnly change pixels inside this canvas rectangle; default the whole cel
contrastNoContrast change, -100..100
lightnessNoLightness change, -100..100
brightnessNoBrightness change, -100..100
saturationNoSaturation change, -100..100

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does it well: it discloses the fixed filter execution order, the cel-removal cascade that can break later ops in a batch, linked-cel copy-on-write semantics, and the indexed-sprite palette limitation. These are exactly the non-obvious behaviors an agent would otherwise get wrong.

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?

Front-loaded with the core action and invariant, then ordered constraints in separate short paragraphs. Dense and information-rich with essentially no filler, though the mid-sentence line breaks and parenthetical asides make it slightly harder to scan than necessary.

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 10-parameter mutation tool with an output schema, the description covers the risky semantics well and need not explain return values. It leaves unstated whether the edit is persisted to disk or reversible, which is the main remaining gap for a mutating tool with no annotations.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3, and the description adds genuinely new meaning on top: it states the ordering of hue/saturation/lightness before brightness/contrast before invert, which the schema does not express. It does not elaborate on frames or region syntax, but those are already documented in 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?

Opens with a specific verb+resource: 'Adjust the colours of a layer with Aseprite's filters', and adds an invariant ('alpha is never changed') that separates it from a plain paint/erase operation. It is still plausibly confusable with sibling replace_colors, which the description never mentions.

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 constraints are implied rather than stated as guidance: indexed sprites only support invert, and every requested frame must have a cel. There is no explicit 'use this instead of X when Y' routing to a sibling, so the agent must infer the choice from constraints alone.

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