Skip to main content
Glama

set_pivot

Set a layer or peg's rotation and scale pivot without shifting it, using canvas coordinates or an auto anchor (bottom, center, top) before adding squash, stretch, or rotation keys.

Instructions

Set the rotation/scale pivot of a layer or peg without moving it (OpenToonz 'center'). x,y: canvas px. x='auto': from the layer's drawing bounds; anchor 'bottom' (feet - use for squash on the ground) | 'center' | 'top'. Do this BEFORE squash/stretch or rotation keys.

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": {
      "scene": "<scene>",
      "target": "<target>"
    },
    "name": "set_pivot"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoauto
yNo
sceneYes
anchorNobottom
targetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that the operation does not displace the layer and that coordinates are in canvas pixels, but says nothing about persistence (keys vs. static setting), permission/state prerequisites, or what happens if the pivot is changed after keys already exist.

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 core action and immediately followed by parameter semantics and an ordering rule; nearly every clause earns its place. The line-broken terse phrasing ('anchor 'bottom' (feet - use for squash on the ground) | 'center' | 'top'') is dense but decodable.

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?

For a 5-parameter, zero-coverage-schema, no-annotation mutation tool, the description covers the geometric mechanics well but omits any treatment of scene/target, persistence behavior, and expected result. Adequate to call correctly for the common case, not complete for all cases.

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 description coverage is 0%, so the description must compensate, and it does for x, y, and anchor — canvas pixel units, the 'auto' derivation from drawing bounds, and the semantics of each anchor value. However, the required 'scene' and 'target' parameters are never explained, and the y=null/anchor interaction is left implicit.

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 and resource ('Set the rotation/scale pivot of a layer or peg') plus the key differentiator 'without moving it', and ties it to the OpenToonz concept 'center'. This is clearly distinguishable from neighbors like set_layer or set_parent.

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?

Gives explicit ordering guidance ('Do this BEFORE squash/stretch or rotation keys') and a situational hint for the 'bottom' anchor (feet, for squash on the ground). It lacks any 'do not use this when...' guidance or named alternatives, so it falls 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.