Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Clear Piano Roll

piano_roll_clear
DestructiveIdempotent

Deletes every note from a chosen channel’s Piano Roll in a selected or active pattern; specify channel and pattern to avoid clearing the wrong instrument.

Instructions

Delete every note from a single channel's Piano Roll in the active or specified pattern.

Always pass channel (and pattern) to avoid wiping the wrong instrument. Use piano_roll_delete_notes to remove individual notes, channel_clear_step_sequence for step-sequencer grids, or pattern_clear to wipe every channel in a pattern. Undoable via project_undo.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "piano_roll_clear"
  }
}

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.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 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 / 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=true, so the safety profile is covered by structured data. The description still adds genuine value beyond that: recovery via `project_undo` and the warning that omitting `channel`/`pattern` targets whatever is currently open, risking the wrong instrument. It stops short of stating what happens if no Piano Roll is open (no-op vs. error), which is the one behavior left implicit.

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?

Four short sentences: scope first, then the safety instruction, then the alternatives list, then the undo note. Every sentence earns its place and nothing is repeated from the schema or annotations verbatim.

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?

An output schema exists, so return values need no explanation, and the destructive scope, targeting risk, recovery path, and sibling routing are all covered. The only gap is the edge case of invoking with no Piano Roll open and no `channel` supplied, which an agent about to perform a destructive edit would benefit from knowing.

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%, with both parameters fully documented including null defaults and 0-based/1-based indexing, so the schema carries the semantics. The description contributes only the consequence framing ('to avoid wiping the wrong instrument') rather than new syntax or format detail, which is the baseline-3 case.

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 description opens with a precise verb+resource+scope: 'Delete every note from a single channel's Piano Roll in the active or specified pattern.' This distinguishes the tool from note-level deletion and from whole-pattern clearing without the agent needing to open any 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?

It names three concrete alternatives and the condition that selects each: `piano_roll_delete_notes` for individual notes, `channel_clear_step_sequence` for step-sequencer grids, `pattern_clear` to wipe every channel. It also gives an explicit operational instruction ('Always pass `channel` (and `pattern`)') tied to a stated risk.

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