Skip to main content
Glama

apply_midi_velocity_curve

Apply a MIDI velocity curve to selected notes, setting crescendo, decrescendo, fixed, or accent velocities while preserving timing, pitch, and other metadata. Plan first, then confirm to execute.

Instructions

Plan or apply a guarded MIDI velocity curve while preserving timing, pitch, duration, probability, and expression metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
curveYesExact crescendo, decrescendo, fixed, or repeating accent target.
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.
noteIdsYesUnique stable note IDs at complete selected onsets.
trackIdYesStable track ID returned by list_tracks.
planHashNoHash returned by the matching dry run.
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

A4.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, so the description correctly implies a guarded mutation. The description adds the key behavioral guarantee that timing, pitch, duration, probability, and expression metadata are preserved, which is valuable context beyond the annotations. It does not detail failure modes or confirmation token expiry, but the guarded dry-run/apply pattern is disclosed.

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?

A single, dense sentence that front-loads the action ('Plan or apply'), names the resource, and lists the preservation guarantees. No wasted words; every phrase earns its place.

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

Completeness4/5

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

For a guarded mutation tool with 100% schema coverage and no output schema, the description is nearly complete. It explains the plan/apply duality and the preservation guarantees. It could add a note about the confirmation token being required for apply, but the dryRun parameter description already covers that.

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 100%, so the schema already documents all 8 parameters. The description adds the preservation guarantee and the guarded plan/apply semantics, but does not add meaning beyond what the schema's parameter descriptions already provide. Baseline 3 is appropriate.

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 states a specific verb ('Plan or apply'), a specific resource ('guarded MIDI velocity curve'), and explicit preservation guarantees ('preserving timing, pitch, duration, probability, and expression metadata'). This clearly distinguishes it from sibling planning tools like plan_midi_velocity_curve and other apply_midi_* tools.

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 implies the two-phase workflow ('Plan or apply') and the dryRun/confirmationToken parameters make the when-to-use explicit. However, it does not explicitly name alternatives or state when not to use this tool versus plan_midi_velocity_curve or other apply_midi_* tools.

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