Skip to main content
Glama

generate_drums

Destructive

Create drum MIDI clips in Ableton Live from genre patterns, pocket grooves, Euclidean rhythms, or ASCII grids, replacing existing notes in the selected clip slot.

Instructions

Generate a drum MIDI clip (REPLACES existing notes).

  • mode='pattern' (default): genre beat (lofi/boom_bap/house/techno/trap/dnb/ambient); swing default 0.06 beats, humanize default 6.

  • mode='groove': pocketed groove with ghost snares (lofi/boom_bap/house/trap/jazz/funk); pocket, swing default 0.55, ghost, humanize default 8.

  • mode='euclidean': Bjorklund rhythm E(pulses,steps) for one instrument (name or MIDI #).

  • mode='grid': ASCII 16th-note grid (grid: 'kick: X..x....\nsnare: ....x...'; X/x/o/./-).

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>"
    },
    "name": "generate_drums"
  }
}

Input Schema

NameRequiredDescriptionDefault
barsNo
gridNo
modeNopattern
seedNo
ghostNo
stepsNo
styleNolofi
swingNo
pocketNo
pulsesNo
rotateNo
humanizeNo
velocityNo
clip_indexYesZero-based Session-view clip-slot index on the track.
instrumentNokick
track_indexYesZero-based index of a regular track in the Live set.

Output Schema

NameRequiredDescriptionDefault
dataYes
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, and the description corroborates and sharpens it with '(REPLACES existing notes)', telling the agent exactly what is destroyed. It also discloses per-mode defaults for swing, humanize, and ghost that the schema shows only as null, which is real added value beyond structured fields.

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?

One lead sentence with the destructive warning, then four bullets, one per mode. Dense but front-loaded, and no sentence is redundant padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter tool with an output schema (so return values need no explanation), the mode documentation is good but four parameters (bars, seed, rotate, velocity) are left undocumented in both schema and description. An agent can call the common paths correctly but will guess on those.

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 only 13%, so the description must compensate, and it largely does: mode, style enumerations per mode, swing/humanize/pocket/ghost defaults, pulses/steps for Euclidean, instrument as name or MIDI number, and the grid character legend. Bars, seed, rotate, and velocity remain undefined in both places.

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 ('Generate a drum MIDI clip') and immediately flags the destructive side effect. The four mode names make it clearly distinguishable from siblings like generate_bass, generate_chords, and edit_notes.

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?

Each mode is given a use context (genre beat, pocketed groove, Euclidean rhythm, ASCII grid), so an agent can pick a mode without guessing. It stops short of saying when to use this tool versus edit_notes or create_clip, but mode routing is genuinely clear.

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