Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Duplicate Piano Roll Notes

piano_roll_duplicate

Copies Piano Roll notes from a source bar range to a destination bar without clearing existing notes, so you can extend a phrase on one channel before adding a variation.

Instructions

Copy all Piano Roll notes starting within [source_time_bars, source_time_bars + length_bars) to dest_time_bars.

Use to extend a phrase on one channel (e.g. copying bars 0–2 to bars 2–4 before adding a variation); use pattern_duplicate_data to double every channel in the entire pattern at once. Appends at dest_time_bars without clearing existing notes.

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": {
      "source_time_bars": "<source_time_bars>",
      "length_bars": "<length_bars>",
      "dest_time_bars": "<dest_time_bars>"
    },
    "name": "piano_roll_duplicate"
  }
}

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.
length_barsYesLength of the source bar window in project bars (> 0, e.g. 2.0 copies 2 bars).
dest_time_barsYes0-based destination bar offset where the copied notes will be placed (e.g. 2.0).
source_time_barsYes0-based start of the source bar window to copy from (inclusive).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 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 / dest_time_bars / description
      Added value: +"0-based destination bar offset where the copied notes will be placed (e.g. 2.0)."
    • addedInput schema / properties / length_bars / description
      Added value: +"Length of the source bar window in project bars (> 0, e.g. 2.0 copies 2 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."
    • addedInput schema / properties / source_time_bars / description
      Added value: +"0-based start of the source bar window to copy from (inclusive)."
  2. First observedv0.6.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare readOnly=false, destructive=false, idempotent=false; the description adds real value on top by stating that it appends at dest_time_bars 'without clearing existing notes', which explains why repeated calls accumulate rather than overwrite. It does not mention the side effect implied by the schema that supplying channel/pattern opens and switches the Piano Roll, nor what happens when copied notes collide with existing ones.

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: operation and interval first, the when-to-use with a concrete example second, the append-without-clearing caveat last. No filler and nothing deferred to the end that should be up front.

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?

Output schema exists, so return values need no explanation, and annotations cover the safety profile. What remains thin is the UI/selection side effect of channel and pattern (opening a Piano Roll and switching the selected pattern) and overlap behavior when the destination already holds notes.

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, but the description goes further by expressing the source window as a half-open interval, which pins down that length_bars excludes the end boundary and how the two required numerics combine. It adds nothing about channel/pattern, though those are already well documented in the schema, so it does not need to.

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 ('Copy all Piano Roll notes') plus the exact source window semantics '[source_time_bars, source_time_bars + length_bars)' and the destination. It also distinguishes itself from the closest sibling, pattern_duplicate_data, so an agent can pick between them without opening a 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 case ('extend a phrase on one channel, e.g. copying bars 0-2 to bars 2-4 before adding a variation') and names the alternative with the condition that selects it ('pattern_duplicate_data to double every channel in the entire pattern at once').

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