Skip to main content
Glama

add_layer

Creates a normal, group, or tilemap layer in an Aseprite sprite, optionally under a parent group, and returns the new layer's path.

Instructions

Add a layer, group or tilemap layer on top of its parent's stack.

Returns the new layer's path. Names do not have to be unique.

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

Input Schema

NameRequiredDescriptionDefault
kindNoWhat to addnormal
nameYesLayer name
pathYesSprite file. Relative paths resolve against the server root.
parentNoGroup to add the layer to; empty for the top level
tile_sizeNoTile width and height, tilemap only

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It usefully discloses the insertion position (top of the parent's stack), that names need not be unique, and what is returned; it omits mutation scope, whether the parent must already exist, and any failure behavior for a bad path or an invalid tile_size.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the action and the return value, with no filler or repetition. Every sentence adds information an agent would otherwise have to guess.

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 five-parameter creation tool with no annotations, the description covers purpose, placement and return value, and an output schema exists so return formatting needs no explanation. It still leaves unaddressed what happens on a nonexistent parent or a path that fails to resolve, and whether tile_size is required for the tilemap kind.

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 kind, name, path, parent and tile_size, which sets the baseline at 3. The single addition beyond the schema — 'Names do not have to be unique' — is genuinely useful semantic information for the name parameter, though it is the only value added.

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 and resource — 'Add a layer, group or tilemap layer' — and names the three kinds it covers, matching the 'kind' enum. It does not distinguish itself from siblings like duplicate_layer or copy_layers, so an agent must infer that this creates an empty new layer rather than a copy.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance and no mention of alternatives, despite several siblings (duplicate_layer, copy_layers, add_frames) whose selection hinges on whether the agent wants a new empty layer or a copy. 'On top of its parent's stack' only weakly implies the creation context.

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