Skip to main content
Glama

Drums to MIDI / step sequencer

fl_extract_drums

Detect kick, snare, clap, and hi-hat hits in a drum loop or stem, export a MIDI file, and optionally write the extracted step patterns to FL Studio channels.

Instructions

Detect the hits in a drum loop or stem and sort them into kick, snare, clap, closed and open hi-hat. Always writes a .mid to ~/.flstudio-mcp/exports and returns per-kind step patterns. With to_channels, also writes those steps into the CURRENT pattern of the given channels (one undo step: fl_rollback_last_change).

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": {
      "path": "<path>"
    },
    "name": "fl_extract_drums"
  }
}

Input Schema

NameRequiredDescriptionDefault
bpmNoTempo; auto-detected if omitted.
barsNoHow many bars to preview / write (16 steps each).
pathYesDrum loop or drum stem (WAV/FLAC; MP3 needs ffmpeg).
start_barNoFirst bar of the audio to use (0 = start).
to_channelsNoWrite into the step sequencer: kind -> channel, e.g. {'kick': 0, 'snare': 1, 'closed hat': 2}. Kinds: kick, snare, clap, closed hat, open hat.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations it discloses two side effects the agent could not otherwise know: a .mid file is ALWAYS written to ~/.flstudio-mcp/exports, and to_channels mutates the CURRENT pattern of the given channels within a single undo step. That is exactly the mutation-scope and reversibility context the readOnlyHint=false / destructiveHint=false pair leaves ambiguous.

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 ordered by importance: what is detected, the guaranteed file output, then the opt-in project mutation. No restatement of the title and no filler.

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 not be explained, yet the description still flags per-kind step patterns. File output location, mutation target, and undo path are all covered, which is everything an agent needs for a 5-parameter, non-idempotent write tool.

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 description coverage is 100%, so the baseline is 3, but the description adds real meaning: what to_channels actually does to existing project state and how the change is undone. The kind-mapping example itself lives in the schema, so the description earns credit only for the write semantics, not the mapping.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Detect the hits in a drum loop or stem and sort them into kick, snare, clap, closed and open hi-hat" names a concrete verb, resource, and output taxonomy. It is clearly distinguishable by resource from fl_extract_melody and fl_extract_chords, though it never names them explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives a clear conditional for the optional write path ("With to_channels, also writes those steps into the CURRENT pattern") and points to fl_rollback_last_change as the undo route. It does not state when to prefer this over fl_extract_melody or fl_export_midi, nor any exclusions.

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