Skip to main content
Glama

Set clip rotation

set_clip_rotation
Idempotent

Rotate a video clip clockwise around its anchor point by a specified degree value, replacing existing rotation keyframes so the new angle applies to the entire clip.

Instructions

Rotate a video clip around its anchor point. Degrees, clockwise; values beyond 360 make extra turns. A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Returns the clip's transform.

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": {
      "rotation": "<rotation>"
    },
    "name": "set_clip_rotation"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
rotationYesRotation in degrees, clockwise.
clip_indexNo0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id.
track_typeNoUsed with track_index + clip_index when clip_id is not given. Default "video".
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNo0-based track index (0 = V1 or A1).
sequence_nameNoSequence name; used only when sequence_id is not given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With annotations already declaring non-readOnly, non-destructive, idempotent, the description adds real value beyond them: it discloses the side effect that existing keyframes on the rotation parameter are deleted before the new value is applied, which the annotations do not surface. It also states the return value ("the clip's transform") in the absence of an output schema; only permission/error behavior is left unstated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action, then the numeric convention, then the side effect and return value. Every sentence carries information not duplicated elsewhere and there is no filler.

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 7-parameter mutation tool with full schema coverage and no output schema, the description covers purpose, numeric convention, side effect, and return value adequately. It does not discuss whether the anchor point itself must be set beforehand via set_clip_anchor_point, which is the one contextual gap an agent might hit.

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 baseline is 3, but the description adds semantics the schema does not carry: rotation is clockwise, values beyond 360 wrap into additional turns, and rotation occurs about the anchor point. The clip_id/clip_index resolution strategy is left entirely to the schema, which already documents it well.

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?

States a specific verb and resource ("Rotate a video clip around its anchor point") and narrows the scope to a single transform property, which separates it from broad siblings like set_clip_transform or set_clip_position by implication. It never names an alternative explicitly, so the differentiation is inferred 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 Guidelines3/5

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

The keyframe-removal sentence implicitly tells the agent this is the static-assignment path rather than an animation path (contrast animate_clip_transform), which is useful implied guidance. However, there is no explicit when-to-use/when-not statement and no named alternative for per-frame rotation.

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