Skip to main content
Glama

export_motion_trail

Destructive

Composite every frame of a motion into one still image with progressive opacity fading, so you can judge arc, spacing, and squash at a glance instead of watching a GIF.

Instructions

Export every frame of a motion composited into one image, the oldest faintest.

The way to judge whether a whole motion reads: arc shape, spacing and squash are all
visible at once in a still image that can be studied, where a GIF moves on before a
defect can be seen, and `export_onion_skin` shows only a few frames either side of one.

Args:
    filename: The sprite.
    output: The image to write. Use .png: the fades are alpha, which a GIF cannot keep.
    tag: Composite this tag's frames.
    frames: Or these frames (1-based), in the order given. Pass neither for every
        frame of the sprite, and not both.
    scale: Integer upscaling of the output (default 6). The scaled image is held to
        the same caps as any canvas.
    overwrite: Replace `output` if it already exists (default False = no-clobber).

Frame i of n is drawn at opacity 255 * i / n, so the last is fully opaque and on top.
An opaque Background layer would bury every frame under the next, so when there is one
it is drawn once, as of the last frame, and the frames contribute their other layers.

Returns the frames used, the opacity each was drawn at, and whether a Background was
laid underneath.

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": {
      "filename": "<filename>",
      "output": "<output>"
    },
    "name": "export_motion_trail"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
scaleNoDefault: 6.
framesNo
outputYes
filenameYes
overwriteNoDefault: false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.11.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations flag destructiveHint=true and readOnlyHint=false; the description explains the mechanism (writes output, overwrite default False = no-clobber) and adds real behavioral detail: .png is required because fades are alpha, the opacity formula 255*i/n, and the edge case where an opaque Background layer is drawn once as of the last frame. It also discloses what is returned. Minor gap: no explicit note that overwriting destroys the previous file's contents beyond the no-clobber default.

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?

Front-loaded with purpose, then structured Args, then rendering semantics and return values — easy to scan. The middle justification sentence about GIFs and onion skins is longer than strictly needed, but it carries genuine decision-relevant comparison rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, yet the description states what is returned (frames used, opacity per frame, whether a Background was laid underneath). Combined with the parameter semantics, format constraint, and edge-case handling for Background layers, an agent has everything needed to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33% (scale and overwrite carry only their defaults), so the description must compensate, and it does: every one of the six parameters is explained in the Args block, including the tag/frames mutual exclusion and 1-based frame ordering that the schema does not encode.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource+scope: 'Export every frame of a motion composited into one image, the oldest faintest.' It immediately distinguishes this from sibling exports by naming export_onion_skin and GIF output as things this is not.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when: judging whether a whole motion reads (arc shape, spacing, squash visible at once). It explicitly contrasts with GIF (moves on before a defect can be seen) and export_onion_skin (only a few frames either side). It also states the parameter exclusion rule: pass tag or frames, 'not both', and neither for everything.

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

Deploy Server

Other Tools