Skip to main content
Glama

add_frames

Inserts one or more frames into an Aseprite sprite at a chosen position, optionally copying adjacent cel content and setting frame duration. Returns the new frame numbers.

Instructions

Insert frames, empty unless copy_content is true. Returns the new frame numbers.

copy_content copies every layer's cel of the frame before the new ones (the old first frame when after=0) as independent cels. Without duration_ms the new frames take the duration of that same frame.

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": "add_frames"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesSprite file. Relative paths resolve against the server root.
afterNoInsert after this frame; 0 inserts at the start, null appends
countNoFrames to add
duration_msNoDuration of the new frames
copy_contentNoCopy the cels of the frame before the new ones

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/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 new frames are empty by default, that copied cels are independent per-layer copies, that duration is inherited from the preceding frame when duration_ms is omitted, and that frame numbers are returned. It omits whether the sprite file is written to disk, error behavior for out-of-range 'after', and any undo/reversibility guarantees.

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 core behavior is front-loaded in the first sentence and the follow-up sentences each address a distinct semantic question. The second sentence's parenthetical ("the old first frame when after=0") is dense but necessary, and there is little filler.

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 5-parameter mutation tool with no annotations, the description covers the non-obvious defaults (emptiness, content copying, duration inheritance) that an agent could not safely assume. Remaining gaps are persistence and error semantics, which are secondary given the output schema exists and parameter docs are complete.

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 3 is the baseline, but the description adds real meaning beyond the schema: it explains what copying actually does (every layer's cel, independent cels) and resolves the edge case of which frame is the source when after=0. The duration inheritance rule for omitted duration_ms is likewise not derivable from the schema.

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 ("Insert frames") and immediately qualifies the default outcome ("empty unless copy_content is true"), which separates it in spirit from a pure duplication tool. It never names a sibling such as copy_frames, so the differentiation is implicit rather than explicit.

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?

The copy_content explanation implies when to use the flag, but the description never states when to choose this tool over alternatives like copy_frames or add_layer. The reader must infer the usage boundary from the parameter prose.

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