Skip to main content
Glama

Calibrate a plugin parameter

fl_plugin_calibrate_param
Idempotent

Calibrates a plugin parameter by sweeping 0–1 and reading FL Studio's display strings, returning real units and a norm-to-value curve for setting values in real units. Original value restored.

Instructions

Learn a parameter's real-unit mapping by sweeping it 0..1 and reading FL's display string at each step (then restoring it). Returns the unit (dB/Hz/ms/%/ratio/...) and a norm<->value curve, cached on disk per plugin. Enables fl_plugin_set_param_value. The param is left unchanged.

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": {
      "track": "<track>",
      "slot": "<slot>",
      "param": "<param>"
    },
    "name": "fl_plugin_calibrate_param"
  }
}

Input Schema

NameRequiredDescriptionDefault
slotYesMixer-track effect slot 0-9, OR -1 for the channel-rack generator (then `track` is the CHANNEL index).
paramYesParam index or name.
stepsNoSweep resolution (more = finer curve).
trackYes

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, destructiveHint=false and idempotentHint=true, and the description adds real value on top: it explains that the parameter is swept and then restored, that the parameter is left unchanged, and that results are cached on disk per plugin. That resolves the apparent tension between a write-flagged operation and a non-destructive hint. It does not mention cost or latency of the sweep, which is the only notable omission.

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 mechanism and its side effect are front-loaded in the first sentence, with return value and caching following. The parenthetical '(then restoring it)' and trailing 'The param is left unchanged' are slightly redundant with each other but both earn their place by reinforcing the safety profile.

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 four-parameter tool with an output schema, the description covers what it does, how it does it, what it returns, where results are cached, and what happens to the parameter afterward. An agent has everything needed to call it correctly without guessing.

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 75%, so the schema already documents slot, param and steps. The description contributes only the implicit notion that the swept range is normalized 0..1, which is useful context but does not clarify how the 'steps' resolution parameter interacts with the resulting curve. Baseline 3 is appropriate.

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 ('Learn a parameter's real-unit mapping') and goes further to name the mechanism (sweep 0..1, read FL's display string) and the output (unit plus norm<->value curve). It also names the sibling it feeds into, fl_plugin_set_param_value, so an agent can place it in the workflow 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 Guidelines4/5

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

The clause 'Enables fl_plugin_set_param_value' gives a clear prerequisite-style context for when this tool is needed, which is stronger than most definitions. It stops short of explicit when-not guidance or naming an alternative for already-calibrated parameters, so it sits just below the top mark.

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