Skip to main content
Glama

fablecut_beats

Detect a music clip's tempo, beat grid, and drop, then add beat markers or snap and retime video cuts to the beat in the timeline.

Instructions

The music's beat on the timeline, and cuts that land on it. Listens to a music clip (an audio clip, or a video's sound) and finds its tempo (BPM), a steady beat grid phased to the hits, and the drop — all in timeline seconds, through the clip's in point and speed. Then, in one revision: markers:true puts a cyan marker on every beat; snap:true rolls each cut on the video tracks (the targeted ones, or snap:{tracks}) to the nearest beat within half a beat (snap:{maxShift} seconds) — nothing else moves, linked stems follow; retime:{track?, every?, from?} lays the clips on a track (default the lowest video track with clips) back to back on the beat, every beats each (1, 2, 4, 8 or 16; default 2), from the first beat at or after from (default the music's start) — a clip whose footage runs out gets fewer beats, and the order is kept. Locked clips are left alone (snap) or refuse (retime) unless force:true. A version is saved before snap or retime (if that fails the edit still goes ahead and the reply warns). Without markers / snap / retime it only reports. The same as the Inspector's Beats section. Needs ffmpeg on PATH.

Input Schema

NameRequiredDescriptionDefault
snapNotrue, or {tracks?:[…], maxShift?: seconds}: roll each cut on those video tracks to the nearest beat
everyNoBeats per shot for retime (1, 2, 4, 8 or 16; default 2)
forceNoAlso move locked clips (only when the user asked)
clipIdYesThe music clip to listen to
retimeNotrue, or {track?: 'V1', every?: 1|2|4|8|16, from?: seconds}: re-cut that track's clips to the beat, `every` beats each
markersNoPut a cyan marker on every beat (other markers stay)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.17.0

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations, the description carries the whole burden and does so: it discloses that snapped cuts only move within half a beat, that linked stems follow, that locked clips are skipped or refused unless force:true, that a version is saved before snap/retime with a warn-and-continue fallback, and that ffmpeg must be on PATH. These are exactly the side effects, reversibility guarantees, and prerequisites an agent needs before a mutating call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose and free of filler, but the body is a single dense run-on packed with nested parentheses and inline object literals (snap:{tracks}, retime:{track?, every?, from?}), which makes it hard to scan. The content earns its place; the structure does not help it.

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?

No annotations and no output schema, so the description must supply both safety and result context, and it does: it names what gets produced (BPM, beat grid, drop in timeline seconds) and covers mutation safety, failure handling, prerequisites and lock semantics. An agent can decide and call correctly from this text alone.

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 is 3, but the description adds real meaning beyond the schema: maxShift is half a beat, `from` defaults to the music's start and is rounded to the first beat at or after it, retime ordering is preserved and a clip whose footage runs out gets fewer beats. Defaults for every (2) and track (lowest video track with clips) are stated in prose as well.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource pair: listens to a music clip, computes BPM, a phased beat grid and the drop, then optionally applies markers/snap/retime. The purpose is unmistakable and would not be confused with fablecut_silence or fablecut_highlights, although no sibling is named to make that contrast explicit.

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?

'Without markers / snap / retime it only reports' cleanly separates the analyze mode from the edit modes, and 'The same as the Inspector's Beats section' anchors it to a known UI surface. It does not, however, say when to prefer this over sibling analysis tools such as fablecut_silence or fablecut_highlights.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.