Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Add Piano Roll Notes

piano_roll_add_notes
Destructive

Writes explicit custom MIDI note arrays into a channel's FL Studio Piano Roll, enabling bespoke melodies, chord voicings, or exact note sequences.

Instructions

Write an explicit list of custom MIDI notes directly into a channel's FL Studio Piano Roll.

Use for bespoke melodies, custom chord voicings, or exact note arrays; prefer piano_roll_add_chord for a single chord, gen_emit_* for musical generators, voice_to_piano_roll / voice_notes_to_piano_roll for hummed melodies, or audio_melody_to_piano_roll for audio-file transcription. Pass channel (and pattern) so FL opens the target Piano Roll automatically; verify afterward with piano_roll_read and undo with 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": {
      "notes": "<notes>"
    },
    "name": "piano_roll_add_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesYesList of note objects: required `midi` (0..127), `time_bars` (0-based project bars, default 0), `duration_bars` (default 1.0), plus optional `velocity` (0..1), `pan`, `release`, `fcut`, `fres`, `pitchofs` (-120..120), `color` (0..15), `slide`, `porta`, `muted`.
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.
clear_firstNoIf True, erase all existing notes in the target Piano Roll before writing; False (default) appends.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.6.1
    • 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 / clear_first / description
      Added value: +"If True, erase all existing notes in the target Piano Roll before writing; False (default) appends."
    • addedInput schema / properties / notes / description
      Added value: +"List of note objects: required `midi` (0..127), `time_bars` (0-based project bars, default 0), `duration_bars` (default 1.0), plus optional `velocity` (0..1), `pan`, `release`, `fcut`, `fres`, `pitchofs` (-120..120), `color` (0..15), `slide`, `porta`, `muted`."
    • 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."
  2. First observedv0.6.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, and the description adds real behavior beyond them: passing `channel`/`pattern` auto-opens the target Piano Roll in the UI, and edits can be checked with `piano_roll_read` and reverted with `project_undo`. The notable gap is that it never warns that repeated calls append (duplicate notes) or that `clear_first=true` destroys existing notes — the most important consequence for a non-idempotent destructive tool.

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?

Two paragraphs, front-loaded with the action and followed by alternatives, with zero filler sentences. The only redundancy is the restatement of the channel/pattern open-the-Piano-Roll behavior that the schema already documents.

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 an output schema present, annotations covering the safety profile, and 100% schema coverage, the description supplies everything else an agent needs: when to pick this tool, when to pick an alternative, how to target the right channel/pattern, and how to verify or undo. Nothing material is missing for correct invocation.

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% and the note-object fields are fully documented in the schema, so the baseline applies. The only description-level parameter guidance — 'Pass `channel` (and `pattern`) so FL opens the target Piano Roll automatically' — largely restates what the schema's own `channel` description already says, adding rationale but no new syntax or constraints.

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 and resource: 'Write an explicit list of custom MIDI notes directly into a channel's FL Studio Piano Roll.' It immediately narrows the scope to explicit note arrays, which cleanly separates it from chord, generator, and transcription 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?

Gives explicit routing rules: prefer `piano_roll_add_chord` for a single chord, `gen_emit_*` for generators, `voice_to_piano_roll` / `voice_notes_to_piano_roll` for hummed melodies, and `audio_melody_to_piano_roll` for audio transcription. It also names the verification path (`piano_roll_read`) and the recovery path (`project_undo`), leaving little to inference.

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