Skip to main content
Glama

bitwig_write_clip

Create or replace a launcher MIDI clip on a specified Bitwig track, setting its name, loop length, color, and notes, then read it back to verify every property.

Instructions

Create a launcher MIDI clip (or replace one with replace=true) on one exact track, set its name, length (as its loop) and color, write all its notes, and read the whole clip back. Any missing, changed or extra note or clip property fails the call with the exact differences. Slot = one past the last scene adds a new scene.

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": {
      "trackId": "<trackId>",
      "name": "<name>",
      "lengthBeats": "<lengthBeats>",
      "notes": "<notes>"
    },
    "name": "bitwig_write_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
loopNoDefaults to an enabled loop from 0 to lengthBeats
nameYes
colorNoClip color as #RRGGBB
notesYesComplete note content; up to 750 notes (one request must fit in a 60 KB message)
replaceNoReplace a clip already in the slot
trackIdYesTrack id from bitwig_tracks; it stays the same when the track is renamed or moved
slotIndexNoLauncher slot (scene) index, 0-based
lengthBeatsYesClip length in beats. The clip loops from 0 to lengthBeats unless loop says otherwise
stepsPerBeatNoGrid resolution for note starts in steps per beat (4 = 1/16 at 4/4, 96 for fine timing). Every note start must lie on this grid. Clip span × stepsPerBeat may not exceed 16384

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the strict verification contract ("Any missing, changed or extra note or clip property fails the call with the exact differences") and the read-back behavior. It stops short of saying whether a failed call leaves the clip untouched or partially written, which matters for a mutation tool.

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

Conciseness5/5

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

Three sentences, each dense but purposeful, with the core operation front-loaded and the verification contract and edge-case rule following. No filler or restatement of the name.

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 9-parameter nested-schema mutation tool with no output schema, the description covers the write scope, the strict validation model, the scene-creation edge case, and the read-back. It could be more complete on failure/atomicity semantics and on the 750-note/60 KB limits, which currently live only in the schema.

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 already 89%, so the baseline is 3; the description adds real meaning on top by clarifying that length is used as the loop and that slot one-past-the-last-scene creates a scene. Those are semantic behaviors the schema's slotIndex description does not convey.

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 uses a precise verb+resource ("Create a launcher MIDI clip") and enumerates exactly what is written: name, length/loop, color, and notes. It distinguishes create-vs-replace via the replace flag, but it never names the closest sibling (bitwig_edit_clip), leaving the create/edit boundary to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"or replace one with replace=true" and "Slot = one past the last scene adds a new scene" give concrete usage rules for two parameters. However, there is no explicit guidance on when to choose this tool over bitwig_edit_clip or bitwig_read_clip, and no stated prerequisites for editing an existing clip.

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