Skip to main content
Glama

ramp_midi_note_velocities

Apply a linear velocity ramp across MIDI notes to create crescendos or decrescendos, interpolating from start to end velocity based on note timing.

Instructions

Apply a linear velocity ramp (crescendo / decrescendo) across MIDI notes.

Velocities interpolate by onset: the earliest note in the filtered set gets start_velocity, the latest gets end_velocity, everything between is linear. Notes sharing an onset (a chord) get the same velocity. Results clamp to 1-127.

Args: start_velocity: Velocity at the earliest onset (1-127; out of range clamps, not an error). end_velocity: Velocity at the latest onset (1-127).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsNo
channelNo
end_beatNo
pitch_lowNo
item_indexYes
pitch_highNo
start_beatNo
track_indexYes
end_velocityYes
return_notesNo
start_velocityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.3

TDQS

A3.5/5.0
Behavior4/5

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

Beyond the single destructiveHint false annotation, the description discloses several behavioral specifics: interpolation is by onset, chords get same velocity, results clamp to 1-127, and out-of-range velocities clamp rather than error. This adds real value. However, it omits any mention of return behavior (despite a return_notes parameter) and the filtering mechanism, which are relevant side effects.

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 concise and well-structured. It leads with the purpose, follows with a clear algorithm explanation, and lists the two key parameters with annotations. No redundant information; every sentence contributes to understanding the core behavior.

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?

Given 11 parameters, no output schema, and minimal annotations, the description is incomplete. It does not explain how the filtered note set is determined (the role of track_index, item_index, channel, pitch, beat filters) nor what the tool returns (return_notes). This leaves critical usage knowledge missing, especially for a tool with such a large parameter surface.

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 explain parameters. It only covers start_velocity and end_velocity (including clamping behavior), but leaves the other 9 parameters (track_index, item_index, fields, channel, pitch_low/high, start_beat/end_beat, return_notes) entirely unexplained. The agent must guess their meaning from names alone, which is insufficient for correct invocation.

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 a specific operation: applying a linear velocity ramp (crescendo/decrescendo) across MIDI notes. It uses a precise verb and resource, and the interpolation details (by onset, linear, chords share velocity) make the purpose unmistakable and distinct from sibling tools like scale_midi_note_velocities or humanize_midi_notes.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention conditions (e.g., 'when you need a gradual dynamic change') or exclusions ('do not use for uniform scaling'). It only describes what the tool does, leaving the agent to infer applicability from context.

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