Skip to main content
Glama

Retarget selected donor clips onto a prepared target

asset_retarget_animations
Idempotent

Retarget donor GLB animation clips onto a prepared target skeleton with world-space rest correction, preserving mesh, materials, UVs, and existing clips, then publish a game-ready GLB.

Instructions

Load a user-supplied local donor GLB or fetch the selected pinned release donors, retarget their clips onto a prepared target skeleton with a world-space rest correction, preserve the target's mesh/materials/UVs and (by default) its existing clips, and publish a game minimal GLB. For a pinned clip, root motion requires the matching _RM donor.

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": {
      "target": "<target>",
      "output": "<output>",
      "projectRoot": "<projectRoot>",
      "clips": "<clips>"
    },
    "name": "asset_retarget_animations"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipsYes
outputYesOutput .glb path under projectRoot.
targetYesAbsolute path to the prepared target GLB (e.g. the AETHER sample).
mappingNo
priorDigestNo
projectRootYesProject root that must contain the output.
keepExistingClipsNo

Output Schema

NameRequiredDescriptionDefault
bytesYes
clipsYes
outputYes
sha256Yes
statusYes
mappingYes
replacedYes
alreadyExistedYes
animationBytesYes
animationCountYes
meshTextureBytesYes
keepExistingClipsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.2
    • addedInput schema / properties / clips / items / properties / donorAnimation
      Added value: +{
      +  "description": "Animation name inside donorPath. Required if the donor has multiple animations.",
      +  "maxLength": 300,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / clips / items / properties / donorPath
      Added value: +{
      +  "description": "Local donor GLB with a skeleton and animation. Mixamo-style mixamorig: joints are supported.",
      +  "maxLength": 4096,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / clips / items / properties / id / description
      Previous value: -"Pinned donor clip id, e.g. ual1/Walk_Loop."New value: +"Pinned donor clip id, or the output animation name when donorPath is provided."
    • changedOutput schema / properties / clips / items / properties / omittedRoles / maxItems
      Previous value: -64New value: +1024
    • changedOutput schema / properties / mapping / maxItems
      Previous value: -128New value: +256
  2. Addedv0.1.1

TDQS

A3.9/5.0
Behavior3/5

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

Adds real context beyond the annotations: with destructiveHint=false it spells out what survives (mesh/materials/UVs and, by default, existing clips) and that a world-space rest correction is applied. It does not explain the meaning of priorDigest, mapping behavior, or failure handling for missing donors, which matters for a write-and-publish 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?

Front-loaded with the action and sequenced as a workflow (acquire → retarget → preserve → publish), with the root-motion caveat placed last. It is dense in a single sentence, but each clause carries information an agent needs.

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?

An output schema exists, so return values need not be described, and the description still covers the input provenance and preservation contract. The remaining gap is the two wholly unexplained parameters (mapping, priorDigest) in a 7-parameter tool.

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

Parameters3/5

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

Schema coverage is only 43%, and the description covers just a slice of it: the pinned-vs-donorPath distinction and the _RM variant constraint. mapping and priorDigest remain undocumented in both schema and description, and keepExistingClips is only echoed as 'by default'.

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?

States a specific verb chain (load/fetch donors, retarget clips, preserve target data, publish GLB) with the resource named precisely. The scope of 'retarget donor clips onto a prepared target' is distinguishable from siblings like asset_auto_rig or asset_preview_animation without opening a schema.

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?

Makes the operating conditions clear: the target must be 'prepared', donors may come from a local GLB or from pinned releases, and a pinned clip's root motion 'requires the matching _RM donor'. No explicit when-not or named alternatives, so it stops short of a 5.

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