Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Delete Matching Piano Roll Notes

piano_roll_delete_notes
DestructiveIdempotent

Deletes specific notes from a channel's Piano Roll by MIDI pitch and time position, enabling targeted cleanup while leaving other notes intact.

Instructions

Remove specific notes matching {midi, time_bars} from a channel's Piano Roll.

Read exact pitches and time_bars with piano_roll_read first to target the right notes; use piano_roll_clear to erase every note in the channel's Piano Roll at once. 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": {
      "notes": "<notes>"
    },
    "name": "piano_roll_delete_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesYesList of `{midi: int, time_bars: float}` descriptors identifying notes to delete (matches notes within 1/16 quarter note of `time_bars`).
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.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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 / notes / description
      Added value: +"List of `{midi: int, time_bars: float}` descriptors identifying notes to delete (matches notes within 1/16 quarter note of `time_bars`)."
    • 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, idempotentHint=true and readOnlyHint=false, so the safety profile is covered structurally. The description adds genuinely new behavior: the edit is undoable via `project_undo` and is scoped to a single channel's Piano Roll, which the annotations do not convey. It stops short of saying what happens when zero notes match (silent no-op vs. error).

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 tight sentences: the action and match key are front-loaded, followed by a single guidance sentence that covers prerequisite read, bulk alternative, and undo. No filler or repeated schema content.

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 an output schema present, return values need no explanation, and the description covers targeting, alternatives and reversibility. The remaining minor gap is edge-case behavior (no matching notes, overlapping matches within tolerance) for a destructive mutation.

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 channel, pattern and the match tolerance (1/16 quarter note of `time_bars`) are already fully documented in the schema. The description restates the `{midi, time_bars}` shape but adds no syntax or format detail beyond it, so the baseline 3 applies.

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 (remove notes from a channel's Piano Roll) plus the exact match key `{midi, time_bars}`, which tells an agent precisely what identifies a target. It is clearly distinguished from `piano_roll_clear` (mass erase) named in the same paragraph.

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?

Explicitly routes the agent: read exact pitches/time_bars with `piano_roll_read` first, and use `piano_roll_clear` to erase every note instead. Both the correct-preparation step and the alternative tool with its selecting condition are named.

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