Skip to main content
Glama

write_drum_grid

Destructive

Write drum patterns from an ASCII grid of 16th-note steps. Replace notes in a clip by specifying instruments and pattern characters for accented, normal, soft hits, or rests.

Instructions

Write drums from an ASCII grid (16th-note steps). REPLACES existing notes.

grid: one line per instrument: "name: pattern" where pattern chars are 'X' (accent, vel 105), 'x' (normal, 85), 'o' (soft, 55), '.' or '-' (rest). Line length = number of 16th steps (16 = one 4/4 bar; 32 = two bars...). Instruments: kick snare rim clap chat phat ohat ltom mtom htom crash ride perc shaker, or a raw MIDI number ("36: x...").

Example (one bar of lofi): kick: X..x......X..... snare: ....x.......x... chat: x.o.x.o.x.o.x.o.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gridYes
swingNo
clip_indexYes
track_indexYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description reinforces the destructiveHint annotation by stating 'REPLACES existing notes' and details velocity mapping and instrument names. However, it does not mention potential side effects like clip creation or automation behavior, which would enhance transparency.

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, an example, and front-loaded purpose. Every sentence adds value, and the use of line breaks improves readability.

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

Completeness5/5

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

Given the custom ASCII grid format, the description is complete with instrument list, velocity mapping, and example. The output schema exists, so return values are not needed. No major gaps remain.

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?

With 0% schema coverage, the description compensates by thoroughly explaining the 'grid' parameter with format, instruments, and example. The 'swing' parameter is mentioned but not detailed; 'track_index' and 'clip_index' are not described, leaving some burden on common knowledge.

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 explicitly states the tool writes drums from an ASCII grid and replaces existing notes, providing a specific verb and resource. It distinguishes from siblings like generate_drum_pattern by emphasizing direct writing and replacement.

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 clarifies that the tool replaces existing notes, but it does not explicitly state when not to use it or compare it to alternatives like add_notes_to_clip or edit_notes for non-destructive edits. The grid format and instrument list are well explained.

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/wstierhout/ableton-live-mcp'

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