Skip to main content
Glama

arrange_song

Destructive

Build a full song by placing sections end to end on the timeline using scene and bar counts, repeating each part to fill its section; replace existing material only after explicit confirmation.

Instructions

Lay sections end to end on the timeline to make the full song, e.g. [{"scene": "Intro", "bars": 8}, {"scene": "Verse", "bars": 16}, ...]. Each part repeats to fill its section, so bars*4 must be a multiple of the part's length in beats. If the timeline already has material it is refused unless replace=true, which clears it first and needs the user's yes and confirmed=true. Then transport play_timeline plays it. 4/4 only.

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": {
      "sections": "<sections>"
    },
    "name": "arrange_song"
  }
}

Input Schema

NameRequiredDescriptionDefault
replaceNo
sectionsYes
confirmedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description goes well beyond them: it says existing material causes a refusal, that replace=true clears the timeline first, that the user's explicit yes plus confirmed=true is required, and that only 4/4 is supported. These are exactly the side-effect and authorization details an agent needs before invoking a destructive write.

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?

Front-loaded with the core action and a compact example, then the constraints follow in priority order. It is dense and slightly run-on across the replace/confirmed sentence, but no sentence is filler.

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 destructive, three-parameter write tool with no output schema, the description covers preconditions, consent flow, replace semantics, and musical constraints. The only gap is that it says nothing about what the call returns or how failure besides the existing-material refusal manifests.

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 the full burden and does most of it: sections is illustrated with scene/bars, replace is defined as clearing the timeline, and confirmed is tied to the user's approval. It also adds a non-obvious validity rule (bars*4 must be a multiple of the part's beat length), though it never explains that scene accepts either an integer or a string id.

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 ('Lay sections end to end on the timeline to make the full song') and immediately shows the section shape with a concrete example, so the agent knows exactly what the call produces. It is clearly distinct from siblings like set_scene, update_clip, or transport.

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 a clear precondition (refused when the timeline already has material) and the escape hatch (replace=true with user consent plus confirmed=true), and points to the follow-up action ('transport play_timeline plays it'). It does not discuss alternative ways to build an arrangement, but the when-to-use and when-refused conditions are explicit.

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