Skip to main content
Glama

Cut pictures to the beat of music

cut_to_beats

Creates a Premiere Pro sequence cut to music by detecting beats and placing picture clips on V1 so each cut lands on a beat; returns the sequence, cut times, and clips, with a dry-run planning option.

Instructions

Build a new sequence cut to music: detects the beats of a music item's media with ffmpeg, then places the pictures (item_ids or a bin; videos and stills, picture only) on V1 so that every cut lands on a beat (one cut every every_n_beats beats), with the music on A1 from its in point. Items are used in order and repeated when there are more segments than items; a video shorter than its segment is skipped for that segment. The cut ends with the music (or at max_seconds). Returns the new sequence, the cut times and the V1 clips. dry_run returns the beat and cut plan only. Needs ffmpeg.

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": {
      "music_item_id": "<music_item_id>"
    },
    "name": "cut_to_beats"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName of the new sequence. Default "Beat Cut".
orderNoClip order: "given" (item_ids order), "name" (natural name order), "date" (media file modification time, oldest first) or "project" (Project-panel order). Default "given" with item_ids, else "project".
bin_idNoTake the items of this bin (id). Omit bin_* and item_ids to use the project root.
dry_runNotrue: return the plan without changing anything. Default false.
bin_nameNoTake the items of this bin (name; first match).
bin_pathNoTake the items of this bin (path, e.g. "Footage/Day 1").
item_idsNoProject item ids to use, in this order. Alternative to a bin.
recursiveNoWith a bin: include the items of its sub-bins too. Default false.
max_secondsNoStop the cut after this many seconds. Default: the music length.
sensitivityNoBeat detection sensitivity 0-1; higher finds weaker beats. Default 0.5.
every_n_beatsNoCut every N detected beats. Default 2.
music_item_idYesProject item id of the music (an audio or video file with sound).
name_containsNoWith a bin: keep only items whose name contains this text (case-insensitive).
min_beat_spacingNoSmallest time between two beats, in seconds. Default 0.25.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, non-destructive, non-idempotent operation; the description goes well beyond that by disclosing that it creates a new sequence rather than editing existing ones, that items are reused when segments outnumber items, that short videos are skipped, how the cut terminates, what is returned, and that ffmpeg must be installed. These are non-obvious side effects and preconditions an agent could not infer from the annotations.

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?

Content is front-loaded with the core action first and the behavioral caveats after, and essentially no sentence is filler. It is dense and run-on, packing parenthetical clauses into two long sentences, which slightly hurts scannability but not information density.

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 14-parameter mutation tool with no output schema, the description covers the return payload, the dry-run mode, the ending condition, ordering/repetition semantics and the external dependency, which is substantial. It omits how the new sequence's frame size/rate are chosen and what happens if the music item has no audio stream, which are the main residual gaps.

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 baseline would be 3, but the description adds real meaning on top: every_n_beats is expressed as 'one cut every N beats', max_seconds as the alternative end condition to the music length, order and bin/item_ids as the item source, and dry_run as plan-only. Remaining parameters (sensitivity, min_beat_spacing, recursive, name_contains) are left to the schema.

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 ('Build a new sequence cut to music') plus the mechanism (ffmpeg beat detection) and the concrete placement outcome (pictures on V1, music on A1). It is clearly distinct from the detection-only sibling detect_beats_in_file and from create_rough_cut, since it names beat alignment as the defining behavior.

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 context for when this is the right tool: you have a music item and picture items and want beat-synced cuts, and dry_run gives a planning path. It also states an exclusion ('picture only', so no audio/video on the cut track) and a skip rule for short videos, but it never explicitly contrasts itself with sibling tools such as detect_beats_in_file or create_rough_cut.

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