Skip to main content
Glama

set_plugin_state

Idempotent

Switch a VST/AU plugin device's preset by index or name and open or close its editor window for track, return, or master devices in Ableton Live.

Instructions

Switch a VST/AU PluginDevice's preset (preset_index or preset_name) and/or GUI window (editor_open).

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_index": "<track_index>",
      "device_index": "<device_index>"
    },
    "name": "set_plugin_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
track_typeNoTarget container: 'track' (default), 'return', or 'master'.track
editor_openNo
preset_nameNo
track_indexYesZero-based index of a regular track in the Live set.
device_indexYesZero-based device position in the target track's device chain.
preset_indexNo

Output Schema

NameRequiredDescriptionDefault
dataYes
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true and destructiveHint=false; "Switch" is consistent with a non-destructive mutation, so no contradiction. The description adds that the tool can affect both preset and GUI window in one call, but says nothing about precedence when both preset arguments are given, whether the device must support presets, or whether the editor requires a GUI session.

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?

A single front-loaded sentence with zero filler, and the effectful parameters are parenthesized for fast scanning. It is arguably over-compressed, since the "and/or" combination logic is the main thing an agent needs clarified.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six parameters, an output schema present, and mild annotations, the definition covers the safe minimum. It leaves open the ambiguity of conflicting preset arguments and the precondition that the device be a plugin with presets, which are the two things most likely to cause a mis-call.

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 50% (track_type, track_index, device_index documented), so the description must carry the rest, and it does at least name preset_index, preset_name, and editor_open as the levers. However it adds no semantics beyond the names — no precedence, no null-means-leave-unchanged explanation, no format/hint for preset_name matching.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a concrete verb ("Switch") and precise resources — a VST/AU PluginDevice's preset and/or GUI window — plus the exact parameters that carry each effect. It distinguishes itself from set_device_parameter by scoping to presets/editor rather than arbitrary parameters, though it never names a sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: the target must be a VST/AU PluginDevice, and the agent can infer preset vs. editor intent from the parameter mentions. There is no when-to-use/when-not guidance, no mention of using set_device_parameter for knob-level edits, and no rule for choosing preset_index vs. preset_name when both are supplied.

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