Skip to main content
Glama

Set clip position

set_clip_position
Idempotent

Set a clip's Motion Position to move it within the sequence frame using pixel or normalized coordinates; existing position keyframes are removed so the value applies across the clip.

Instructions

Move a video clip by setting its Motion Position: where the clip's anchor point (normally its centre) sits in the sequence frame. Pixels by default (0,0 = top-left, e.g. 960,540 is the centre of a 1920x1080 sequence); pass units="normalized" for 0-1 fractions. 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": {
      "x": "<x>",
      "y": "<y>"
    },
    "name": "set_clip_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesHorizontal position, in `units`.
yYesVertical position, in `units`.
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.
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

A4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that keyframed parameters have their keyframes removed first so the new value holds for the whole clip, and by stating the return value ("the clip's transform"). That keyframe-loss warning is exactly the kind of side effect an agent needs and is not derivable from readOnlyHint/destructiveHint/idempotentHint. There is mild tension with destructiveHint=false since keyframes are discarded, but it is an inherent part of setting the value rather than a contradiction of the annotation.

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?

Four tight sentences, front-loaded with the action and coordinate semantics before the side-effect caveat and return value. No filler, and each clause carries information an agent would otherwise have to guess.

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 9-parameter mutation with no output schema, the description covers coordinate semantics, unit choice, the keyframe side effect, and the return value, which is close to sufficient. Minor gaps remain: no mention of failure behavior for a missing clip_id/sequence, and no explicit statement of how this relates to set_clip_anchor_point when both are involved.

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 schema already documents clip_id vs clip_index precedence, units, and sequence targeting; the description only restates the units default and origin with a concrete 960,540 example. It correctly declines to re-document the clip/sequence targeting parameters, but it adds little semantic meaning beyond the schema, so the baseline of 3 applies.

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 ("Move a video clip by setting its Motion Position") and immediately scopes it as where the anchor point sits in the sequence frame, which conceptually separates it from the many set_clip_* siblings such as set_clip_anchor_point and set_clip_transform without needing to name them.

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?

Offers clear guidance on the pixels-vs-normalized choice and the default coordinate origin, which is genuinely useful for orientation. However, it never says when to prefer this tool over set_clip_transform, set_clip_anchor_point, or set_clip_scale_xy, and gives no prerequisites or when-not-to-use conditions, so tool selection among siblings is left to inference.

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