Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Transpose Piano Roll Notes

piano_roll_transpose
Destructive

Transpose every note in a channel's Piano Roll up or down by a signed semitone value to change key or octave. Notes clamp to MIDI 0–127 and the edit can be undone.

Instructions

Transpose every note in a channel's Piano Roll up or down by an integer number of semitones.

Use to shift an entire melodic or chord part to a new key or octave; use piano_roll_edit_notes with filters + transpose to shift only selected notes, or channel_set_pitch to adjust the live pitch knob without moving MIDI notes. Notes clamp to MIDI 0..127; 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": {
      "semitones": "<semitones>"
    },
    "name": "piano_roll_transpose"
  }
}

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.
semitonesYesSigned pitch shift in semitones applied to every note (e.g. +12 = up one octave, -2 = down a whole step).

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 / 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 / semitones / description
      Added value: +"Signed pitch shift in semitones applied to every note (e.g. +12 = up one octave, -2 = down a whole step)."
  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?

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered; the description still adds non-obvious behavior: notes clamp to MIDI 0..127 (so edge notes are lossy/compressed) and the change is recoverable via project_undo. It does not say whether a Piano Roll must already be open when channel/pattern are omitted, but the schema covers that.

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?

One declarative sentence for the core action, then a semicolon-separated routing sentence for alternatives and constraints. Front-loaded, no filler, every clause carries 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?

For a destructive mutation with an output schema present, the description covers action, scope, clamping limit, undo recovery, and sibling routing — everything an agent needs to call it correctly and safely without explaining return values.

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 both channel/pattern targeting and the semitones example (+12 up an octave, -2 down a whole step) are already documented in the schema. The description's semitone phrasing is illustrative rather than additive, so 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 (transpose), a precisely bounded resource (every note in a channel's Piano Roll), and the unit of change (integer semitones). An agent can distinguish this from piano_roll_edit_notes or channel_set_pitch without opening 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?

Explicitly names the when-to-use case (shift an entire melodic or chord part to a new key or octave) and two named alternatives with their selecting conditions: piano_roll_edit_notes with filters + transpose for selected notes, and channel_set_pitch for the live pitch knob without moving MIDI. Both the inclusion and exclusion paths are spelled out.

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