Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Slice Audio File

audio_slice
Destructive

Chop an audio file at detected transient onsets and export up to max_slices individual WAV samples to a directory for FL Studio sample chopping, without modifying the open project.

Instructions

Chop an audio file at detected transient onsets and write up to max_slices individual WAV samples to disk.

Use to prepare sample chops from breaks or loops for dragging into FL Studio (FPC/Slicex/Channel Rack). Writes files to output_dir without modifying the open FL Studio project; 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_slice"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the source audio file (e.g. drum break or vocal loop) to slice at detected transients.
max_slicesNoMaximum number of onset-chopped WAV files to write to disk (default 32).
output_dirNoOptional destination directory for the exported slice WAVs (use a fresh directory to avoid overwriting earlier slices); omit to use a sibling directory.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.6.1
    • addedInput schema / properties / max_slices / description
      Added value: +"Maximum number of onset-chopped WAV files to write to disk (default 32)."
    • addedInput schema / properties / output_dir / description
      Added value: +"Optional destination directory for the exported slice WAVs (use a fresh directory to avoid overwriting earlier slices); omit to use a sibling directory."
    • addedInput schema / properties / path / description
      Added value: +"Path to the source audio file (e.g. drum break or vocal loop) to slice at detected transients."
  2. First observedv0.6.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description usefully scopes that: files are written to `output_dir` but the open FL Studio project is not modified. It also discloses the `[audio]` extra dependency and the failure mode (`ok=False` if missing or file not found), which annotations cannot express. Return-shape detail is omitted, but an output schema exists to cover it.

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?

The core action and output count are front-loaded in the first sentence, with rationale and constraints following. Three sentences, each carrying information; no filler or redundancy.

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?

For a write-to-disk tool with three parameters and an output schema, the description covers the action, the destination behavior, the non-impact on the open project, and the dependency failure case. Nothing an agent needs in order to call it safely appears to be 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 coverage is 100%, so all three parameters are already documented, and the description largely restates `max_slices` and `output_dir` without adding syntax or format guidance. It adds only the implicit link between slicing and the written files, 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 chain (chop at detected transient onsets) and a concrete output (up to `max_slices` individual WAV files written to disk). This is clearly distinguishable from sibling analysis tools like audio_analyze or audio_compare_reference, which do not produce files.

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 a clear use case (preparing sample chops from breaks or loops for FL Studio FPC/Slicex/Channel Rack), which tells an agent when this tool fits. It does not name an explicit alternative or state when not to use it, so it falls short of a 5.

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