Skip to main content
Glama

create_slice

Add a named slice over a canvas rectangle in an Aseprite sprite, applying it to every frame. Use it to define export regions or 9-slice bounds with optional pivot and color.

Instructions

Add a named slice over rect (canvas pixels); names must be unique.

The slice covers every frame (per-frame slice keys are not supported).

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>",
      "name": "<name>",
      "rect": "<rect>"
    },
    "name": "create_slice"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesSlice name
pathYesSprite file. Relative paths resolve against the server root.
rectYesSlice bounds in canvas pixels
colorNoColour the editor shows the slice in
pivotNoPivot point relative to the slice's top-left
centerNo9-slice centre, relative to the slice's top-left; must fit inside it

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two real behavioral traits: name uniqueness is enforced and the slice applies to every frame rather than per-frame. It does not say whether a duplicate name errors out, whether the new slice is persisted immediately, or anything about side effects on existing slices.

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 short sentences, front-loaded with the core action and constraint, with no filler. The parenthetical frame-scope note is slightly straggly but still earns its place.

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 a 6-parameter mutation tool with full schema coverage and an output schema, the description covers the two non-schema invariants (uniqueness, frame-wide scope). It leaves gaps around duplicate-name behavior and the default semantics of the optional color/pivot/center parameters, which matters for a creation tool.

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 coverage is 100%, so the schema already documents rect, color, pivot, and center thoroughly. The description's one genuine addition is the uniqueness constraint on name, which the schema cannot express; the restating of rect as canvas pixels is redundant with the 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?

Uses a specific verb ("Add") with a specific resource ("a named slice over rect") and states the coordinate space (canvas pixels). It is clearly distinguishable from delete_slice/update_slice by the additive verb, though it never names a sibling outright.

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: "Add" signals creation, and the note that per-frame slice keys are not supported rules out one alternative approach. There is no explicit guidance on when to prefer this over update_slice or what happens if the name already exists.

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