Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Read Piano Roll Notes

piano_roll_read
Read-onlyIdempotent

Reads all notes in a channel's Piano Roll with pitch, bar/quarter timing, duration, and velocity; call before appending or editing notes and after writes to verify results.

Instructions

Read all notes currently in a channel's Piano Roll with pitches, bar/quarter timing, duration, and velocity.

Call before appending or editing notes (to avoid collisions) and after any write to verify results; use channel_get_step_sequence instead for Channel Rack step sequencer grids. Runs ComposeWithLLM.pyscript in read-only export mode (5 s wait); if ok=False, inspect the returned note (on macOS without Accessibility permission, trigger Tools > Scripts > ComposeWithLLM once in FL).

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_read"
  }
}

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.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, but the description adds meaningful operational context beyond them: the underlying script invocation, a ~5 s wait, and a concrete failure path (`ok=False` → inspect returned `note`). It also documents the macOS Accessibility permission prerequisite and the one-time FL menu workaround, which is exactly the kind of context an agent cannot infer from structured fields.

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?

Front-loads purpose, then usage/alternatives, then execution and error behavior — a sensible order with no filler sentences. Parentheticals ("5 s wait", "read-only export mode") carry real information rather than padding.

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?

Covers purpose, timing relative to sibling write tools, execution characteristics, and the failure/permission path, and an output schema exists so return-value documentation is unnecessary. The only slight shortfall is that pagination or size limits for very large piano rolls are not mentioned, though none are implied by the schema.

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` (0-based global index) and `pattern` (1-based index) are already fully documented in the input schema. The description reinforces that it operates on a channel's Piano Roll but adds no syntax, range, or defaulting detail beyond what the schema provides, so the baseline of 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?

Opens with a specific verb+resource ("Read all notes currently in a channel's Piano Roll") and enumerates the returned fields (pitches, bar/quarter timing, duration, velocity). It also explicitly distinguishes itself from the sibling `channel_get_step_sequence`, which handles step sequencer grids rather than piano roll notes.

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 concrete when-to-use guidance: before appending/editing (to avoid collisions) and after any write to verify. It names the exact alternative to pick for a different context (`channel_get_step_sequence`) so the agent can route correctly without opening other schemas.

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