Skip to main content
Glama

Animate 3D model with a preset or your animation

animate3DModelPreset

Apply a curated animation preset, or one of the account's generated animations, to an already-rigged 3D model (retargeting). Pass the rigged GLB in model (URL or base64; the 3D asset file, not an AI model name) and exactly one of a preset_id from the animation presets list (from listAnimationPresets; any preset id works) and an animation_id (the id of an animation from createAnimation or listMyAnimations). Set mirror to play the move on the other side, left and right swapped (a left-handed slash from a right-handed one). Any rig type can take a preset or an animation, though retargeting does not succeed on every model: when it does not, the job fails. The job result is one retargeted animation - a standalone animation-only GLB in glb_url plus an mp4 preview_url - in the same animations envelope as the animate endpoint. An animation that loops is trimmed to its seamless loop; a one-shot keeps its full arc. in_place removes net travel so the character moves on the spot, as game-engine locomotion expects (omit to apply it to animations that loop: a cycle stays on the spot, a one-shot keeps its travel). Credits are held when the job is accepted and refunded if it fails or is cancelled. Async generation job: returns {id, status} - poll getApiJob (job and credit contract: see the server instructions).

Credits: This endpoint consumes 0.5 credits per call.

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": {
      "requestBody": "<requestBody>"
    },
    "name": "animate3DModelPreset"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestBodyYesPayload for animating a rigged 3D model with a preset animation or a generated animation

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / requestBody / description
      Previous value: -"Payload for animating a rigged 3D model with a preset animation"New value: +"Payload for animating a rigged 3D model with a preset animation or a generated animation"
    • addedInput schema / properties / requestBody / properties / animation_id
      Added value: +{
      +  "description": "id of one of the account's generated animations (from createAnimation or listMyAnimations), retargeted onto the model like a preset. Exactly one of preset_id and animation_id; an animation that is not on the account returns HTTP 404.",
      +  "type": "string"
      +}
    • removedInput schema / properties / requestBody / properties / crop_loop
      Removed value: -{
      -  "description": "Trim the animation to the span that loops seamlessly. Omit to follow the preset's own loop flag. Ignored when no clean loop exists.",
      -  "type": "boolean"
      -}
    • changedInput schema / properties / requestBody / properties / in_place / description
      Previous value: -"Remove the animation's net travel so the character moves on the spot (engine-driven locomotion). Omit to keep the preset's own travel."New value: +"Remove the animation's net travel so the character moves on the spot (engine-driven locomotion). Omit to apply it to animations that loop: a cycle stays on the spot, a one-shot keeps its travel."
    • addedInput schema / properties / requestBody / properties / mirror
      Added value: +{
      +  "description": "Play the move on the other side, left and right swapped (a slash with the left arm from one with the right). Works with a preset and with an animation. Off unless set to true.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / requestBody / properties / preset_id / description
      Previous value: -"id of an animation preset from listAnimationPresets. Any preset id from that list works."New value: +"id of an animation preset from listAnimationPresets. Any preset id from that list works. Exactly one of preset_id and animation_id."
    • changedInput schema / properties / requestBody / required
      Previous value: -[
      -  "model",
      -  "preset_id"
      -]New value: +[
      +  "model"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / requestBody / properties / model / description
      Previous value: -"The already-rigged 3D asset, as a URL or base64-encoded GLB file (not an AI model name). Rig it first, with rigModel or with create3DModel's rig (any rig type)."New value: +"The already-rigged 3D asset, as a URL or base64-encoded GLB file (not an AI model name). Rig it first, with rigModel or with create3DModel's rig (any rig type). Up to 30MB; a larger file is rejected with HTTP 400."
  3. Changed1 schema field changed
    • addedInput schema / properties / requestBody / description
      Added value: +"Payload for animating a rigged 3D model with a preset animation"
  4. Changed1 schema field changed
    • changedInput schema / properties / requestBody / properties / model / description
      Previous value: -"The already-rigged 3D asset, as a URL or base64-encoded GLB file (not an AI model name). Rig it with rigModel using rig_type humanoid_template or humanoid_template_hands first."New value: +"The already-rigged 3D asset, as a URL or base64-encoded GLB file (not an AI model name). Rig it first, with rigModel or with create3DModel's rig (any rig type)."
  5. Changed1 schema field changed
    • changedInput schema / properties / requestBody / properties / preset_id / description
      Previous value: -"id of an animation preset from the presets list. Only presets that expose a clip_url can be applied to a 3D model."New value: +"id of an animation preset from listAnimationPresets. Any preset id from that list works."
  6. Changed3 schema fields changed
    • changedInput schema / properties / requestBody / properties / in_place / description
      Previous value: -"Remove the animation's net travel so the character moves on the spot (engine-driven locomotion). Omit to follow crop_loop."New value: +"Remove the animation's net travel so the character moves on the spot (engine-driven locomotion). Omit to keep the preset's own travel."
    • changedInput schema / properties / requestBody / properties / model / description
      Previous value: -"URL or base64-encoded already-rigged GLB (rig it with a humanoid_template rig_type first)."New value: +"The already-rigged 3D asset, as a URL or base64-encoded GLB file (not an AI model name). Rig it with rigModel using rig_type humanoid_template or humanoid_template_hands first."
    • changedInput schema / properties / requestBody / properties / request_id / description
      Previous value: -"Optional client-provided identifier, unique per request. Re-sending the same request_id returns the existing job instead of generating again. Also usable with the results endpoint."New value: +"Optional client-provided identifier, unique per request. Re-sending the same request_id returns the existing job instead of generating again. Also usable as the request_id filter of listGenerations."
  7. Changed1 schema field changed
    • changedInput schema / properties / requestBody / properties / request_id / description
      Previous value: -"Optional client-provided id to retrieve the result later."New value: +"Optional client-provided identifier, unique per request. Re-sending the same request_id returns the existing job instead of generating again. Also usable with the results endpoint."
  8. Changed1 schema field changed
    • changedInput schema / properties / requestBody / properties / model / example
      Previous value: -"<url> OR data:image/png;base64,..."New value: +"<url> OR data:model/gltf-binary;base64,..."
  9. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses the async job contract (returns {id, status}, poll getApiJob), the credit lifecycle (0.5 credits held on acceptance, refunded on failure or cancellation), the failure mode for unretargetable rigs, loop trimming behavior, and the request_id reuse caveat that softens the idempotentHint=false annotation. This is unusually rich behavioral context for a mutation tool.

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?

It is front-loaded with the purpose and ordered sensibly (inputs, then behavior, then output, then credit/async contract). It is dense and long, and re-explains mirror and in_place nearly verbatim from the schema, which is the main wasted text.

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?

There is no output schema, and the description compensates by describing the return value precisely (one standalone animation-only GLB in glb_url plus an mp4 preview_url, in the same animations envelope). Combined with the async polling instruction and credit contract, an agent has everything needed to call and follow up 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 100%, so the schema already carries baseline semantics; the description nonetheless reinforces the most error-prone constraints, notably the mutual exclusivity of preset_id and animation_id and the 'not an AI model name' clarification for model. Its mirror/in_place/mirror-text largely repeats schema wording, so it is additive only at the constraint level.

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+resource ('apply a curated animation preset, or one of the account's generated animations, to an already-rigged 3D model') and names the operation as retargeting. It also disambiguates 'model' as the GLB asset rather than an AI model name, and separates the two input sources (preset vs. generated animation) that would otherwise look like one path.

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

Usage Guidelines4/5

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

It gives explicit prerequisites and alternatives: rig first with rigModel or create3DModel's rig, get presets from listAnimationPresets, get animations from createAnimation or listMyAnimations, and enforce exactly one of preset_id/animation_id. It also warns that retargeting does not succeed on every model. The only gap is that it never explicitly contrasts this tool with the sibling animate3DModel (referenced only in passing for the output envelope).

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.