Skip to main content
Glama

Align clips to the frame

align_clips
Idempotent

Move video clips in a Premiere Pro sequence to align their scaled, rotated, or cropped bounding boxes with a frame edge, center, or margin. Only positions change.

Instructions

Move video clips so their on-screen bounding box (after scale, rotation and crop) lines up with an edge or the centre of the sequence frame, with an optional margin. Only position changes. Pass horizontal and/or vertical. Returns each clip's new bounding box.

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": "align_clips"
  }
}

Input Schema

NameRequiredDescriptionDefault
marginNoDistance from the frame edge, in sequence pixels. Default 0. Ignored for center.
clip_idsYesClip ids (from get_sequence_structure / list_clips). Video clips only.
verticalNoVertical alignment. Omit to keep y.
horizontalNoHorizontal alignment. Omit to keep x.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
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/5.0
Behavior4/5

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

The annotations already establish that this is a non-read-only, idempotent, non-destructive mutation. The description adds useful behavioral detail beyond them: alignment is calculated from the on-screen bounding box after scale, rotation and crop, only position changes, and the tool returns each clip's new bounding box.

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?

The description is compact and front-loaded with the primary effect, followed by scope, invocation guidance and return behavior. Every sentence contributes useful information without redundancy.

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 six-parameter mutation tool with no output schema, the description covers the core behavior, the non-resizing constraint, alignment controls, optional margin, and the returned value. The detailed input schema supplies the remaining parameter specifics.

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 all six parameters. The description still adds meaningful semantics by explaining that alignment uses the post-transform bounding box and that horizontal and vertical are the active alignment controls, rather than merely restating parameter names.

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?

The description states a specific verb and resource: move video clips so their bounding box aligns to a frame edge or centre. It also distinguishes this from resize-oriented siblings by stating 'Only position changes', which is a meaningful scope boundary.

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?

It clearly explains that the caller passes horizontal and/or vertical alignment and may add a margin, giving enough context to invoke it correctly. It does not explicitly name resize alternatives such as fill_clip_to_frame or fit_clip_to_frame, but 'Only position changes' makes the division of responsibility clear.

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