Skip to main content
Glama

Roll an edit point

roll_edit

Adjusts the edit point between a clip and its neighbor by a given offset, making one clip longer and the other shorter without moving other clips; can include linked clips.

Instructions

Roll the edit point at one edge of a clip: the cut between this clip and its neighbour moves by offset seconds (positive = later) - one clip gets longer, the other shorter, nothing else moves. edge "start" rolls the cut with the previous clip, "end" (default) the cut with the next clip. Needs source media on the clip that grows. include_linked (default true) rolls the same cut on the linked clips. Returns both clips around the edit.

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": {
      "offset": "<offset>"
    },
    "name": "roll_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
edgeNoWhich edge of the clip to roll. Default "end".
offsetYesSeconds to move the edit point; positive = later. Snapped to a frame.
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.
include_linkedNoAlso roll the clips linked to this one (the audio of a video clip, or the video of an audio clip). Default true.

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 declare non-readonly, non-destructive, non-idempotent; the description adds the crucial behavioral facts: only the two adjacent clips change, 'nothing else moves', linked clips roll together by default, and the media-availability precondition. It also discloses the return payload (both clips around the edit), which annotations do not cover.

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-loads the core mechanic, then edge options, then prerequisites, then linked behavior and return value. Telegraphic but every clause carries information; there is no filler or repetition.

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 9-parameter mutation with full schema coverage and no output schema, the description covers the mechanic, the edge choice, the linked-clip side effect, the media precondition, and what is returned. An agent can call this correctly without further documentation.

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 baseline is 3, but the description genuinely adds meaning for 'edge' by mapping each enum value to the neighbouring clip whose cut is rolled — more actionable than the schema's 'Which edge of the clip to roll'. It also restates offset direction and the include_linked default, which is redundant with the schema but harmless.

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?

Specific verb and resource ('Roll the edit point at one edge of a clip'), and the description immediately defines the mechanical effect: the cut moves by offset seconds, one clip lengthens and the other shortens. Nothing else in the sibling set does this, and the verb alone pins the operation.

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?

Gives clear operative context: edge 'start' rolls with the previous clip, 'end' (default) with the next, and states the prerequisite that source media must exist on the growing clip. It stops short of naming a contrasting sibling (e.g. a slip or ripple tool) or stating when not to use it, so it falls short of 5.

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