Skip to main content
Glama
vino3dx
by vino3dx

anim_set_key

Destructive

Write a keyframe for object properties at a given frame—position, rotation, scale, or custom attributes. Use relative mode to offset from current values.

Instructions

在指定帧为对象的某个属性写入一个关键帧(position / rotation / scale,或任意命名属性)。rotation 用欧拉角(度)表示。mode=relative 时在当前值上叠加。欧拉旋转无法插值超过 180°:车轮、转盘要改用 Quaternion/TCB 控制器,否则会出现瞬移。 [English] Write one keyframe for a property (position / rotation / scale, or any named property) at a given frame. Rotation is given as Euler angles in degrees. With relative=true the value is added on top of the current value. Euler rotation cannot interpolate past 180 degrees - spinning wheels and turntables must use a Quaternion/TCB controller or they will snap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameYes关键帧所在的帧(基于场景帧率,不要假设 30fps)。 | Frame of the keyframe (respects the scene frame rate, do not assume 30 fps).
valueYes属性值。position/scale 为 [x,y,z],rotation 为 [x,y,z] 欧拉角(度),标量属性为单个数。 | Property value. position/scale as [x,y,z], rotation as [x,y,z] Euler degrees, scalar properties as a single number.
objectsNo对象名列表;省略则用当前选择。 | Object names; omit for the current selection.
propertyYes属性名:position / rotation / scale,或任意命名属性。 | Property name: position / rotation / scale, or any named property.
relativeNotrue=在当前帧的值上叠加,false=绝对值。 | true=add to the value at that frame, false=absolute.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already mark destructiveHint=true, and the description adds valuable behavioral context: rotation is Euler degrees, relative=true adds to current value, and the critical limitation that Euler rotation cannot interpolate past 180° (causing snapping). This goes beyond the annotation and helps the agent anticipate failure modes.

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 bilingual and somewhat longer due to repetition, but every sentence carries meaning. The primary action is front-loaded, and the Euler warning is placed at the end where it is easy to notice. No filler or tautological phrasing; the length is justified by the complexity.

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?

For a tool with 5 parameters, full schema coverage, and destructive annotations, the description covers the key contextual aspects: property types, rotation units, relative semantics, and a critical pitfall. It lacks explicit mention of overwriting behavior or error conditions, but these are partially implied by the destructive annotation and not essential given the schema details.

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 100%, so the baseline is 3. The description reinforces parameter meaning ('rotation as Euler angles in degrees', 'relative=true adds to current value'), but does not add information beyond what the schema already states. It does not introduce new details about value formats or frame handling beyond the schema.

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 clearly states the action: 'Write one keyframe for a property (position / rotation / scale, or any named property) at a given frame.' It is specific about the verb (write) and resource (keyframe on a property). It does not explicitly differentiate from siblings like anim_set_keys, but the singular 'one keyframe' and property focus are sufficiently distinct.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives such as anim_set_keys or anim_delete_keys. The Euler rotation warning suggests using Quaternion/TCB controllers for large rotations, but that is about controller selection, not tool selection. No when-to-use or when-not-to-use criteria are provided.

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

Deploy Server

Other Tools