Skip to main content
Glama

Auto-rig an unrigged humanoid

asset_auto_rig
Idempotent

Fit an 18-joint humanoid skeleton to an unrigged GLB using geometry landmarks, bind smooth or rigid weights, and publish the skinned GLB; ambiguous anatomy returns a landmark correction request.

Instructions

Fit an 18-joint humanoid skeleton to an unrigged local GLB by measured geometry landmarks, bind smooth or rigid skin weights and publish the skinned GLB under the project root. Preserves an existing rig unless replaceRig is set; ambiguous anatomy returns a landmark correction request instead of a bad rig.

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>"
    },
    "name": "asset_auto_rig"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputYesOutput .glb path under projectRoot.
targetYesAbsolute path to an unrigged humanoid GLB.
overridesNo
replaceRigNo
weightModeNosmooth
orientationNo
priorDigestNo
projectRootYesProject root that must contain the output.
maxInfluencesNo

Output Schema

NameRequiredDescriptionDefault
bytesYes
jointsYes
outputYes
sha256Yes
statusYes
targetYes
measureYes
replacedYes
landmarksYes
weightModeYes
ambiguitiesYes
diagnosticsYes
orientationYes
maxInfluencesYes
alreadyExistedYes
skinnedVerticesYes
maxNormalizationErrorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.1.2
    • addedInput schema / properties / overrides / additionalProperties / items
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / overrides / additionalProperties / maxItems
      Added value: +3
    • addedInput schema / properties / overrides / additionalProperties / minItems
      Added value: +3
    • removedInput schema / properties / overrides / additionalProperties / prefixItems
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedOutput schema / properties / landmarks / items / properties / position / items
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / landmarks / items / properties / position / maxItems
      Added value: +3
    • addedOutput schema / properties / landmarks / items / properties / position / minItems
      Added value: +3
    • removedOutput schema / properties / landmarks / items / properties / position / prefixItems
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
  2. Addedv0.1.1

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations (which already state non-read-only, idempotent, non-destructive, closed-world), the description discloses real behavioral traits: an existing rig is preserved unless replaceRig is set, and ambiguous anatomy yields a landmark correction request instead of a bad rig. It also states where the artifact lands (project root) and that both smooth and rigid binding modes exist. This failure-mode and preservation detail is exactly the kind of context annotations cannot carry.

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?

Two sentences, no filler, and the primary action is front-loaded ahead of the edge-case behavior. The second sentence is dense but each clause (preservation, ambiguity fallback) carries distinct information. Minor cost: cramming three ideas into one sentence makes the fallback behavior easy to skim past.

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

Completeness3/5

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

The tool is complex (9 params, nested orientation/overrides objects) but has an output schema and annotations, so return values and safety need not be explained. The description covers the happy path, preservation semantics and the ambiguity fallback well, yet leaves key inputs (orientation axes for non-standard assets, priorDigest, maxInfluences) silent. That leaves an agent unable to use roughly half the surface without guessing.

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 description coverage is only 33%, so the description must compensate, and it does for replaceRig (preservation semantics), weightMode (smooth/rigid binding) and projectRoot/output placement. However, four parameters  overrides, orientation, priorDigest and maxInfluences  are left unexplained in both schema and description, and the 'landmark correction request' phrase hints at overrides without connecting them. The gap on priorDigest and orientation is significant for a 9-parameter tool.

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 description gives a specific verb chain and resource: fit an 18-joint skeleton to an unrigged local GLB, bind skin weights, and publish the skinned GLB under the project root. That is far more concrete than a restated title and clearly separates rigging from inspection-type siblings. It never names a sibling tool explicitly, so differentiation is inferred from the 'unrigged' input constraint rather than stated.

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?

The input constraint ('an unrigged local GLB') and the statement that an existing rig is preserved unless replaceRig is set give clear context for when this tool applies and what happens otherwise. What is missing is explicit routing, e.g. telling the agent to inspect or check an existing rig first when the asset may already be rigged. No exclusion for non-humanoid or already-rigged inputs beyond the preservation note.

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