Skip to main content
Glama

create_drum_pattern

Generates a drum pattern on a track from a step-sequencer string where each character represents a drum hit or rest.

Instructions

Create a drum pattern on a track using a step-sequencer string. Each character = one step. Characters: k=kick, s=snare, h=hihat(closed), o=hihat(open), t=tom(low), m=tom(mid), f=tom(high), c=crash, r=ride, .=rest. Example 4/4 rock beat (16 steps): "k...h...s...h..." All drum notes are placed on MIDI channel 9 (GM standard).

Input Schema

NameRequiredDescriptionDefault
beatsNo
patternYes
repeatsNo
track_indexYes
start_positionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

No annotations, so the description carries the full burden. It usefully discloses that all notes go to MIDI channel 9 per GM, but says nothing about side effects on the target track (overwrite vs. append), validation/error behavior on mismatched beats vs. pattern length, or whether a new MIDI item is created.

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?

Purpose is front-loaded, followed by the legend, a concrete 16-step example, and a channel note — all earning their place given zero schema documentation. Slightly dense but no filler.

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 mutation tool with no annotations and no output schema, the critical 'pattern' grammar is well specified, but the four other parameters and the resulting behavior/return are undocumented. Adequate for calling it with a plausible pattern, incomplete for calling it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for five parameters and only really covers 'pattern' (with a full character legend and example). track_index, start_position (units unclear), beats, and repeats are left entirely unexplained in both schema and description.

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+resource ('Create a drum pattern on a track') plus the unique mechanism ('step-sequencer string'), which implicitly separates it from add_midi_note (single notes) and create_chord_progression. An agent can pick this tool without opening the schema.

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?

The step-sequencer framing implies when to use it (programmatic drum beats), but there is no explicit guidance such as when to prefer add_midi_note or what to do if the track already contains a MIDI item. Usage is inferred rather than stated.

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