Skip to main content
Glama

generate_chords

Destructive

Generate chord progressions into a Session MIDI clip, replacing existing notes, using voiced, basic, or genre modes for jazz voicings, rhythms, and auto-built arrangements.

Instructions

Generate chord progressions into a Session MIDI clip (REPLACES existing notes).

  • mode='voiced' (default): voice-led jazz/modern voicings (progression, style: rootless/quartal/shell/block, voices, humanize).

  • mode='basic': compact chords with rhythm (held/stabs/quarters) and strum (progression).

  • mode='genre': auto-builds a genre progression (genre, key, scale, bars) then voices it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "track_index": "<track_index>",
      "clip_index": "<clip_index>"
    },
    "name": "generate_chords"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoC
barsNo
modeNovoiced
seedNo
genreNo
scaleNominor
strumNoBeat offset between chord tones; 0 produces block chords.
styleNorootless
rhythmNoChord rhythm: held, two stabs per slot, or quarter-note hits.held
voicesNo
humanizeNo
velocityNo
clip_indexYesZero-based Session-view clip-slot index on the track.
progressionNo
track_indexYesZero-based index of a regular track in the Live set.
center_pitchNoMIDI pitch around which chord voicings are centered.
beats_per_chordNoPositive number of beats allocated to each chord.

Output Schema

NameRequiredDescriptionDefault
dataYes
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

A4.3/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=false, and the description reinforces this with a prominent '(REPLACES existing notes)' warning, telling the agent what is destroyed. It also discloses mode-dependent behaviors (genre mode auto-builds a progression before voicing) that go beyond annotations.

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 leading mutation warning is well front-loaded, and the bulleted mode breakdown scans quickly. Slightly telegraphic with backtick-heavy phrasing, but every line carries information about mode-specific parameters.

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?

A 17-parameter tool with an output schema present, so return values need not be explained. The description covers the destructive nature and mode semantics well enough to call correctly, though it could state dependencies such as which parameters are ignored per mode.

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 coverage is 35%, so the description must compensate but only partially does. It groups parameters by mode (progression/style/voices/humanize for voiced; rhythm/strum for basic; genre/key/scale/bars for genre), which helps, but leaves many at defaults (seed, velocity, center_pitch, beats_per_chord, track_index, clip_index) undocumented in the description.

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?

Specific verb+resource: generates chord progressions into a Session MIDI clip, with explicit destructive note ('REPLACES existing notes'). It distinguishes three modes by their inputs, so an agent can tell it apart from siblings like generate_melody or generate_bass.

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 mode breakdown functions as implicit routing guidance: use 'voiced' for voice-led jazz voicings, 'basic' for compact rhythmic chords, 'genre' for auto-built progressions. No explicit when-not-to-use or mention of sibling tools like edit_notes for modifying existing notes, but the mode selection criteria are clear.

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