Skip to main content
Glama

mcp_opendaw_create_melodic_polyrhythm

Generate a melodic polyrhythm by spacing a specified number of notes evenly across a set number of beats, using scale-based pitch patterns to create cross-rhythms.

Instructions

Create a polyrhythm — N notes evenly spaced across M beats.

A polyrhythm places numerator notes evenly across denominator beats, creating cross-rhythms against the main pulse. 3:4 = triplet feel, 5:4 = quintuplet, 7:4 = septuplet, 3:2 = half-note triplets.

The notes ascend or descend through the specified scale, creating a melodic polyrhythm rather than just rhythmic hits. This is the foundation of jazz cross-rhythm, prog-rock metric modulation, African cross-pulse, and contemporary classical writing.

Args: unit_index: Audio unit index track_index: Note track index numerator: Number of notes to fit across denominator beats (2-9, default 3). This is the "against" number. denominator: Number of beats to span (2-8, default 4). This is the "base" pulse. bars: Number of times to repeat the polyrhythm cycle (1-8, default 1). pitches: Comma-separated MIDI pitches for custom note selection. If provided, overrides scale-direction generation. Notes cycle through this list. velocity: Base velocity (0-1, default 0.8) velocity_pattern: Velocity across the polyrhythm — "constant": same velocity "accent": accent first note of each cycle "fade": linear fade across all notes "wave": sine wave velocity pattern start_beat: Position in beats where polyrhythm starts (default 0.0) direction: Pitch direction when using scale generation — "up": ascending through scale "down": descending through scale "alternate": up then down per cycle scale: Scale for pitch generation ("major", "minor", "dorian", "phrygian", "lydian", "mixolydian", "locrian", "harmonic_minor", "melodic_minor", "pentatonic", "blues", "chromatic") root: Root note for scale (C, C#, D, ... B)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
barsNo
rootNoC
scaleNomajor
pitchesNo60
velocityNo
directionNoup
numeratorNo
start_beatNo
unit_indexYes
denominatorNo
track_indexYes
velocity_patternNoconstant

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 of behavioral disclosure. It explains that the tool creates notes that ascend or descend through a scale and provides parameter details like velocity patterns. However, it does not disclose side effects (e.g., whether it overwrites existing notes, if there are prerequisites for track_index, or what happens on error). It also doesn't mention the output schema, though one exists. The description is moderately transparent but could be more explicit about behavioral aspects beyond basic functionality.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a lead sentence defining the purpose, a brief explanatory paragraph, and a clear parameter list. It is front-loaded with the core concept. While it includes some extra context (musical applications), every sentence adds value. It is not overly verbose given the complexity of the tool, but slightly longer than necessary. Score 4 for good structure and efficiency.

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

Completeness3/5

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

Given the complexity (12 parameters, no annotations, has an output schema), the description covers the tool's purpose and parameter details well. However, it omits information about the return value (despite an output schema existing), error conditions, prerequisites for using the tool (e.g., track must exist), and idempotency. The musical context is useful but not essential for correct invocation. The description is adequate but incomplete for a fully autonomous agent.

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?

Schema description coverage is 0%, so the description must compensate, and it does so effectively. Each parameter (12 total) is described in a separate line, explaining its purpose, allowed values, defaults, and format (e.g., 'pitches: Comma-separated MIDI pitches' and 'direction: Pitch direction when using scale generation — up/down/alternate'). This adds significant meaning beyond the bare schema. Minor gaps: 'velocity_pattern' enum values are listed but not enumerated in the schema; some defaults are repeated from schema but still helpful. Overall, the param descriptions are thorough.

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 the tool's purpose: 'Create a polyrhythm — N notes evenly spaced across M beats.' It distinguishes this tool from the sibling 'create_polyrhythm' by specifying it creates a 'melodic polyrhythm rather than just rhythmic hits.' The verb 'create' combined with the resource 'melodic polyrhythm' and the specific explanation of cross-rhythms against a main pulse makes the purpose unambiguous.

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

Usage Guidelines3/5

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

The description provides context about when this tool is appropriate, mentioning jazz cross-rhythm, prog-rock metric modulation, etc. However, it does not explicitly tell the agent when to use this tool versus alternatives like the sibling 'create_polyrhythm' (which is a non-melodic version). No 'when not to use' guidance is given, so the agent must infer usage from context.

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

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