Skip to main content
Glama

generate_animation_set

Generate several animations in one job, one clip per animation, all run in parallel. For several facings of one character (its rotation views) use this, not one animate_sprite call per facing: the set decides room and size once for every facing, so they come out one size. Ways to use it:

  1. A PRESET on one or more sprites: platformer-character (idle, walk, run, jump, attack-1, death, hurt) or a top-down set (topdown-walk/run/dash/attack/idle: 8 directions; topdown-idle-4: the 4 cardinals only). Every sprite gets EVERY action of the preset: topdown-run on one image makes all 8 runs (8 clips), not one. For one clip, pass no preset and type the action (way 3).

  2. A PRESET across an 8-way rotation set: one item per facing, {assetId, frameIndex:, imageIndex:i} where i is the facing's position in the frame's facings list, and every facing gets its own directional clip (walk-left from the left-facing image, …). If the facings list has no 'down' (the sprite was drawn facing the camera), add {assetId, base:true} as 'down'. If it already has 'down' (a side-view sprite), use only the rotation's own images: the base is the side view, not the front. For topdown-idle-4 pick only the 4 cardinals (down, right, up, left). The left, up-left and down-left clips are mirrored from their right-side twins in the same rotation set, for free; set flipFacings false to animate them too.

  3. No preset, a typed action: one clip per image. A list of actions makes one clip per action (up to 6): 'name: description' separated by semicolons names each clip (e.g. 'attack-2: an overhead slash; block: raise the sword to guard'); for one image a plain 'idle, run, jump' also works. Several actions on several images: every image gets every action. Cost: see get_animation_presets for the current price (per clip: 15 credits, 25 for a 1024 HD image, 30 for a looping walk/run on one); the plan below states the exact total. Mirrored clips are free and clips that fail are refunded. Clips that come back to their start (idle, walk, run, attack, jump, hurt, dash) end on their own first frame, so they loop; one-off clips such as a death do not. Clips are added to their source asset as frames named after the action. Price check: without expectedCost this only shows the plan (the clips it would make and the total) and charges nothing; show it to the user, then call again with expectedCost set to that total. A plan that would charge anything else is refused, with nothing charged.

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": {
      "items": "<items>"
    },
    "name": "generate_animation_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
roomNoRoom for big moves, decided once per sprite for the whole set so it is one size in every clip. auto: if any clip is a big move (kick, special, fall, jump) and the character fills its frame, every clip of that sprite draws it a little smaller. on: always. off: neverauto
waysNoWith facings 'rotation': 8 facings (default) or the 4 cardinals
itemsYesImages to animate, in order
presetNoNamed set of actions (see get_animation_presets)
promptNoWithout a preset: the actions to make, as 'name: description' separated by semicolons. With one: optional extra direction for every clip
facingsNo'rotation' with ONE item and a topdown-* preset: run it on that sprite's 8-way rotation (its newest, or the item's frameIndex), one clip per facing with the left side mirrored, as the app's Animation set does with nothing picked. Saves listing every facing as an item (way 2). Without it a top-down preset on one image draws every heading from that one view
autoFlipNoAfter the run, mirror every right-side clip on the asset that has no left twin (animate only the right-facing turns, get all eight). Free
slotEndsNoOptional end frame per item, in items' order: an image key from any of your assets (get_asset lists them) or its cdn.voidless.dev URL, or {frameIndex, imageIndex} / {base: true} on that item's own asset; null = the default ending. The clip ends on that pose
holdFacingNoEnd every clip on the frame it started from, even one-off clips such as a death (by default loops end on their start and one-offs don't)
flipFacingsNoOn an 8-way rotation set, mirror the left-side clips from the right-side ones instead of animating them (mirrored clips are free). One-sided details swap sides, as on the rotation images
expectedCostNoThe total in credits the user confirmed from the plan. Omit to get the plan first (free)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / facings
      Added value: +{
      +  "description": "'rotation' with ONE item and a topdown-* preset: run it on that sprite's 8-way rotation (its newest, or the item's frameIndex), one clip per facing with the left side mirrored, as the app's Animation set does with nothing picked. Saves listing every facing as an item (way 2). Without it a top-down preset on one image draws every heading from that one view",
      +  "enum": [
      +    "rotation"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / slotEnds
      Added value: +{
      +  "description": "Optional end frame per item, in items' order: an image key from any of your assets (get_asset lists them) or its cdn.voidless.dev URL, or {frameIndex, imageIndex} / {base: true} on that item's own asset; null = the default ending. The clip ends on that pose",
      +  "items": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      },
      +      {
      +        "properties": {
      +          "base": {
      +            "type": "boolean"
      +          },
      +          "frameIndex": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "imageIndex": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  "maxItems": 12,
      +  "type": "array"
      +}
    • addedInput schema / properties / ways
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": 8,
      +      "type": "number"
      +    },
      +    {
      +      "const": 4,
      +      "type": "number"
      +    }
      +  ],
      +  "description": "With facings 'rotation': 8 facings (default) or the 4 cardinals"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / preset / enum
      Previous value: -[
      -  "platformer-character",
      -  "topdown-walk",
      -  "topdown-run",
      -  "topdown-dash",
      -  "topdown-attack",
      -  "topdown-idle"
      -]New value: +[
      +  "platformer-character",
      +  "topdown-walk",
      +  "topdown-run",
      +  "topdown-dash",
      +  "topdown-attack",
      +  "topdown-idle",
      +  "topdown-idle-4"
      +]
  3. Changed1 schema field changed
    • addedInput schema / properties / expectedCost
      Added value: +{
      +  "description": "The total in credits the user confirmed from the plan. Omit to get the plan first (free)",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false; the description goes well beyond by disclosing that clips are appended to the source asset as named frames, that mirrored clips are free, that failed clips are refunded, the per-clip credit prices, and the two-step plan/expectedCost confirmation flow. It also explains looping behavior (clips that return to their start frame loop; one-offs like death do not), which is exactly the kind of non-obvious behavior an agent needs.

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?

The description is long but front-loaded: purpose, then the anti-pattern it replaces, then numbered usage modes, then cost and the plan/price protocol. It is dense rather than padded, though the cost and expectedCost-confirmation idea is stated twice (once in the cost paragraph, once in the closing 'Price check' paragraph) and could be consolidated.

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?

For an 11-parameter, multi-mode generation tool with no output schema, the description covers the full decision surface: which mode to pick, how items and presets compose, mirroring economics, cost confirmation to avoid mischarges, and loop-versus-one-off endings. Nothing material needed to call it correctly appears to be missing.

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 earns above that by adding cross-parameter semantics the schema cannot express: that a preset applies every action to every item, that `base:true` supplies the missing 'down' facing, that left-side clips are mirrored from right-side twins unless flipFacings=false, and that expectedCost is a confirmation of a previously returned plan. It stops short of restating every field, which is appropriate when the schema already documents them.

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?

The opening sentence states a specific verb and resource ('Generate several animations in one job, one clip per animation, all run in parallel') and immediately scopes it against the sibling: 'For several facings of one character (its rotation views) use this, not one animate_sprite call per facing.' An agent can distinguish this from animate_sprite without opening either schema.

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?

It enumerates three concrete modes of use (preset on sprites, preset across a rotation set, typed actions with no preset), names when each applies, and specifies the alternative to avoid ('not one animate_sprite call per facing'). It also routes to get_animation_presets for pricing and get_asset for frame ids, so the agent knows where to get prerequisites.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources