Skip to main content
Glama

mcp_opendaw_randomize_note_durations

Randomize note durations with five distribution modes to add generative variation to MIDI regions. Control variation amount, duration bounds, and total length preservation for musical character.

Instructions

Randomize note durations with controllable distribution.

Adds generative variation to note lengths. Unlike humanize_notes (which adjusts timing+velocity), this focuses purely on duration with 5 distribution modes for different musical characters.

Args: unit_index: Audio unit index track_index: Note track index region_index: Region index (-1 = first region) variation: Amount of variation (0.0=no change, 0.3=moderate, 1.0=extreme). Applied as percentage of original duration. distribution: Distribution mode — "uniform" = equal probability across range, "increasing" = durations tend to get longer over time, "decreasing" = durations tend to get shorter over time, "bimodal" = clusters around short and long extremes, "jitter" = small perturbations around original values. min_duration_beats: Minimum duration in beats (0.0625=1/64th, 0.125=1/32nd, 0.25=1/16th). max_duration_beats: Maximum duration in beats (4=whole note, 8=two whole notes). preserve_total: If True, scale all durations so the total summed duration equals the original. Useful for maintaining phrase length. seed: PRNG seed for reproducibility.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNo
variationNo
unit_indexYes
track_indexYes
distributionNouniform
region_indexNo
preserve_totalNo
max_duration_beatsNo
min_duration_beatsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It explains distribution modes, variation interpretation, preserve_total scaling, and seed reproducibility. However, it does not explicitly state that the operation modifies note data in place, whether it is reversible, or what happens to notes outside the region/selection — gaps for a mutating tool with no annotations.

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 opens with a one-sentence summary, adds a distinguishing comparison paragraph, and then a well-structured Args list where each parameter gets one concise line. No filler.

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?

The tool has 9 parameters and a complex domain (distribution modes, beat bounds, total preservation), and the description covers all of them with examples and semantics. It omits explicit mutability/undo warnings, and return values are covered by the output schema, so the remaining gap is minor.

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

Parameters5/5

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

Schema description coverage is 0%, and the description fully compensates by explaining every parameter: unit_index, track_index, region_index with default interpretation, variation with examples, all 5 distribution modes with one-line definitions, min/max duration with beat examples, preserve_total semantics, and seed purpose.

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 first sentence 'Randomize note durations with controllable distribution' provides a specific verb and object, and the description explicitly contrasts with 'humanize_notes (which adjusts timing+velocity)' and enumerates 5 distribution modes, clearly differentiating it from sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly names 'humanize_notes' as the alternative and contrasts the focus ('purely on duration' vs timing+velocity), telling the agent when to choose this tool for duration-based variation. It also gives context for generative variation, making the usage clear.

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/ameobius-ai/opendaw-mcp'

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