Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Quantize Piano Roll Notes

piano_roll_quantize
Destructive

Snap Piano Roll note start times to a bar-based musical grid with adjustable strength to correct timing while preserving groove.

Instructions

Snap Piano Roll note start times toward a bar-based musical grid with configurable strength.

Use when you need a specific grid subdivision or partial groove-preserving strength; use channel_quick_quantize for instant native FL quantize without opening the Piano Roll, or piano_roll_humanize to add subtle timing feel. 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_quantize"
  }
}

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.
strengthNoPull strength from 0.0 (no change) to 1.0 (hard snap onto grid; default 1.0).
grid_barsNoQuantization grid spacing in project bars (e.g. 0.0625 = 1/16 note in 4/4, 0.125 = 1/8 note, 0.25 = quarter note).

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 / grid_bars / description
      Added value: +"Quantization grid spacing in project bars (e.g. 0.0625 = 1/16 note in 4/4, 0.125 = 1/8 note, 0.25 = quarter note)."
    • 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 / strength / description
      Added value: +"Pull strength from 0.0 (no change) to 1.0 (hard snap onto grid; default 1.0)."
  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, so the description's main added value is the recovery path ('Undoable via project_undo') and the clarification that only note start times move, leaving lengths/velocities untouched. It does not mention that the edit opens a Piano Roll and changes UI focus, though that side effect is covered in the channel parameter's schema text.

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?

Opens with the core behavior, then a single routing sentence covering both alternatives and the undo escape hatch. No filler or repetition of schema fields; every clause carries routing or recovery information.

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?

For a destructive mutation tool with an output schema and fully described parameters, the description covers purpose, alternatives, recovery, and edit scope. The only residual gap is timing of the side effects (Piano Roll opening/focus change) being described only inside the schema rather than the main description.

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 coverage is 100%, with strength (0.0-1.0), grid_bars (bar fractions with 1/16, 1/8, 1/4 examples), channel and pattern all fully documented in the schema. The description only echoes 'configurable strength' and 'bar-based grid', adding the intent framing of 'groove-preserving' but no syntax or edge-case detail beyond the schema, 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 and resource: 'Snap Piano Roll note start times toward a bar-based musical grid with configurable strength.' It also scopes precisely what is affected (start times only) and immediately distinguishes itself from channel_quick_quantize and piano_roll_humanize by name.

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 selection rule ('when you need a specific grid subdivision or partial groove-preserving strength') and names two concrete alternatives with the conditions that favor them. It also names project_undo as the recovery path, so the agent knows both when to call it and what to do afterward.

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