Skip to main content
Glama

export_gif

Destructive

Exports a full animation as an animated GIF while honoring frame durations and tag ranges; disable looping for one-shot actions that should play once instead of repeating.

Instructions

Export the full animation as an animated GIF (honours frame durations).

Tag *ranges* are honoured, but a tag's playback direction is not: a GIF is a flat
frame sequence. A ping-pong tag exports forward, and the result says so in
`warnings` rather than letting the caller find out in-engine.

Args:
    overwrite: Replace `output` if it already exists (default False = no-clobber).
    loop: True (the default) repeats forever, which is what Aseprite writes and what
        a cycle wants. False plays the animation once and stops.

`loop=False` is the one a one-shot needs, and there was no way to ask for it. An attack
or a death is not a cycle: built from tags at `repeats=1`, with `validate_loop`
confirming it does not close, it still exported as an endless loop that snapped from
the recovery pose back to the wind-up. Set this and the result reports `loops`.

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_gif"
  }
}

Input Schema

NameRequiredDescriptionDefault
loopNoDefault: true.
scaleNoDefault: 1.
outputYes
filenameYes
overwriteNoDefault: false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.0
    • addedInput schema / properties / loop
      Added value: +{
      +  "default": true,
      +  "description": "Default: true.",
      +  "type": "boolean"
      +}
  2. Changed7 schema fields changedv0.10.0
    • removedInput schema / properties / filename / title
      Removed value: -"Filename"
    • removedInput schema / properties / output / title
      Removed value: -"Output"
    • addedInput schema / properties / overwrite / description
      Added value: +"Default: false."
    • removedInput schema / properties / overwrite / title
      Removed value: -"Overwrite"
    • addedInput schema / properties / scale / description
      Added value: +"Default: 1."
    • removedInput schema / properties / scale / title
      Removed value: -"Scale"
    • removedInput schema / title
      Removed value: -"export_gifArguments"
  3. First observedv0.7.0

TDQS

A3.7/5.0
Behavior4/5

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

The annotations only declare that this is a non-read-only, destructive write. The description goes well beyond that: it discloses the no-clobber default for overwrite, that tag ranges are honored but playback direction is flattened, that ping-pong tags export forward and surface a `warnings` entry, and that the result reports `loops`. That is meaningful behavioral context for a file-writing tool, though the failure/overwrite consequences could be sharper.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The front-loaded first sentence and the Args block are well organized. However, the closing paragraph is a changelog-style justification ('there was no way to ask for it', the attack/death narrative) that repeats the loop semantics already stated and spends several sentences on motivation rather than actionable information.

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 five-parameter export tool with no output schema, the description covers the risky/ambiguous parameters and even names the `warnings` and `loops` result fields, which compensates for the missing output schema. The undocumented `scale` parameter is the main gap, and overall the definition is sufficient to call the tool correctly.

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 60% and the schema descriptions are bare defaults, so the description carries real weight: it explains that overwrite=True replaces an existing `output` and that loop=True repeats forever while False plays once. These are the two parameters with semantic nuance. filename, output, and scale are left unexplained in the description, keeping it below a 5.

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 opening sentence names a specific verb and resource ('Export the full animation as an animated GIF') and scopes it to the whole animation, which implicitly separates it from tag- or frame-level siblings. The parenthetical 'honours frame durations' adds a concrete behavioral detail. It stops short of explicitly naming the sibling it is not, so a 4 rather than 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?

Guidance exists for the loop parameter ('loop=False is the one a one-shot needs'), including a concrete attack/death example, but there is no explicit statement of when to choose export_gif over export_tag_gif or export_frames. The when-to-use context is implied by 'full animation' rather than spelled out.

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