Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Write Bassline

gen_emit_bassline
Destructive

Generate a bassline from a Roman-numeral progression's roots and write it into a channel's Piano Roll, with root, octave, walking, or eighth-note styles for instant bass parts.

Instructions

Generate a bassline following a progression's roots and write it into a channel's Piano Roll.

Pair with gen_emit_chord_progression using matching progression, scale, and bar_length; use piano_roll_add_notes for custom 808 glides (slide=True) or syncopated bass rhythms. Defaults to clear_first=True; verify with piano_roll_read.

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": "<channel>"
    },
    "name": "gen_emit_bassline"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoLow-register root pitch with octave (e.g. 'C2', 'A1', 'F2').C2
scaleNoScale name from `gen_list_scales` matching the harmonic progression (e.g. 'minor', 'major').minor
channelYes0-based global Channel Rack index whose Piano Roll will receive the generated notes.
patternNoOptional 1-based pattern index to select before writing; omit/None to write into the currently selected pattern.
bar_lengthNoDuration spent on each chord degree in project bars (default 1.0; match `chord_length_bars` used in `gen_emit_chord_progression`).
clear_firstNoIf True (default), clear existing notes in the target Piano Roll before writing; set False to append.
progressionNoRoman-numeral progression from `gen_list_progressions` whose roots the bass follows (e.g. 'i-VII-VI-V').i-VII-VI-V
pattern_styleNoBass rhythm style: 'root' (sustained roots), 'octaves' (half-bar root/octave pump), 'walking' (quarter-note passing run), or 'eighths' (driving 8th notes).octaves

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.6.1
    • addedInput schema / properties / bar_length / description
      Added value: +"Duration spent on each chord degree in project bars (default 1.0; match `chord_length_bars` used in `gen_emit_chord_progression`)."
    • addedInput schema / properties / channel / description
      Added value: +"0-based global Channel Rack index whose Piano Roll will receive the generated notes."
    • addedInput schema / properties / clear_first / description
      Added value: +"If True (default), clear existing notes in the target Piano Roll before writing; set False to append."
    • addedInput schema / properties / pattern / description
      Added value: +"Optional 1-based pattern index to select before writing; omit/None to write into the currently selected pattern."
    • addedInput schema / properties / pattern_style / description
      Added value: +"Bass rhythm style: 'root' (sustained roots), 'octaves' (half-bar root/octave pump), 'walking' (quarter-note passing run), or 'eighths' (driving 8th notes)."
    • addedInput schema / properties / progression / description
      Added value: +"Roman-numeral progression from `gen_list_progressions` whose roots the bass follows (e.g. 'i-VII-VI-V')."
    • addedInput schema / properties / root / description
      Added value: +"Low-register root pitch with octave (e.g. 'C2', 'A1', 'F2')."
    • addedInput schema / properties / scale / description
      Added value: +"Scale name from `gen_list_scales` matching the harmonic progression (e.g. 'minor', 'major')."
  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 flag destructiveHint=true and idempotentHint=false; the description contextualizes this by stating clear_first defaults to True (existing notes are cleared) and directing the agent to verify with piano_roll_read. It stops short of spelling out that repeated calls overwrite rather than append by default, but the destructive behavior is well surfaced.

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, each doing distinct work: purpose first, then sibling routing, then the destructive default and verification. No filler and the key constraint is front-loaded.

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?

With an output schema present and full schema coverage, the description does not need to explain returns. It covers purpose, dependencies, alternatives, and the destructive default, which is everything needed to invoke it correctly.

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 every parameter is already documented, which sets the baseline at 3. The description does add cross-parameter meaning (progression/scale/bar_length must match those used in gen_emit_chord_progression) and restates the clear_first default, but most parameter semantics remain in the schema.

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 pair (generate + write) and a concrete resource (a bassline into a channel's Piano Roll). The scope is unmistakable and distinguishes it from generic note-writing siblings like piano_roll_add_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?

Explicitly names the recommended pairing with gen_emit_chord_progression using matching progression, scale, and bar_length, and names piano_roll_add_notes as the alternative for custom 808 glides or syncopated rhythms. It also prescribes a verification step (piano_roll_read), leaving little to inference.

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