Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Analyze Audio File

audio_analyze
Read-onlyIdempotent

Detect BPM, musical key, beat/onset timings, loudness, and optional MIDI melody notes from an audio file offline to prepare samples for tempo/key matching, slicing, or DNB flips.

Instructions

Analyze an audio file offline to detect BPM, musical key, beat/onset timings, loudness, and optional MIDI melody notes.

Use before song_to_dnb_flip, audio_slice, or matching FL's project tempo and key to a sample; use audio_loudness_report for broadcast-grade BS.1770 mastering metrics, or voice_transcribe_file for standalone note transcription with pitch-range controls. Requires the [audio] extra (ok=False if missing or file not found).

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": "audio_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to an audio file (WAV, FLAC, MP3, OGG, AIFF) to analyze.
polyphonicNoWhen `extract_melody=True`, set True to use Spotify Basic Pitch for chords/full mixes (requires `[polyphonic]` extra) instead of monophonic pyin.
extract_melodyNoIf True, also transcribe pitch notes into `melody_notes`; False (default) skips pitch extraction for faster analysis.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.6.1
    • addedInput schema / properties / extract_melody / description
      Added value: +"If True, also transcribe pitch notes into `melody_notes`; False (default) skips pitch extraction for faster analysis."
    • addedInput schema / properties / path / description
      Added value: +"Path to an audio file (WAV, FLAC, MP3, OGG, AIFF) to analyze."
    • addedInput schema / properties / polyphonic / description
      Added value: +"When `extract_melody=True`, set True to use Spotify Basic Pitch for chords/full mixes (requires `[polyphonic]` extra) instead of monophonic pyin."
  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 declare readOnlyHint, idempotentHint, and non-destructive behavior, so safety is covered. The description adds genuinely new behavioral facts beyond the structured fields: analysis runs offline, it requires the `[audio]` extra, and it returns ok=False when that dependency is missing or the file is not found — a failure mode the agent needs to handle. It stops short of describing cost/latency for long files, which keeps it from a 5.

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, front-loaded with the core purpose before alternatives and prerequisites. Every clause earns its place — capability list, sibling routing, dependency/failure note — with no restatement of the name or 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-value explanation is unnecessary, and annotations cover the safety profile. The description fills the remaining gaps an agent would care about: which sibling to pick, that the operation is offline, and what dependency failures look like. Nothing needed to invoke it correctly is missing.

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 the schema already explains path, extract_melody, and polyphonic, including the `[polyphonic]` extra requirement. The description mentions optional MIDI melody output but adds no parameter-level detail (formats, defaults, interaction between the two flags) beyond what the schema supplies. Baseline 3 is appropriate when the schema carries the load.

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 ('Analyze an audio file offline') and enumerates the exact outputs it produces: BPM, musical key, beat/onset timings, loudness, and optional MIDI melody notes. That level of specificity separates it cleanly from siblings like audio_loudness_report or voice_transcribe_file without requiring the agent to open a schema.

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 explicit when-to-use guidance ('before song_to_dnb_flip, audio_slice, or matching FL's project tempo and key to a sample') and names two alternatives with the conditions that select them: audio_loudness_report for broadcast-grade BS.1770 metrics, voice_transcribe_file for standalone transcription with pitch-range controls. Exclusions and routing are both present.

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