Skip to main content
Glama

add_drum_pattern

Program drum patterns step-sequencer style on a track's drum instrument. Lanes map to note names, saved drum maps, or General MIDI, and the result shows which note each lane landed on.

Instructions

Programs drums step-sequencer style on whatever drum instrument the track has. The result's 'lanes' shows which note each lane landed on and why.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepNoLength of one step in QN: 0.25 = 16ths, 0.5 = 8ths, 1/3 = 8th triplets
startNoStart in QN from the item start
swingNo50 = straight, ~58 = light swing, ~66 = triplet shuffle
channelNoMIDI channel; GM drums use 10
item_idYesMIDI item id from create_midi_item/get_track_details, or "selected"
patternYesLane name -> steps. Name lanes by drum (kick, snare, clap, closed hat, open hat, pedal hat, ride, crash, low/mid/high tom, rim, shaker...); they're matched to the instrument's own note names, then a saved drum map, then General MIDI. Note names/numbers (C1, 36) also work. Steps: x hit, X accent, o ghost, 1-9 velocity level, . rest; spaces and | are ignored. Example: {'kick': 'x...x...x...x...', 'snare': '....x.......x...'}
repeatsNoHow many times to play the pattern back to back
replaceNo
humanizeNoRandom velocity variation, 0-1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.19.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It reveals one useful trait, that the result's 'lanes' explains where each lane landed, but omits whether existing notes are overwritten (the 'replace' flag is only defaulted in schema, not explained), whether the item_id must exist first, or how unmatched lane names are resolved beyond the schema's brief hint.

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?

Two sentences, front-loaded with the core action, and the second sentence adds non-redundant return-value context. No filler, though the second sentence is a touch cryptic ('and why') without much elaboration.

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 9-parameter, nested-object mutation tool with no annotations and no output schema, the description covers the action and hints at the output ('lanes'), which is helpful. But it leaves gaps around side effects (replace behavior, whether an existing MIDI item is required) that an agent would need before invoking it correctly.

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 89%, so the schema already documents nearly every parameter (step, start, swing, channel, patching/velocity syntax in 'pattern', humanize). The description adds no parameter detail beyond what the schema supplies, so the 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 (programs) and resource (drums, step-sequencer style) on the track's drum instrument. It is distinguishable from siblings like add_midi_notes or write_bassline, though it never names the closest alternatives such as add_genre_groove or map_drum_kit to sharpen the boundary.

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

Usage Guidelines2/5

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

The description implies the tool is for step-sequencer-style drum programming but gives no explicit when-to-use, prerequisites (e.g. the item must already exist and be on a drum instrument), or when a sibling like add_midi_notes or add_genre_groove would be the better choice.

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

Deploy Server

Other Tools