Skip to main content
Glama

create_drum_pattern

Create drum patterns from step-sequencer shorthand using letters for kicks, snares, hi-hats, and more. Automatically generates MIDI items with specified steps and bars.

Instructions

Create a drum pattern from step-sequencer shorthand.

Each line of pattern is one drum lane. Characters map to GM drums: k=kick, s=snare, h=hi-hat closed, o=hi-hat open, c=crash, r=ride, t=mid tom, l=low tom, i=high tom, p=clap, b=rimshot. . or space = rest. Any unknown character is ignored.

Example — standard 16-step rock beat:

k...k...k...k...
....s.......s...
h.h.h.h.h.h.h.h.

Defaults: 16 steps per bar = 1/16-note grid. channel=9 = GM drum channel. Pass item_index=-1 to auto-create a new MIDI item starting at start_qn.

Returns the item index and number of notes inserted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
track_indexYes
patternYes
item_indexNo
start_qnNo
steps_per_barNo
bar_countNo
velocityNo
channelNo
Behavior3/5

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

No annotations provided, so the description carries full burden. It discloses defaults and return values, but does not clarify behavior when item_index is not -1 (e.g., modifying existing items) or other edge cases.

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?

The description is well-structured with clear sections (overview, mapping, example, defaults, return value). Every sentence adds value, no wasted words.

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?

Given 8 parameters and no output schema or annotations, the description provides core functionality but leaves gaps: bar_count and item_index behaviors are not fully explained, and return value details are minimal.

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 coverage is 0%, so the description must compensate. It thoroughly explains the pattern parameter and provides defaults for others, but does not add meaning for parameters like track_index, steps_per_bar, etc., beyond schema names.

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?

The description clearly states it creates a drum pattern using step-sequencer shorthand, with detailed character mapping and an example. It distinguishes itself from sibling tools like midi_insert_note by focusing on drum-specific pattern creation.

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 description explains when to use the tool (to create drum patterns) and provides the pattern syntax. It implies usage through examples but does not explicitly state when not to use it or compare to alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xDarkzx/Reaper-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server