Skip to main content
Glama

clear_cels

Delete a layer's cels in specified frames to clear sprite content, skipping frames without cels and returning the number removed.

Instructions

Delete a layer's cels in the given frames; frames without a cel are skipped.

Linked cels in other frames keep their image. Returns how many cels were removed. The layer must not be locked.

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>",
      "layer": "<layer>",
      "frames": "<frames>"
    },
    "name": "clear_cels"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesSprite file. Relative paths resolve against the server root.
layerYesLayer name, or a 'group/child' path for nested layers
framesYesFrames: a number, "1-4", "1-4,7" or "all" (1-based)

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 supplied, the description carries the full burden and does well: it discloses skip behavior for frames lacking a cel, preserves linked cel images elsewhere, states the return count, and names the locked-layer precondition. It omits reversibility/undo semantics, which keeps it from a 5.

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?

Three short sentences, front-loaded with the action and scope, followed by edge-case behavior and the precondition. No redundant or filler wording; the return-count sentence is arguably redundant with the output schema but is a single clause.

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 destructive three-parameter mutation tool with no annotations, the description covers scope, edge cases, linked-cel side effects, the return value, and a precondition. Only reversibility and permission/auth context are missing, and an output schema already covers the return shape.

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 100% and the schema already documents path, layer, and frames syntax including ranges and 'all'. The description adds only that frames without a cel are skipped, which is behavioral rather than parameter clarification, so baseline 3 applies.

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 gives a specific verb and resource: delete a layer's cels in the given frames, and it clarifies the cel-vs-frame distinction so an agent can tell it apart from frame-level deletion tools. It does not explicitly name which sibling handles whole-frame deletion, so it stops short of a 5.

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 by the scope statement ('a layer's cels in the given frames') and a prerequisite is stated ('The layer must not be locked'), but there is no explicit when-to-use versus alternatives guidance, e.g. when to use this instead of delete_frames or delete_layer.

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