Skip to main content
Glama

add_layer

Destructive

Add a new layer or layer group to an Aseprite file, placing it on top or inside an existing group.

Instructions

Add a layer (or a layer group when group=True) on top. parent places it inside an existing group.

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
nameYes
pathYes
groupNo
parentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare this is a non-idempotent, destructive write to a closed-world document, so the safety profile is covered. The description adds useful placement semantics ('on top', parent nests inside a group) but says nothing about reversibility, ordering of existing layers, or failure modes when parent is missing.

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 with no wasted words, and the primary action is front-loaded before the parenthetical variant. The backtick-quoted parameter references make it easy to scan, though the parenthetical interrupts the main clause.

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 four-parameter destructive write with no output schema and zero schema descriptions, the definition is thin: it omits what path refers to, what is returned on success, and what occurs on invalid parent. The essentials for invocation are mostly present, but an agent would need to inspect the schema to call it confidently.

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 description coverage is 0%, so the description must carry parameter meaning; it does clarify group and parent, which is real added value. However, the required `path` parameter — presumably the target sprite file — is never explained, and `name` is only implicitly the layer's name, leaving a key required parameter ambiguous.

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 uses a concrete verb+resource ('Add a layer') and immediately distinguishes the variant behavior ('or a layer group when group=True'). It is understandable apart from siblings like create_sprite or add_frames, though it never mentions the document/sprite being modified, leaving the target slightly implicit.

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?

It explains conditional behavior of two flags but gives no when-to-use guidance: no statement of prerequisites, no indication of when to prefer this over other structural tools, and no note about what happens if the required path or existing parent is invalid.

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