Skip to main content
Glama

Set clip anchor point

set_clip_anchor_point
Idempotent

Sets a clip's anchor point—the pivot for scale and rotation—using source-frame pixels or 0-1 normalized units. Use keep_in_place to stop the picture shifting when the anchor moves.

Instructions

Set a video clip's anchor point: the point of the clip that Position places and that scale and rotation pivot around. Pixels of the clip's SOURCE frame by default (the centre of a 1920x1080 clip is 960,540); units="normalized" for 0-1 fractions. Changing it moves the picture unless position is changed too; pass keep_in_place=true to compensate the position so the picture stays where it is. 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_anchor_point"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesHorizontal anchor, in `units`.
yYesVertical anchor, 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).
keep_in_placeNoAdjust Position so the picture does not move. Default false.
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.7/5.0
Behavior5/5

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

Annotations only mark this as a non-read-only, idempotent, non-destructive write. The description adds substantial behaviour beyond them: keyframes on the target parameter are stripped so the new value holds for the whole clip, the side effect on the rendered picture unless keep_in_place is set, unit defaults tied to the SOURCE frame with a concrete 960,540 example, and the return value (the clip's transform). The keyframe removal is a genuine data-affecting side effect disclosed nowhere in the schema or annotations.

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?

Front-loaded with the definition of the anchor point, then units, then the behavioural caveat, then the keyframe rule, then the return value: a deliberate information gradient with no filler. Every clause carries a fact an agent needs, including the parenthetical example.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter mutation tool with no output schema, the description covers the concept, unit semantics, the main side effect and its mitigation, keyframe handling, and what is returned. Clip/sequence addressing is fully handled by the schema descriptions, so nothing an agent needs to call this correctly 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 schema already documents x, y, units, keep_in_place and the clip/sequence addressing params; the baseline would be 3. The description still adds value by clarifying that pixels are source-frame pixels (not sequence-frame, a distinction the schema buries in a long units string), giving the 1920x1080 centre example, and explaining what keep_in_place actually compensates.

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?

"Set a video clip's anchor point" names a specific verb and resource, then defines the concept precisely as "the point of the clip that Position places and that scale and rotation pivot around." That definition separates it from the neighbouring set_clip_position, set_clip_scale and set_clip_rotation operations 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 Guidelines4/5

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

The description gives real decision guidance: use units="normalized" for 0-1 fractions, and pass keep_in_place=true when you want to change the pivot without moving the picture. It states the consequence of doing nothing ("Changing it moves the picture unless position is changed too"), which is the core usage trade-off. It stops short of explicitly routing to set_clip_position or set_clip_transform as alternatives.

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