Skip to main content
Glama

write_clip_notation

Destructive

Write MIDI notes to Ableton clips using compact bar|beat notation instead of verbose JSON, reducing tokens and avoiding float-beat errors. Automatically creates or resizes clips when replace=true.

Instructions

Write MIDI notes using compact bar|beat notation instead of verbose note JSON.

Cuts token usage 3-5x and avoids float-beat errors. Creates or resizes the clip automatically when replace=true.

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_index": "<track_index>",
      "clip_index": "<clip_index>",
      "notation": "<notation>"
    },
    "name": "write_clip_notation"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthNoClip length in beats (auto-inferred to full bars when omitted).
replaceNoTrue replaces/creates the clip; False layers onto an existing clip.
notationYesCompact bar|beat MIDI lines (1-indexed, Live C3=60). Syntax: `<bar[-end]>|<beat[+num/den][,beat...]> <pitches|drum_names> [d<beats>|n/<val>[.|t]] [v<1-127>] [p<0-1>] [mute]`. Use decimals like `1|3.75` for exact beat fractions; `+num/den` adds a musical note value (whole note = 4 beats, so `+1/16` = +0.25 beats, `+1/8` = +0.5 beats). Example: `1|1 C3 E3 G3 d4 v72\n1-4|1,3 kick n/16 v105`.
clip_indexYesZero-based Session-view clip-slot index on the track.
track_indexYesZero-based index of a regular track in the Live set.
beats_per_barNoBeats per bar for bar|beat math (default 4.0).

Output Schema

NameRequiredDescriptionDefault
dataYes
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations only supply destructiveHint=true; the description adds useful behavior, namely that the clip is created or resized automatically under replace=true. However, given the destructive hint it never warns that existing notes in the target clip may be overwritten, nor does it mention any undo/reversibility or error conditions. It adds context but leaves the main risk implicit.

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?

Three short sentences with the core mechanism front-loaded and no redundant restatement of the schema grammar. The 'Cuts token usage 3-5x' claim is marketing-flavored but does convey a practical reason to choose this tool, so it earns its place.

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?

With an output schema present and full schema-level parameter documentation, the description doesn't need to explain returns or syntax, and it correctly focuses on purpose and replace semantics. The only meaningful gap is the lack of warning about overwriting existing clip content, which matters for a destructive 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?

Schema description coverage is 100%, so every parameter including the elaborate notation grammar is already documented in the schema. The description essentially restates the replace parameter's effect and hints that length/resize is inferred, adding little beyond the structured fields; baseline 3 applies.

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?

States a specific verb (write MIDI notes) plus the distinctive mechanism (compact bar|beat notation instead of verbose note JSON), which tells an agent this is the compact-notation writer rather than a generic note editor. It does not name any sibling tool explicitly, so differentiation relies on the agent recognizing that an unnamed JSON-based writer exists.

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?

The phrase 'instead of verbose note JSON' gives a clear selection rationale: prefer this tool when compactness or avoiding float-beat drift matters. There are no explicit exclusions (e.g. when a JSON/structured note editor is required) and no named alternative, so the guidance is contextual rather than exhaustive.

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