Skip to main content
Glama

oscillate_cels

Swing a layer's cels along a sine wave across selected frames to create bob or sway loops in Aseprite, with adjustable X/Y amplitude, cycles, and phase.

Instructions

Swing a layer's cels along a sine wave across the frames (a bob or sway loop).

Frame i of n is placed at base + amplitude * sin(2π(cycles * i/n + phase)), rounded, so the last frame leads back into the first. The base is chosen so the first frame keeps its current position: running the tool again with the same arguments gives the same result. An axis with amplitude 0 is left as it is. Every frame needs a cel. 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": "oscillate_cels"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesSprite file. Relative paths resolve against the server root.
layerYesLayer name, or a 'group/child' path for nested layers
phaseNoOffset in cycles
cyclesNoFull waves across the frames
framesYesFrames: a number, "1-4", "1-4,7" or "all" (1-based)
amplitude_xNoHorizontal swing in pixels
amplitude_yNoVertical swing in pixels

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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 determinism/idempotency ('running the tool again with the same arguments gives the same result'), the per-axis no-op at amplitude 0, prerequisites (unlocked layer, cel on every frame), and rounding behavior. It omits anything about mutating in place versus returning a new sprite, but the existence of an output schema covers the return side.

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?

Front-loaded one-line summary followed by the formula and then the constraints, each in its own short sentence. Every sentence carries operational information; nothing is padding.

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 7-parameter transform tool with 3 required params and rich schema descriptions, the description supplies the math, loop-closure behavior, prerequisites and idempotency. The only soft spot is error behavior when a frame lacks a cel, which is stated as a requirement but not as an outcome.

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 baseline is 3, and the description exceeds it by explaining how amplitude, cycles and phase combine in the placement formula and by stating that amplitude 0 disables an axis. That is real added meaning over the terse schema strings.

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 ('Swing a layer's cels') plus the exact operation (sine wave across frames) and a use-case gloss ('bob or sway loop'). It does not name the nearest siblings such as tween_cels or clear_cels, so differentiation is left to the reader.

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 'bob or sway loop' parenthetical implies the intended context, and the prerequisites (must not be locked, every frame needs a cel) narrow applicability. There is no explicit when-not-to-use guidance and no named alternative for one-off or linear motion.

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