Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Write Drum Steps to Sequencer

gen_emit_drum_pattern_step_seq
DestructiveIdempotent

Write a 16-step genre drum groove into FL Studio's Channel Rack step sequencer across multiple mapped drum channels, then use step parameter tools to add rolls or accents.

Instructions

Write a 16-step genre drum groove into FL Studio's Channel Rack step sequencer across multiple drum channels.

Preferred drum writer whenever the MIDI bridge is online and each drum voice has its own Channel Rack sampler (e.g. 808 Kick, Clap, HiHat, Snare); follow up with channel_set_step_param to add hi-hat rolls (repeat) or velocity accents. Use gen_emit_drum_pattern_notes instead for single-channel Piano Roll drum kits (FPC) or offline bridge fallback, and gen_emit_dnb_groove for 2-bar DnB breakbeats.

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": {
      "channel_map": "<channel_map>"
    },
    "name": "gen_emit_drum_pattern_step_seq"
  }
}

Input Schema

NameRequiredDescriptionDefault
styleNo16-step genre drum pattern from `gen_list_drum_patterns` (e.g. 'trap', 'boom_bap', 'house', 'four_on_floor', 'reggaeton', 'rock').boom_bap
patternNoOptional 1-based pattern index to write into; omit/None to write into the currently selected pattern.
repeatsNoNumber of 16-step (1-bar in 4/4) repetitions to write (>= 1, e.g. 4 for a 4-bar beat).
channel_mapYesMapping of drum voice names from {'kick','snare','clhat','ophat','clap','tom','ride'} to 0-based global Channel Rack indices (resolve indices via `channel_all`).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.6.1
    • addedInput schema / properties / channel_map / description
      Added value: +"Mapping of drum voice names from {'kick','snare','clhat','ophat','clap','tom','ride'} to 0-based global Channel Rack indices (resolve indices via `channel_all`)."
    • addedInput schema / properties / pattern / description
      Added value: +"Optional 1-based pattern index to write into; omit/None to write into the currently selected pattern."
    • addedInput schema / properties / repeats / description
      Added value: +"Number of 16-step (1-bar in 4/4) repetitions to write (>= 1, e.g. 4 for a 4-bar beat)."
    • addedInput schema / properties / style / description
      Added value: +"16-step genre drum pattern from `gen_list_drum_patterns` (e.g. 'trap', 'boom_bap', 'house', 'four_on_floor', 'reggaeton', 'rock')."
  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; the description's 'write ... into ... step sequencer' plus the pattern-index default (write into the currently selected pattern) implicitly confirms existing step data is overwritten, and the bridge-online precondition is real runtime context that annotations cannot express. It stops short of saying explicitly whether channels not in channel_map are left untouched or whether prior steps on mapped channels are cleared, which is the one behavioral gap for a destructive write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in one sentence, then routing guidance, with no filler. The parenthetical sampler examples (808 Kick, Clap, HiHat, Snare) are slightly longer than necessary but they clarify what 'each drum voice has its own sampler' means, so they mostly earn their place.

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?

An output schema exists, so return values need no explanation; what an agent needs before calling — runtime precondition, sibling choice, follow-up tool — is all present. The remaining detail (exact overwrite semantics on mapped channels) is minor and partly covered by the destructiveHint annotation.

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%, so the schema already explains style, pattern, repeats, and channel_map. The description only adds the framing that the mapping spans 'multiple drum channels' with each voice on its own sampler, and it says nothing extra about repeats (bar count) or the pattern-index default — baseline 3 is appropriate when the schema does the heavy lifting.

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 opening sentence names a specific verb (write), a specific resource (a 16-step genre drum groove), and a specific destination (Channel Rack step sequencer across multiple drum channels). The distinction from gen_emit_drum_pattern_notes (Piano Roll, single channel) is stated explicitly, so no schema-opening is needed to tell the tools apart.

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?

Explicit when-to-use conditions are given (MIDI bridge online, each drum voice on its own Channel Rack sampler), plus two named alternatives with the conditions that select them: gen_emit_drum_pattern_notes for single-channel/FPC or offline fallback, gen_emit_dnb_groove for 2-bar DnB breaks. It also names the natural follow-up tool channel_set_step_param for hi-hat rolls and accents.

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