Skip to main content
Glama

mcp_opendaw_create_motif_variations

Create motif variations using classical techniques like sequence, inversion, retrograde, augmentation, diminution, or fragmentation for thematic development.

Instructions

Extract a motif from existing notes and create a variation in a new region.

Closes the analysis→creation loop: extract_motifs finds repeating patterns, this tool takes a specific motif and transforms it using classical composition techniques. The motif is identified by start_note index and note_count within the source region.

Variation types:

  • sequence: repeat the motif shifted up/down by N scale steps or semitones. Creates melodic sequences — the backbone of classical and jazz improvisation.

  • inversion: flip the contour upside down. C→E→G (+4, +3) becomes C→A→F (-3, -2). The intervals are mirrored around the first note.

  • retrograde: play the motif backwards. Last note first, first note last. The rhythm and pitches are reversed in time.

  • augmentation: stretch all durations by a factor (2.0 = twice as slow). Creates grand, expansive statements from quick motifs.

  • diminution: compress all durations by a factor (2.0 = twice as fast). Creates urgency and energy from slow motifs.

  • fragmentation: take the first N notes of the motif and repeat them. Creates rhythmic ostinatos from melodic material.

Essential for: developing melodic material, building variations, creating thematic development, and extending motifs into new sections.

source_unit/track/region: Location of the source motif. start_note: Index of the first note of the motif within the source region (0-based, sorted by position). note_count: Number of notes in the motif (3-16). target_unit/track/region: Where to write the variation. -1 = create new track/region automatically. variation_type: sequence, inversion, retrograde, augmentation, diminution, fragmentation. sequence_shift: For sequence type — semitones to shift each repetition. augmentation_factor: For augmentation/diminution — duration multiplier. fragment_count: For fragmentation — how many notes to keep from the start.

Returns the created variation with note details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
note_countNo
start_noteNo
source_unitNo
target_unitNo
source_trackNo
target_trackNo
source_regionNo
target_regionNo
fragment_countNo
sequence_shiftNo
variation_typeNosequence
augmentation_factorNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full burden and does well: it details where the variation is written, the meaning of -1 for auto-creation, and the exact transform behaviors for all six variation types with musical examples. It does not explicitly warn that writes to an existing target region may overwrite notes, a minor gap for a mutation tool.

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 long but densely informative with clear Markdown structure: opening summary, variation type list with examples, and parameter breakdown. Each sentence serves a purpose—examples like 'C→E→G (+4, +3) becomes C→A→F (-3, -2)' concretely illustrate inversion without fluff.

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

Completeness5/5

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

For a complex tool with six transformation types and 12 parameters, the description covers variation semantics, parameter details, and location handling. An output schema exists, so the return value note is sufficient. Minor omission of error conditions (e.g., note_count out of range) is outweighed by the thorough treatment of functionality.

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%, so the description fully compensates by explaining every parameter: start_note indexing, note_count range (3-16), source/target locations, variation_type values, sequence_shift as semitones, augmentation_factor as duration multiplier, and fragment_count as notes from the start. This far exceeds minimal compensation.

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 opens with a clear specific action: 'Extract a motif from existing notes and create a variation in a new region.' It explicitly identifies the resource (motif, notes, region) and contrasts with the sibling extract_motifs, making its unique role in the analysis→creation loop obvious.

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?

It names extract_motifs as the complementary tool and explains that this tool 'takes a specific motif and transforms it,' providing solid context for when to reach for it. It also lists 'Essential for' use cases. However, it does not explicitly mention when not to use it or alternative variation-creating tools like create_variations.

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