Skip to main content
Glama

write_clip

Destructive

Writes MIDI notes into an Ableton Live track section, replacing or adding to existing notes; replacing an existing part requires confirmation.

Instructions

Write a part with notes on a midi track, in the given section. length_beats: 16 is 4 bars of 4/4. mode replace writes the part fresh; if the slot already holds a part it is replaced, which needs the user's yes and confirmed=true. mode add keeps the existing notes and adds these. Times and durations are in beats. For a drum kit, take pitches from drum_pads in get_set_state. The track needs a sound or it plays silent.

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": {
      "track": "<track>",
      "scene": "<scene>",
      "notes": "<notes>"
    },
    "name": "write_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoreplace
nameNo
notesYes
sceneYes
trackYes
confirmedNo
length_beatsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond destructiveHint=true, the description specifies exactly what is destroyed (an existing part in the slot) and the gating required (user's yes and confirmed=true) before that destruction can happen. It also flags a silent-failure mode — 'The track needs a sound or it plays silent' — which no annotation conveys and which would otherwise produce a successful-looking no-op.

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?

The most consequential fact — the confirmation gate for replace — is front-loaded in the second sentence, and each subsequent sentence carries distinct information about mode, units, drum pitches, or silent playback. The prose is dense with semicolons but not padded; the only soft spot is the syncopated 'length_beats: 16 is 4 bars of 4/4' fragment, which reads as an aside mid-sentence.

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 7-parameter destructive mutation with no output schema, the definition covers the critical decision points: units, mode semantics, the destructive-replace confirmation path, and a silent-failure warning. What it omits — the meaning of name, valid formats for track/scene, and whether existing notes' velocities are preserved under add — are secondary but real gaps for a write tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description has to carry all parameter meaning, and it partly does: length_beats gets a concrete unit example ('16 is 4 bars of 4/4'), mode's two values are defined behaviorally, confirmed is tied to its trigger condition, and note timing units are pinned down ('Times and durations are in beats'). However, track, scene, and name are never explained as to accepted identifier form or effect, and note pitch/velocity semantics are only addressed for drum kits.

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?

The description opens with a specific verb+resource+location: 'Write a part with notes on a midi track, in the given section.' That is far more precise than the name 'write_clip' alone. It stops short of naming a sibling (e.g. update_clip for editing an existing part), so sibling differentiation is only implied.

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?

It gives clear conditional guidance between the two modes: 'replace writes the part fresh; if the slot already holds a part it is replaced' versus 'add keeps the existing notes and adds these.' The prerequisite for replace (user's yes plus confirmed=true) is stated explicitly. It does not name an alternative tool for modifying clips that already exist.

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