Skip to main content
Glama

set_tag

Create a named animation tag spanning a frame range in an Aseprite sprite, or update the existing tag with that name. Set playback direction and repeat count.

Instructions

Create a tag over frames from_frame..to_frame, or update the tag with that name.

If several tags share the name, the first one is updated.

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>",
      "from_frame": "<from_frame>",
      "to_frame": "<to_frame>"
    },
    "name": "set_tag"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesTag name, matched exactly
pathYesSprite file. Relative paths resolve against the server root.
repeatNoTimes to play the tag; 0 loops forever
to_frameYes1-based frame number
directionNoPlayback direction of the tagforward
from_frameYes1-based frame number

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 behavior burden; it does disclose the important non-obvious trait that a same-named tag is updated in place and that the first match wins when duplicates exist. However it omits what happens to existing tag attributes not supplied in the call, whether frames outside the sprite's bounds error, and that this is a mutation with side effects.

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; the primary operation is front-loaded and the duplicate-name edge case follows immediately. Nothing redundant is included.

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?

Six parameters are fully documented in the schema and an output schema exists, so the description only needs to cover behavior — which it does for the upsert and duplicate-name cases. The remaining gap is update semantics for unspecified attributes on an existing tag, which matters for a mutation tool with no annotations.

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 the baseline is 3, and the description adds framing above it by indicating that from_frame/to_frame define an inclusive span and that name is the exact-match key driving the upsert. It does not clarify how repeat/direction behave on update of an existing tag, which would have pushed it higher.

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 set (create/update) plus the resource (a tag) and the frame range it spans, so the agent knows exactly what the call produces. It does not name any sibling or contrast itself with delete_tag, but the operation is unambiguous on its own.

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 description implicitly clarifies the create-vs-update decision by describing it as an upsert keyed on the tag name, which helps callers decide when this tool applies. It gives no explicit when-not guidance, no mention of prerequisites (e.g. the sprite file must exist, frames must be within range), and no pointer to delete_tag for removal.

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