Skip to main content
Glama

outline

Draws a one-pixel border around non-transparent pixels on a layer, with inside/outside placement and optional frame or region limits for sprite edits.

Instructions

Draw a one-pixel outline around the non-transparent shapes of a layer.

Uses Aseprite's Outline filter; the cel grows to make room. With region only pixels inside it change. Background layers are refused (nothing is transparent there). Every requested frame must have a cel; an emptied cel (inside outline with a transparent color) is removed, and linked cels are handled like adjust_colors. Indexed sprites use the palette entry nearest to color.

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>",
      "color": "<color>"
    },
    "name": "outline"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesSprite file. Relative paths resolve against the server root.
colorYes'#RRGGBB', '#RRGGBBAA' or 'transparent'
layerYesLayer name, or a 'group/child' path for nested layers
placeNooutside: paint the transparent pixels around shapes; inside: recolour the shapes' own edge pixelsoutside
framesNoFrames: a number, "1-4", "1-4,7" or "all" (1-based)
matrixNoWhich neighbours count: circle = 4 sides, square = all 8circle
regionNoOnly change pixels inside this canvas rectangle; default the whole cel

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that the cel grows to make room, that an emptied cel is removed, that linked cels are affected, that background layers are rejected, and that indexed sprites remap to the nearest palette entry. The main omission is that mutation semantics (persistence, undo) are only implied by 'Draw', not stated.

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?

The purpose is front-loaded in the first sentence, followed by compact behavioral clauses. It is dense and slightly run-on (the frames/cel-removal/linked-cel clause is packed), but nearly every sentence carries operational information.

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 7-parameter mutation tool with no annotations but a full schema and an output schema, the description covers side effects, preconditions, and edge cases well. Return values need not be explained since an output schema exists; only persistence/undo behavior is left implicit.

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 coverage is 100%, so the baseline would be 3, but the description adds real meaning beyond the schema: 'With region only pixels inside it change' clarifies region scoping, 'Every requested frame must have a cel' constrains the frames parameter, and 'Indexed sprites use the palette entry nearest to color' explains how color is resolved in indexed mode. That is genuine value on top of already-documented parameters.

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?

States a specific verb and resource — 'Draw a one-pixel outline around the non-transparent shapes of a layer' — with the exact scope (one pixel, non-transparent shapes, single layer). It also names the underlying operation (Aseprite's Outline filter), so an agent knows precisely what visual effect to expect.

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 given (background layers are refused, every requested frame must have a cel, region limits changes to a rectangle), which effectively tells the agent when the call will fail. However, there is no explicit routing guidance to or away from sibling tools such as draw_rect or adjust_colors — adjust_colors is only referenced as a behavioral analogue for linked cels, not as an alternative.

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