Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Count Plugin Presets

plugin_preset_count
Read-onlyIdempotent

Count built-in presets on a loaded channel or mixer plugin before stepping through them. Confirms preset availability, since some third-party VSTs report zero.

Instructions

Return the number of built-in presets exposed by a loaded channel or mixer plugin.

Use before cycling presets with plugin_next_preset or plugin_prev_preset (some third-party VSTs report 0 presets to FL's scripting API). Read-only; raises if the target slot is empty or out of range.

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": {
      "index": "<index>"
    },
    "name": "plugin_preset_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
slotNo0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`.
indexYes0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`.
locationNoWhere the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9).channel

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.6.1
    • addedInput schema / properties / index / description
      Added value: +"0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`."
    • addedInput schema / properties / location / description
      Added value: +"Where the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9)."
    • addedInput schema / properties / slot / description
      Added value: +"0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`."
  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 declare readOnly, idempotent, non-destructive, closed-world behavior, so safety needs no restatement. The description adds genuinely new behavior: it raises when the target slot is empty or out of range, and it warns that third-party VSTs may report 0 — an important caveat an agent cannot infer from annotations.

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?

Two sentences, front-loaded with what is returned, then the usage condition and the failure caveat. No filler or restated annotation text.

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?

Output schema exists, parameters are fully documented, and the description covers the main non-obvious behavior (raising on empty/out-of-range slots, zero-preset VSTs). What an agent needs to call it correctly is present; only the practical implication of a 0 result is left implicit.

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% and every property (slot, index, location) is documented with defaults and enum meanings in the schema itself. The description adds no additional meaning about parameter interaction or valid combinations, 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 ('Return the number of built-in presets exposed by a loaded channel or mixer plugin'), including the scoping constraint that the plugin must be loaded. An agent can distinguish this from plugin_next_preset/plugin_prev_preset without opening either schema.

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?

Explicitly instructs to call this before cycling presets with the two named sibling tools, and gives a concrete reason (some third-party VSTs report 0 presets). It does not state when the call is unnecessary or what to do when 0 is returned, keeping it short of full routing guidance.

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