Skip to main content
Glama

fl_call

Destructive

Call a single FL Studio scripting API function in the running app to read or change one open-project value, such as a parameter name or mixer level, and return the result.

Instructions

Call one function of FL's scripting API inside the running FL and return what it returns: {ok, value} or {ok: false, error}. For a single read or change, e.g. a parameter name or a mixer level of the open project. Use fl_exec for several calls or logic; use project_read and project_write for anything the .flp file holds, which need no FL. A setter changes the open project as an edit by hand would; nothing is saved. Needs FL open; it is not started for this.

Input Schema

NameRequiredDescriptionDefault
fnYesmodule.function as FL's API names it, e.g. 'plugins.getParamName'
argsNoits positional arguments, e.g. [0, 5, -1]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.1
    • addedInput schema / properties / args / description
      Added value: +"its positional arguments, e.g. [0, 5, -1]"
    • addedInput schema / properties / fn / description
      Added value: +"module.function as FL's API names it, e.g. 'plugins.getParamName'"
  2. First observedv0.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing the return shape ({ok, value} vs {ok: false, error}), that a setter mutates the open project 'as an edit by hand would', that nothing is saved, and that FL must already be running. The destructiveHint=true annotation is consistent with the setter caveat. It stops short of stating whether partial failures or invalid fn names are recoverable, but the added context is substantial.

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?

Front-loads the core action and return contract, then layers usage routing and preconditions. Every sentence carries distinct information with no restatement of the name or schema.

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 no output schema, the description supplies the return contract itself, plus precondition (FL open), mutation semantics (edit-like, unsaved), and routing to alternatives. Nothing an agent needs before invoking a generic API-dispatch tool 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 coverage is 100%, so 'fn' (module.function) and 'args' (positional array) are already documented with examples in the schema. The description adds only an illustrative use case ('a parameter name or a mixer level') rather than deeper semantics, so 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 ('call one function of FL's scripting API') plus the exact return envelope, and positions it against siblings: fl_exec for multiple calls/logic, project_read and project_write for .flp contents. An agent can distinguish this from any other tool in the list without opening 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 selection criteria: use this for 'a single read or change', fl_exec for several calls or logic, project_read/project_write for anything the .flp holds. It also names a precondition — FL must be open and is not started for this — so the agent knows when the call will fail.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.