Skip to main content
Glama

arrange_from_scenes

Destructive

Build a song arrangement from Session scenes by placing each track's clip sequentially from a start point, with options to clear ranges and add locators.

Instructions

Build the arrangement from scenes: sections play one after another from start, each placing every track's clip from its scene for the section's length.

sections: [{scene (index or name), bars (or length: beats / "8 bars"), name?}]. Looping clips loop to fill a section exactly, at any length; one-shot clips play once. Clip envelopes travel along. A track's range is overwritten where it has a clip; clear=True first empties the whole range on the tracks taking part (those with a clip in a listed scene, or tracks). locators=True adds a locator per section, named after it; the transport is stopped first if it is playing. Arrangement clips are independent copies: write notes and automation in the Session clips BEFORE arranging (or re-run with clear=True after editing them). Returns undo_steps. Example: arrange_from_scenes([{"scene": "Intro", "bars": 4}, {"scene": "Verse", "bars": 8}]). Verify with get_arrangement.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clearNo
startNo1.1.1
tracksNo
locatorsNo
sectionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, and the description goes well beyond them: it details exactly what gets overwritten ('A track's range is overwritten where it has a clip'), what clear=True empties, that clips become independent copies, that the transport is stopped first, and that it returns undo_steps.

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 but front-loaded: the core mechanic comes first, then side effects, then the example. Every sentence adds information, though the parenthetical asides make it longer than strictly minimal for a tool this complex.

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 destructive, non-idempotent, 5-param tool with no output schema, the description covers ordering semantics, overwrite scope, looping vs one-shot behavior, locator creation, transport handling, the pre-arrange editing prerequisite, and the return value (undo_steps). Nothing an agent needs to invoke it correctly is missing.

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 0%, so the description carries full burden and does so well: it documents the sections element shape (scene index/name, bars or length with beats/'8 bars', optional name), clear, tracks, and locators semantics, plus a concrete example. The `start` format (e.g. '1.1.1') is only implied by the default, a minor gap.

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+resource ('Build the arrangement from scenes') and immediately defines the mechanism: sections play in order from `start`, each placing every track's clip. This distinguishes it clearly from get_arrangement and clear_arrangement siblings.

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 strong workflow context: write notes/automation in Session clips BEFORE arranging, or re-run with clear=True after editing, and 'Verify with get_arrangement' routes to the read-back sibling. It stops short of explicit when-not-to-use guidance (e.g. vs. manual clip placement), so not a 5.

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