Skip to main content
Glama

flip

Mirror a selected layer or every layer horizontally or vertically across the canvas center to correct sprite orientation in Aseprite files.

Instructions

Mirror a layer, or every layer, across the canvas centre.

horizontal mirrors left and right: pixel x goes to width - 1 - x, whatever the cel's size and position, and cel content beyond the canvas edge is mirrored along. Without a layer every image layer is flipped, nested ones and locked ones included (as in the editor); this is refused when any of them is a tilemap. A named layer must not be locked. Linked cels are flipped once when all their frames are in the list and get their own copy otherwise. Slices are not moved.

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>",
      "axis": "<axis>"
    },
    "name": "flip"
  }
}

Input Schema

NameRequiredDescriptionDefault
axisYeshorizontal mirrors left-right, vertical mirrors top-bottom
pathYesSprite file. Relative paths resolve against the server root.
layerNoLayer name or 'group/child' path; leave out for every layer
framesNoFrames: a number, "1-4", "1-4,7" or "all" (1-based)all

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/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 behavioral burden and does so thoroughly. It discloses the horizontal pixel mapping, edge behavior, treatment of nested and locked layers, tilemap refusal, locked named-layer restriction, linked-cel handling, and that slices remain unmoved.

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 description is front-loaded with a clear summary and then proceeds through edge cases in a logical order. It is dense but every sentence carries relevant behavioral information; minor long sentences keep it from being maximally polished.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter mutation tool with no annotations, the description is notably complete. It covers layer selection, locking, tilemaps, linked cels, slices, and pixel-level horizontal behavior, while the schema and output schema handle the remaining parameter and return details.

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, but the description adds meaningful semantics beyond the schema. It explains the effect of omitting layer, restrictions for named layers, and how the frames list affects linked cels.

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?

The description states a specific verb and resource: 'Mirror a layer, or every layer, across the canvas centre.' It is clear what the tool does, but it does not explicitly differentiate itself from any sibling transformation tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context and constraints: omitting a layer flips every image layer, a named layer must not be locked, tilemaps cause refusal, and slices are not moved. It does not, however, name alternatives or explicitly say when to choose this tool over another.

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