Skip to main content
Glama

apply_midi_diatonic_harmony

Plan then apply scale-aware harmony to selected MIDI notes, preserving source notes and expression, using a dry-run confirmation for safety.

Instructions

Plan or apply guarded scale-aware harmony additions while preserving source notes and expression.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clipIdYesStable clip ID: track-N:clip-M from list_clips, or track-N:arrangement-clip-M from list_arrangement_clips for tools that support Arrangement clips.
dryRunNoOmit or true to return a plan; false requires a valid confirmationToken.
noteIdsYesUnique stable in-scale source note IDs.
trackIdYesStable track ID returned by list_tracks.
planHashNoHash returned by the matching dry run.
degreeOffsetsYesUnique signed non-zero scale-degree offsets for added harmony voices.
confirmationTokenNoShort-lived, single-use token returned by the matching dry run.
expectedStateVersionYesExact stateVersion observed immediately before planning.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description adds meaningful behavioral context: it signals guarded execution and explicitly promises preservation of source notes and expression. It does not discuss repeated-application side effects or scale/tonality assumptions, but it goes beyond the structured 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 is a single front-loaded sentence with no filler. It packs the action, the guarded nature, the resource, and the preservation constraint into one efficient statement.

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?

This tool has 8 parameters, 5 required, and no output schema, yet the description is only one sentence and leans heavily on schema field descriptions. It does not state preconditions such as valid track/clip or scale context, nor what happens when applying harmony to already-harmonized notes, which an agent would need for fully confident usage.

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

Parameters3/5

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

Schema description coverage is 100%, so each parameter is already well documented in the schema. The description adds only conceptual framing ('scale-aware harmony additions') and does not provide additional parameter-level semantics beyond what the input schema already contains. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific action ('Plan or apply'), a specific resource ('scale-aware harmony additions'), and a key invariant ('preserving source notes and expression'). It is clear about what the tool does, but it does not explicitly differentiate itself from siblings like plan_midi_diatonic_harmony or apply_midi_diatonic_chord_quality, so it falls short of a 5.

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 phrase 'Plan or apply guarded' plus the dryRun/confirmationToken schema descriptions imply a two-phase workflow: plan first, then apply with a token. However, the description itself gives no explicit guidance on when to choose this tool over the sibling planning tool or other harmony tools, and it states no exclusions or alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools