Skip to main content
Glama

Set transform on several clips

set_clips_transform
Idempotent

Apply identical Motion and Opacity values (position, scale, rotation, crop) to several clips in one sequence. Each clip is processed separately, with per-clip errors reported.

Instructions

Apply the same Motion/Opacity values (same fields as set_clip_transform) to several video clips of one sequence. Each clip is processed separately; per-clip errors (unknown id, audio clip) are reported without stopping the others. A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Returns one entry per clip.

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": {
      "clip_ids": "<clip_ids>"
    },
    "name": "set_clips_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).
opacityNoOpacity in percent.
clip_idsYesClip ids (from get_sequence_structure / list_clips). Video clips only.
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).
crop_rightNoCrop from the right edge, percent of the source width.
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.
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.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, idempotentHint=true and destructiveHint=false; the description adds behavior the agent could not otherwise know. It discloses that keyframes on a targeted parameter are removed first so the new value holds for the whole clip — a meaningful, hard-to-reverse side effect — and that per-clip failures (unknown id, audio clip) are reported without aborting the batch.

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?

Four short sentences, front-loaded with the batch purpose and followed by error handling, keyframe side effect, and return shape. Each sentence carries information, though the error-handling idea is spread across two sentences that could be merged.

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 17-parameter mutation tool with no output schema, the description covers the critical unknowns: batch semantics, partial-failure behavior, keyframe removal, and the shape of the response ('one entry per clip'). Parameter meanings are fully delegated to a 100%-covered schema, which is acceptable.

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 100%, so the schema already explains scale, units, anchor_point, crop edges and sequence targeting. The description adds only the pointer that the field set matches set_clip_transform, with no extra syntax or constraint detail, so baseline 3 is appropriate.

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 ('Apply the same Motion/Opacity values'), scopes it to 'several video clips of one sequence', and anchors the field set to the sibling set_clip_transform. An agent can immediately distinguish this batch tool from the single-clip set_clip_transform without opening either 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?

The batch framing plus the reference to set_clip_transform makes the use case clear (same transform across many clips), and the description constrains inputs with 'Video clips only' and notes sequence scoping. It stops short of an explicit 'use set_clip_transform for a single clip' routing statement, so the alternative is implied rather than spelled out.

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