Skip to main content
Glama

plan_midi_scale_chord_remapping

Read-onlyIdempotent

Map chord onsets onto specific degrees of Live's current scale while keeping chord intervals and expression intact, using either register preservation or voice leading.

Instructions

Plan complete chord onsets onto explicit degrees of Live's current scale while preserving chord intervals and expression.

Input Schema

NameRequiredDescriptionDefault
modeYesAnchor each chord near its source register or each later chord near the previous remapped bass.
clipIdYeslist_clips Session ID or supported list_arrangement_clips ID.
noteIdsYesUnique stable note IDs at complete chord onsets.
trackIdYesID from list_tracks.
targetDegreesYesOne target Live scale degree for each ordered chord onset.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.1
    • changedInput schema / properties / clipId / description
      Previous value: -"Session ID from list_clips; Arrangement ID from list_arrangement_clips where supported."New value: +"list_clips Session ID or supported list_arrangement_clips ID."
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "clipId": {
      +        "type": "string"
      +      },
      +      "context": {
      +        "type": "object"
      +      },
      +      "plan": {
      +        "properties": {
      +          "changes": {
      +            "items": {
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "newNotes": {
      +            "items": {
      +              "properties": {
      +                "duration": {
      +                  "type": "number"
      +                },
      +                "pitch": {
      +                  "maximum": 127,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "start": {
      +                  "type": "number"
      +                },
      +                "velocity": {
      +                  "maximum": 127,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "pitch",
      +                "start",
      +                "duration",
      +                "velocity"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "noteIds": {
      +            "items": {
      +              "type": "integer"
      +            },
      +            "type": "array"
      +          },
      +          "notes": {
      +            "items": {
      +              "properties": {
      +                "duration": {
      +                  "type": "number"
      +                },
      +                "pitch": {
      +                  "maximum": 127,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "start": {
      +                  "type": "number"
      +                },
      +                "velocity": {
      +                  "maximum": 127,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "pitch",
      +                "start",
      +                "duration",
      +                "velocity"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "preservedNotes": {
      +            "items": {
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [],
      +        "type": "object"
      +      },
      +      "stateVersion": {
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "trackId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "stateVersion",
      +      "trackId",
      +      "clipId",
      +      "context",
      +      "plan"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "properties": {
      +          "message": {
      +            "type": "string"
      +          },
      +          "outcome": {
      +            "enum": [
      +              "unknown",
      +              "not_executed"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "message",
      +          "outcome"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed3 schema fields changedv0.3.0
    • changedInput schema / properties / clipId / description
      Previous value: -"Stable 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."New value: +"Session ID from list_clips; Arrangement ID from list_arrangement_clips where supported."
    • changedInput schema / properties / trackId / description
      Previous value: -"Stable track ID returned by list_tracks."New value: +"ID from list_tracks."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  3. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world behavior. The description adds useful behavioral context by stating that chord intervals and expression are preserved, but it does not cover edge cases or explain how the plan output is structured beyond what the output schema provides.

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 efficiently states the action, target, and preservation guarantee.

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?

With rich annotations, 100% schema coverage, and an output schema, the description is largely complete for correct invocation. Its main gap is the lack of explicit routing between this planning tool and its apply counterpart.

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 all five parameters are fully documented in the input schema. The description reinforces that target degrees are explicit and that chord onsets should be complete, but it adds little parameter-level meaning beyond the schema itself.

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 states a specific verb and resource: planning chord onsets onto explicit degrees of Live's current scale, with a preservation constraint. It is clear what the tool does, but it does not explicitly name or distinguish itself from the sibling apply_midi_scale_chord_remapping tool.

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 use of 'Plan' implies this is the planning stage rather than the mutation stage, but the description does not explicitly state when to use it versus apply_midi_scale_chord_remapping or other related planning tools. Usage is implied rather than guided.

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