Skip to main content
Glama

mcp_opendaw_apply_contour

Apply a melodic contour shape to existing notes, reshaping pitch direction while preserving timing and duration. Choose from ascending, descending, arch, inverted arch, wave, or escalating contours.

Instructions

Apply a melodic contour shape to existing notes.

Redistributes note pitches to follow a specified contour profile while keeping timing and duration unchanged. Unlike transpose_notes (uniform shift), this reshapes the melody direction — ascending, descending, arch, inverted arch, wave, or custom.

The tool calculates a target pitch for each note based on its position in the sequence (0..1 normalized) mapped through the contour function, then snaps to the nearest scale degree if requested. The original pitch range center is preserved.

Contours:

  • "ascending": low to high across the phrase

  • "descending": high to low

  • "arch": rise then fall (peak at midpoint)

  • "inverted_arch": fall then rise (valley at midpoint)

  • "wave": sinusoidal up-down-up

  • "escalating": stepwise ascending with plateaus

Args: unit_index: Audio unit index track_index: Note track index region_index: Region index (-1 = first region) contour: Contour shape name range_semitones: Pitch range span in semitones (1-48, default 12=octave) snap_to_scale: Scale for snapping results (""=chromatic, "major", "minor", "dorian", "phrygian", "lydian", "mixolydian", "locrian", "harmonic_minor", "melodic_minor", "pentatonic", "blues") root: Root note for scale snapping preserve_first: Keep first note pitch unchanged preserve_last: Keep last note pitch unchanged

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootNoC
contourNoarch
unit_indexYes
track_indexYes
region_indexNo
preserve_lastNo
snap_to_scaleNo
preserve_firstNo
range_semitonesNo

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 responsibility for behavioral disclosure. It includes important behaviors: timing and duration remain unchanged, original pitch range center is preserved, and snapping to scale degree is optional. However, it does not explicitly state the destructive nature (e.g., that pitches are overwritten) or mention undo/restore implications beyond the preserve flags, leaving a slight transparency gap.

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 structured cleanly: purpose statement, algorithm explanation, contour definitions, and args list. Every sentence adds value—no redundant repetition of schema titles or types. It is front-loaded with the primary action and scales into necessary detail without bloat.

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?

Given 9 parameters, no annotations, and an existing output schema (so return values need not be described), the description is remarkably complete. It covers the algorithmic behavior, all contour semantics, parameter nuances, and even provides a differentiation from a sibling. This equips the agent to invoke the tool correctly in context.

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 must compensate for the schema's lack of parameter docs. It does this thoroughly: each parameter is explained with units, ranges, defaults, and allowed values (e.g., range_semitones '1-48, default 12=octave', full contour list, scale list). This is essential and well-executed.

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 specific verb+resource: 'Apply a melodic contour shape to existing notes.' It further details the behavior (redistributes pitches while keeping timing/duration) and explicitly contrasts with transpose_notes ('uniform shift'), making the tool's unique purpose unmistakable and well-differentiated from siblings.

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?

The description explicitly names the alternative transpose_notes and explains the difference: 'Unlike transpose_notes (uniform shift), this reshapes the melody direction.' This provides a clear when-to-use/when-not-to-use signal, telling the agent to reach for this tool when reshaping contour rather than shifting uniformly.

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