Skip to main content
Glama

Set clip transform

set_clip_transform
Idempotent

Set a video clip's position, scale, rotation, anchor, crop, opacity, anti-flicker, and blend mode in one call; only supplied values change, and keyframed properties are cleared to hold the new value.

Instructions

Set several Motion/Opacity values of one video clip in one call: position, scale (uniform) or scale_width + scale_height (non-uniform), rotation, anchor point, anti-flicker, crop, opacity and blend mode. Only the fields you pass change. A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Use set_clips_transform for the same change on several clips. Returns the clip's transform.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_clip_transform"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNoUniform scale in percent (100 = source pixels 1:1). Turns Uniform Scale on.
unitsNoUnit of x/y. "pixels" (default): sequence-frame pixels for position (0,0 = top-left of the frame), source-frame pixels for the anchor point. "normalized": 0-1 fractions of the same frame (0.5, 0.5 = centre).
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
opacityNoOpacity in percent.
crop_topNoCrop from the top edge, percent of the source height.
positionNo[x, y] where the clip's anchor point is placed, in `units` (default pixels of the sequence frame).
rotationNoRotation in degrees, clockwise.
crop_leftNoCrop from the left edge, percent of the source width.
blend_modeNoBlend mode name (see set_clip_blend_mode).
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.
crop_rightNoCrop from the right edge, percent of the source width.
track_typeNoUsed with track_index + clip_index when clip_id is not given. Default "video".
crop_bottomNoCrop from the bottom edge, percent of the source height.
scale_widthNoHorizontal scale in percent. With scale_height, sets non-uniform scale (turns Uniform Scale off).
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNo0-based track index (0 = V1 or A1).
anchor_pointNo[x, y] anchor point, in `units` (default pixels of the clip's SOURCE frame; centre = half the source size).
anti_flickerNoAnti-flicker filter amount, 0-1.
scale_heightNoVertical scale in percent. With scale_width, sets non-uniform scale (turns Uniform Scale off).
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

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnly=false, idempotent=true, destructive=false; the description adds the crucial undocumented behavior that any keyframed parameter has its keyframes removed before the new value is applied, so the value holds for the whole clip. That is a data-losing side effect an agent must know before calling and it is stated plainly, plus the return value ('the clip's transform') is disclosed. Note the mild tension with destructiveHint=false, though the tool modifies rather than deletes the clip.

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 sentences, front-loaded with the capability and field list, then the partial-update rule, the keyframe caveat, the alternative tool, and the return value. No restatement of the name, no filler, and the ordering follows what an agent needs to decide before calling.

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 20-parameter, no-output-schema mutation tool this covers the essentials: what changes, that unspecified fields are untouched, the keyframe-removal hazard, the batch alternative, and the return value. Remaining details (clip addressing precedence, units, crop per-edge meaning) are fully carried by the schema descriptions, so nothing critical is missing.

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 the baseline is 3, but the description adds semantics the schema states only piecemeal: uniform scale via scale vs non-uniform via scale_width + scale_height, and the crop/opacity/blend grouping. It gives an agent the combination rule for the scale family without needing to cross-read three separate property descriptions.

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 (set) plus the resource (one video clip's Motion/Opacity values) and enumerates the exact fields affected: position, scale, rotation, anchor point, anti-flicker, crop, opacity, blend mode. The opening clause 'in one call' immediately separates it from per-property setters and from the batch sibling, so an agent can classify it without opening the 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?

Explicitly routes multi-clip work to set_clips_transform and clarifies that partial input is safe ('Only the fields you pass change'), which is the key decision an agent faces. It does not say when to prefer the single-property siblings (set_clip_position, set_clip_opacity, set_clip_scale) over this combined setter, which is a real gap given how many such siblings exist, but the named alternative is concrete.

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