Skip to main content
Glama

mcp_opendaw_create_counter_melody_from_progression

Create a counter-melody from a chord progression, selecting from contrapuntal patterns like contrary, parallel third, or call-response to add harmonic depth without competing with the primary melody.

Instructions

Create a counter-melody (second melodic line) from a chord progression.

A counter-melody is a secondary melodic line that plays alongside the primary melody. It provides harmonic depth and contrapuntal interest without competing for the listener's attention.

This completes the harmonic quintet: chord_pads + arpeggiated_progression + bass_from_progression + melody_from_progression + THIS (counter-melody). Place on track 4 (default) to avoid clashing with melody (track 3).

pattern: Contrapuntal pattern: "contrary" — moves opposite to chord root motion (if root goes up, counter goes down). Classic species-1 counterpoint feel. "oblique" — one note sustained across the chord, changes only when the harmony forces it. Minimalist, drone-like. "parallel_third" — parallels the chord tones a third above. Sweet, consonant, pop/folk counter-melody. "parallel_sixth" — parallels the chord tones a sixth above. Open, spacious, cinematic. More independent than parallel third. "call_response" — answers after the melody would play: rests on beats 1-2, plays on beats 3-4. Antiphonal, gospel/soul feel.

bars_per_chord: Bars per chord (default 4). octave: MIDI octave (default 4 = below typical melody at 5). velocity: Lower than melody (0-1, default 0.6 = supportive, not competing). track_index: Track for counter-melody (default 4, above melody track 3).

Example:

Counter-melody below the lead

create_counter_melody_from_progression("Am-F-C-G", pattern="contrary", octave=4, velocity=0.6)

Cinematic parallel sixths

create_counter_melody_from_progression("Dm-G-C-Am", pattern="parallel_sixth", octave=4, velocity=0.55)

Gospel call-and-response

create_counter_melody_from_progression("C-Am-Dm-G", pattern="call_response", octave=5, velocity=0.65)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
octaveNo
patternNocontrary
velocityNo
start_beatNo
unit_indexNo
progressionNoAm-F-C-G
track_indexNo
bars_per_chordNo

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 discloses the pattern options (contrary, oblique, parallel_third, parallel_sixth, call_response) and default values for octave, velocity, and track_index, which gives insight into the generated output. However, it does not mention side effects such as whether existing notes on the target track are overwritten, what exactly is created (e.g., a MIDI region), or any prerequisites beyond having a progression. This is adequate but not exhaustive.

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: a definition, context about the harmonic quintet, a bulleted list of pattern options, a parameter list, and three examples. It is longer than the minimum but every section adds value—the pattern explanations are particularly useful. It could be slightly trimmed (e.g., the example code block is long), but it remains efficient and front-loaded with the core purpose.

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 tool with 8 parameters and moderate complexity, the description covers most key aspects: purpose, patterns, defaults, track placement, and examples. It is incomplete regarding start_beat and unit_index, and it does not specify the expected format of the progression string beyond the example 'Am-F-C-G'. Since an output schema exists, the lack of return-value documentation is acceptable. Overall, it is a thorough description with minor gaps.

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?

The input schema has no parameter descriptions (0% coverage), so the description must compensate. It explains pattern, bars_per_chord, octave, velocity, and track_index, including detailed sub-values for pattern. The examples also demonstrate parameter usage. However, two parameters—start_beat and unit_index—are not mentioned at all, leaving them unexplained. This is a significant but not total gap, so a 4 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 opens with 'Create a counter-melody (second melodic line) from a chord progression,' which clearly names the verb and resource. It further distinguishes this tool from the related melody_from_progression by emphasizing it is the secondary line, and explicitly places it in the harmonic quintet alongside chord_pads, arpeggiated_progression, bass_from_progression, and melody_from_progression.

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 provides clear usage context: it should be used to add a second melodic line over an existing progression/melody, and it is the final piece of the harmonic quintet. It also advises placing it on track 4 to avoid clashing with the melody on track 3. However, it does not explicitly name alternative tools or say when not to use it, so it falls short of a 5.

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