Skip to main content
Glama

follow_actions

Set, clear, or list clip follow actions in Ableton Live to automatically launch clips after a set number of bars or beats, emulating a missing API feature.

Instructions

Clip follow actions, which Live's API does not have, emulated inside Live on the Remote Script's 10 ms timer. set (address of a Session clip; actions: names or {action, weight} objects, chosen by weight each pass: next, previous, first, last, any, other, again, stop, all relative to the clip's own track; after_bars or after_beats, default one pass through the clip) launches the chosen clip when the clip has played that long. It only acts while the transport runs and the clip plays, once per pass, and launches through Live's normal clip launch, so Live's launch quantization decides the exact moment (the trigger fires ~40 ms early to catch the grid point; use q_none or a matching quantization for tight timing). clear (an address, or everything) stops them at once; status lists them. Configurations live in memory only: they are lost when Live restarts or the script reloads. Not undoable, not batchable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNoDefault status
actionsNoset: e.g. ['next'] or [{action:'next',weight:3},{action:'again',weight:1}]
addressNoset/clear: a Session clip, e.g. 'tracks/2/slots/0/clip'
after_barsNoset: bars of the clip's time signature before the action
after_beatsNoset: beats before the action (min 0.25)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.3

TDQS

A4.6/5.0
Behavior5/5

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

Despite annotations only marking readOnly=false and destructive=false, the description discloses deep behavioral traits: emulation on a 10 ms timer, ~40 ms early trigger, once-per-pass execution, quantization-dependent timing, and that configurations are memory-only, lost on restart/reload, not undoable and not batchable. This is exactly the kind of context annotations cannot carry.

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?

Dense and front-loaded, with the tool's nature stated first and mode-specific detail following. The run-on parenthetical sentences pack a lot in but remain readable; a little could be trimmed without loss, but nothing is wasted filler.

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 complex, stateful, timing-sensitive tool with no output schema, the description covers activation conditions, timing caveats, persistence limits, and undoability. An agent has everything needed to invoke it correctly without opening the source.

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 semantics: `actions` may be names or {action,weight} objects chosen by weight each pass, the relative action set (next, previous, etc. relative to the clip's own track), and that after_bars/after_beats default to one pass through the clip. These go beyond the terse schema descriptions.

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?

Opens with a specific verb+resource ('Clip follow actions') and immediately distinguishes the capability from what Live's API provides natively. The three modes (set/clear/status) are enumerated, so an agent knows exactly what the tool covers and how it differs from siblings like clip_action or launch.

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 concrete operating conditions: it only acts while transport runs and the clip plays, once per pass, and recommends q_none or matching quantization for tight timing. It does not explicitly name alternative tools or say when NOT to use follow actions in favor of another sibling, but the modal guidance is strong.

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