Skip to main content
Glama

edit_drum_pattern_clip

Replace selected drum lanes and bars in a MIDI clip while preserving unrelated notes. Dry-run planning and confirmed execution guard changes.

Instructions

Plan or apply guarded replacement of selected drum lanes and bars in an existing MIDI clip. Preserves unrelated notes and verifies the complete native note set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
barsYes
gridYes
lanesYesDrum lanes to replace inside the selected bars.
clipIdYesStable clip ID: track-N:clip-M from list_clips, or track-N:arrangement-clip-M from list_arrangement_clips for tools that support Arrangement clips.
dryRunNoOmit or true to return a plan; false requires a valid confirmationToken.
trackIdYesStable track ID returned by list_tracks.
planHashNoHash returned by the matching dry run.
startBarYes
confirmationTokenNoShort-lived, single-use token returned by the matching dry run.
expectedStateVersionYesExact stateVersion observed immediately before planning.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=false. The description adds 'guarded replacement' and 'preserves unrelated notes', which provides some safety context, but it omits the two-phase plan/apply flow, the need for expectedStateVersion, and the confirmation token mechanism. The description carries partial burden but is incomplete.

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?

Two concise sentences that are front-loaded with the core purpose and include a key safety behavior. No filler or redundancy.

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

Completeness2/5

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

For a tool with 10 parameters and a two-phase guarded workflow, the description is too sparse. It omits essential workflow details such as the dryRun/confirmationToken flow, how to obtain planHash, and the role of expectedStateVersion, making safe invocation difficult without deep schema inspection.

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 coverage is 70%, leaving bars, grid, and startBar without descriptions. The description does not add any parameter-level meaning; it relies entirely on the schema. Given the gaps, the description should compensate but does not.

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?

The description clearly states the action: replace selected drum lanes and bars in an existing MIDI clip, with 'Plan or apply' indicating two modes. It is specific about the resource and operation, but it does not differentiate from siblings like plan_drum_pattern_edit or apply_drum_variation.

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?

No guidance is given on when to use this tool versus alternatives. It does not explain when to plan versus apply, nor mention prerequisites such as an existing clip or the need for a prior plan. The agent is left to infer usage from the schema.

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