Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Add Piano Roll Chord

piano_roll_add_chord

Append a single custom MIDI chord to a channel's Piano Roll at a specified bar position without clearing existing notes; undoable via project undo.

Instructions

Append one simultaneous chord of MIDI pitches to a channel's Piano Roll at time_bars.

Use to insert a single custom voicing; use gen_emit_chord_progression for a full multi-bar progression or piano_roll_add_notes to write multiple chords in one call. Appends without clearing existing notes; undoable via project_undo.

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": {
      "midi_notes": "<midi_notes>"
    },
    "name": "piano_roll_add_chord"
  }
}

Input Schema

NameRequiredDescriptionDefault
channelNoOptional 0-based global Channel Rack index; when provided, opens that channel's Piano Roll before running the edit. Omit to target whichever Piano Roll is already open.
patternNoOptional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern.
velocityNoShared normalized note velocity from 0.0 to 1.0 (default 0.8).
time_barsNo0-based chord start position in project bars (e.g. 0.0 = bar 1 beat 1, 1.0 = bar 2 beat 1).
attributesNoOptional extra FL Studio native note properties (`pan`, `color`, `slide`, `porta`, `fcut`, `fres`, `pitchofs`, `release`, `muted`) applied to all notes in the chord.
midi_notesYesList of simultaneous MIDI note pitches 0..127 forming the chord (e.g. [60, 64, 67] for C major; preview voicings with `gen_chord_notes`).
duration_barsNoShared chord duration in project bars (default 1.0 = one full bar).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changedv0.6.1
    • addedInput schema / $defs / NoteFields / properties / color / description
      Added value: +"FL Studio Piano Roll note color / MIDI channel group 0..15."
    • addedInput schema / $defs / NoteFields / properties / fcut / description
      Added value: +"Per-note filter cutoff modifier (0.0..1.0, 0.5 = neutral)."
    • addedInput schema / $defs / NoteFields / properties / fres / description
      Added value: +"Per-note filter resonance modifier (0.0..1.0, 0.5 = neutral)."
    • addedInput schema / $defs / NoteFields / properties / muted / description
      Added value: +"Mute flag for the note (True = muted in Piano Roll)."
    • addedInput schema / $defs / NoteFields / properties / pan / description
      Added value: +"Per-note pan from 0.0 (left) through 0.5 (center) to 1.0 (right)."
    • addedInput schema / $defs / NoteFields / properties / pitchofs / description
      Added value: +"Fine pitch offset in tenths of a semitone (-120..+120)."
    • addedInput schema / $defs / NoteFields / properties / porta / description
      Added value: +"Enable FL Studio native portamento note flag."
    • addedInput schema / $defs / NoteFields / properties / release / description
      Added value: +"Per-note release velocity (0.0..1.0)."
    • addedInput schema / $defs / NoteFields / properties / slide / description
      Added value: +"Enable FL Studio native pitch-slide note flag."
    • addedInput schema / $defs / NoteFields / properties / velocity / description
      Added value: +"Normalized note velocity from 0.0 to 1.0 (default ~0.8)."
    • addedInput schema / properties / attributes / description
      Added value: +"Optional extra FL Studio native note properties (`pan`, `color`, `slide`, `porta`, `fcut`, `fres`, `pitchofs`, `release`, `muted`) applied to all notes in the chord."
    • addedInput schema / properties / channel / description
      Added value: +"Optional 0-based global Channel Rack index; when provided, opens that channel's Piano Roll before running the edit. Omit to target whichever Piano Roll is already open."
    • addedInput schema / properties / duration_bars / description
      Added value: +"Shared chord duration in project bars (default 1.0 = one full bar)."
    • addedInput schema / properties / midi_notes / description
      Added value: +"List of simultaneous MIDI note pitches 0..127 forming the chord (e.g. [60, 64, 67] for C major; preview voicings with `gen_chord_notes`)."
    • addedInput schema / properties / pattern / description
      Added value: +"Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern."
    • addedInput schema / properties / time_bars / description
      Added value: +"0-based chord start position in project bars (e.g. 0.0 = bar 1 beat 1, 1.0 = bar 2 beat 1)."
    • addedInput schema / properties / velocity / description
      Added value: +"Shared normalized note velocity from 0.0 to 1.0 (default 0.8)."
  2. First observedv0.6.0

TDQS

A4.5/5.0
Behavior4/5

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

Adds real information beyond the annotations: appends without clearing existing notes, and is undoable via `project_undo`. That complements idempotentHint=false and destructiveHint=false by explaining the additive mutation model. It stops short of describing how the Piano Roll state is opened or whether the edit is atomic on failure, so it is not fully comprehensive.

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?

Three tight sentences, front-loaded with the action, then alternatives, then mutation semantics. No filler, no restatement of the title, and the ordering matches how an agent needs the information.

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?

With four annotations covering the safety profile, an output schema present, and 100% parameter documentation in the schema, the description supplies exactly the missing layer: disambiguation from siblings and append/undo semantics. Nothing an agent needs to call this correctly is absent.

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 100%, so all seven parameters (including `time_bars`, `midi_notes`, `velocity`, `attributes`) are already fully documented in structured fields. The description adds only the `time_bars` anchor phrase and the notion of simultaneous MIDI pitches, which the schema already conveys. Baseline 3 applies when the schema carries the load.

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 first sentence names a precise verb and resource: "Append one simultaneous chord of MIDI pitches to a channel's Piano Roll at `time_bars`." It pins down scope (one chord, simultaneous, positioned in bars), which cleanly separates it from multi-chord and progression 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?

Explicit routing guidance: use this for "a single custom voicing," and two named alternatives (`gen_emit_chord_progression` for multi-bar progressions, `piano_roll_add_notes` for multiple chords per call). The selection condition is stated, not inferred.

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