Skip to main content
Glama

Extract chords/polyphonic notes from audio (Basic Pitch)

fl_extract_chords

Transcribe polyphonic WAV/MP3 audio into per-bar chord progressions and a MIDI file, optionally returning note data for piano-roll review before FL Studio import.

Instructions

Transcribe POLYPHONIC audio (full chords) to notes with Basic Pitch. Returns a per-bar chord progression and writes every note to a .mid; include_notes also returns bridge_notes for fl_write_piano_roll_notes. Does NOT write to FL; review first.

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

Input Schema

NameRequiredDescriptionDefault
bpmNoOverride BPM for bar quantization; auto-detected if omitted.
pathYesPath to a WAV/MP3 with chords or several notes at once (keys, piano, guitar stem).
max_notesNoCap for include_notes. Default 500.
save_midiNoWrite ALL notes to a .mid file in ~/.flstudio-mcp/exports to drag into FL.
include_notesNoAlso return notes + bridge_notes (first max_notes) for fl_write_piano_roll_notes. Large; use for short clips.
frame_thresholdNoHigher = fewer, surer sustained notes. Default 0.3.
onset_thresholdNoHigher = fewer, surer note starts. Default 0.5.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and destructiveHint=false, so the bar is lower, yet the description still adds that the call writes a .mid on disk and explicitly that it does NOT touch the FL project. That side-effect scoping is the key behavioral fact an agent needs before calling; only file location/return-size caveats are left to the schema.

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?

Four short sentences, front-loaded with the transcription purpose, then output, then the 'does not write to FL' caveat. No filler, and the most safety-critical clause is placed last for emphasis rather than buried mid-paragraph.

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 7-parameter extraction tool with an output schema, the description covers purpose, side effects, downstream handoff and a review warning. It does not address runtime on long audio or failure cases for bad paths, but the output schema and 100% parameter coverage absorb most of that burden.

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 every parameter (bpm, max_notes, save_midi, include_notes, thresholds) is already documented in structured form. The description's only parameter hint is that include_notes also yields bridge_notes, which the schema states verbatim; no additional meaning is added, so the 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 ('Transcribe POLYPHONIC audio (full chords) to notes with Basic Pitch') and names the engine. The capitalized 'POLYPHONIC' plus 'full chords' implicitly separates it from the monophonic sibling fl_extract_melody, and it declares two concrete outputs: a per-bar chord progression and a .mid file.

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

Usage Guidelines4/5

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

Gives usable workflow context: 'Does NOT write to FL; review first' tells the agent this must be followed by a separate write step, and 'include_notes also returns bridge_notes for fl_write_piano_roll_notes' names the downstream tool. It lacks an explicit when-to-use-this-instead-of-melody-extraction statement, so it is clear but not fully routing.

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