Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Write Chord Progression

gen_emit_chord_progression
Destructive

Generate a preset Roman-numeral chord progression and write it into a channel's Piano Roll to build diatonic harmony, with options to replace or append notes.

Instructions

Generate a preset Roman-numeral chord progression and write it into a channel's Piano Roll.

Use for quick diatonic progressions; use piano_roll_add_notes (with gen_chord_notes) for custom voicings, inversions, or non-diatonic harmony, and pair with gen_emit_bassline using the same progression/root/scale. Defaults to clear_first=True (replaces existing notes on channel); verify via piano_roll_read.

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": {
      "channel": "<channel>"
    },
    "name": "gen_emit_chord_progression"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoKey root pitch with octave (e.g. 'C4', 'A3', 'F#4').C4
scaleNoScale name from `gen_list_scales` matching the progression (e.g. 'major' or 'minor').major
channelYes0-based global Channel Rack index whose Piano Roll will receive the generated notes.
patternNoOptional 1-based pattern index to select before writing; omit/None to write into the currently selected pattern.
clear_firstNoIf True (default), clear existing notes in the target Piano Roll before writing; set False to append.
progressionNoRoman-numeral progression template from `gen_list_progressions` (e.g. 'I-V-vi-IV', 'i-VII-VI-V', 'ii-V-I').I-V-vi-IV
octave_shiftNoOptional whole-octave transpose applied to all chords (e.g. -1 or +1; default 0).
chord_length_barsNoDuration of each chord in project bars (default 1.0 = one bar per chord).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.6.1
    • addedInput schema / properties / channel / description
      Added value: +"0-based global Channel Rack index whose Piano Roll will receive the generated notes."
    • addedInput schema / properties / chord_length_bars / description
      Added value: +"Duration of each chord in project bars (default 1.0 = one bar per chord)."
    • addedInput schema / properties / clear_first / description
      Added value: +"If True (default), clear existing notes in the target Piano Roll before writing; set False to append."
    • addedInput schema / properties / octave_shift / description
      Added value: +"Optional whole-octave transpose applied to all chords (e.g. -1 or +1; default 0)."
    • addedInput schema / properties / pattern / description
      Added value: +"Optional 1-based pattern index to select before writing; omit/None to write into the currently selected pattern."
    • addedInput schema / properties / progression / description
      Added value: +"Roman-numeral progression template from `gen_list_progressions` (e.g. 'I-V-vi-IV', 'i-VII-VI-V', 'ii-V-I')."
    • addedInput schema / properties / root / description
      Added value: +"Key root pitch with octave (e.g. 'C4', 'A3', 'F#4')."
    • addedInput schema / properties / scale / description
      Added value: +"Scale name from `gen_list_scales` matching the progression (e.g. 'major' or 'minor')."
  2. First observedv0.6.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations flag destructiveHint=true; the description adds the concrete meaning behind that flag by naming the default `clear_first=True` behavior and stating it replaces existing notes on `channel`, plus a verification path via `piano_roll_read`. This is context beyond the structured fields, not a restatement of them.

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?

Two compact sentences with the core action front-loaded, followed by routing and a safety note. No filler or repeated schema content.

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?

All 8 parameters are schema-documented, an output schema exists, and annotations cover the safety profile; the description fills the only real remaining gaps (destructive default, sibling routing, pairing, verification). An agent has everything needed to invoke it correctly.

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?

Schema coverage is 100%, so the baseline is 3; the description adds value by tying `progression`/`root`/`scale` to the bassline pairing and implying they must be drawn from `gen_list_progressions`/`gen_list_scales`. It does not add format or syntax detail beyond the schema for the remaining parameters.

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?

States a specific verb+resource+destination: 'Generate a preset Roman-numeral chord progression and write it into a channel's Piano Roll.' It also explicitly contrasts with `piano_roll_add_notes` for custom voicings, so an agent can tell the two apart without opening either schema.

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?

Gives an explicit when-to-use ('quick diatonic progressions'), a named alternative with the condition that selects it ('custom voicings, inversions, or non-diatonic harmony'), and a pairing instruction with `gen_emit_bassline` using matching `progression`/`root`/`scale`.

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