Skip to main content
Glama

apply_filter

Applies filters such as BrightnessContrast, HueSaturation, or Outline to active cels or selections in Aseprite sprites for pixel art editing.

Instructions

Applies an image filter command to the active cel(s) or selection: BrightnessContrast, HueSaturation, ColorCurve, ConvolutionMatrix, Despeckle, InvertColor, Outline, ReplaceColor. Params follow list_commands (e.g. Outline {color:'#000000', place:'outside', matrix:'circle'}; HueSaturation {hue, saturation, lightness, alpha}; BrightnessContrast {brightness, contrast}).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
saveNoBatch mode: write changes back to the sprite file (default true)
frameNo1-based frame number. Defaults to the active frame (or 1).
layerNoLayer name, 'Group/Child' path, or 1-based index from get_sprite_info. Defaults to the active layer.
filterYes
paramsNo
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
channelsNoe.g. 'rgba', 'rgb', 'a'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the safety profile is largely covered and the description is consistent with it. The description adds the supported-filter enumeration, which is real behavioral content, but says nothing about live-vs-batch effects, the save-writeback behavior, or whether edits are undoable.

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 tightly packed sentences with the core action and filter list front-loaded and the parameter examples second. Dense but no filler; a small readability cost from cramming all examples into one sentence.

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?

For an 8-parameter, nested-object mutation tool with no output schema, the description covers only the filter/params axis; the frame, layer, sprite, backend, and save parameters are left entirely to the schema. It is adequate to invoke the tool, but the batch-vs-live behavior and write-back semantics an agent needs for correct use go unmentioned.

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?

The 'params' property in the schema is an open object with no documented shape, so the description's concrete examples (Outline {color, place, matrix}; HueSaturation {hue, saturation, lightness, alpha}; BrightnessContrast {brightness, contrast}) carry information the schema cannot. It stops short of covering ColorCurve, ConvolutionMatrix, Despeckle, InvertColor, and ReplaceColor, so the gain is partial.

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 ('Applies') and resource ('image filter command') plus the exact scope ('active cel(s) or selection'), and enumerates the eight supported filters, which makes the tool easy to identify. It does not, however, contrast itself with neighboring mutators like replace_color or draw_pixels, so sibling differentiation is left 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 implied rather than stated: the agent infers this is the tool for the listed filters, and the pointer that 'Params follow list_commands' is a useful routing hint to a sibling. There is no explicit when-to-use/when-not guidance or description of prerequisites (active sprite, connected live session, etc.).

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