Skip to main content
Glama

set_parameter_display

Idempotent

Set a device parameter by the displayed reading you want, such as ms, dB, or Hz, instead of a raw value; get the written value and residual error back.

Instructions

Set a device parameter by the reading it should show, not by its raw value.

Returns:
    Dictionary reporting the value written, the display it produced, the residual
    error against the target, the unit, and how many probes and round trips it
    took. On refusal, why - including the case where the device reports no units.

Note:
    The inverse of ``set_parameter``, and there is no formula to invert: the curve from
    the raw range onto the displayed unit differs per parameter and is rarely linear. On
    one measured third-party compressor Attack is ``v^4 * 1000 ms``, so writing 10 at a
    parameter that displays milliseconds lands at 316 ms and reports success.

    One batch of probes asks what each raw value would read as, a second refines inside
    the bracket around the target, and only then is a single value written and read
    back. The probes write nothing: probing with real writes has left Delay Feedback
    and Saturator Drive at 100 % (catalog row return_device.str_for_value). They stay
    strictly inside the range, because asking at ``min`` or ``max`` has crashed Live in
    a plug-in's own formatting code (docs/limits.md, 'Asking for a display string at an
    endpoint (Live)').

    Where the device reports no unit this refuses instead of aiming: every VST2 reports
    a bare number (0 of 36 measured). Use ``set_parameter`` with a normalised value for
    those. The result is the stored value and its display, which is not audibility.

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": {
      "target": "<target>"
    },
    "name": "set_parameter_display"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoWhich collection the track index counts in: 'track' for song.tracks, 'return' for song.return_tracks, 'master' for the master track, where the track index is ignored.track
pathNoLOM path instead of track and device, for what they cannot reach. Either a device, such as song.tracks[0].devices[0].drum_pads[36].chains[0].devices[0] inside a Drum Rack pad, with parameter naming the knob; or a DeviceParameter itself, such as song.tracks[0].devices[0].chains[1].mixer_device.volume for a rack chain's fader.
unitNoWhich unit the target is in: 'dB', 'Hz', 'ms', '%', 'ratio', 'st', 'cents' or 'x'. Give kHz as Hz and seconds as ms. Optional: when omitted the unit the device reports is used, and a device reporting a different unit than you expected is a refusal, not a guess.
trackNoTrack index in the collection ``kind`` names, counted from 0. Give track and device, or give path instead.
deviceNoDevice index in that track chain, counted from 0. get_devices lists the chain with its indices.
targetYesThe reading you want, as a bare number in the base unit: -26 for -26 dB, 8000 for 8 kHz, 150 for 150 ms, 4 for a 4:1 ratio. Not the normalised value - that is set_parameter.
parameterNoWhich parameter, either its index as a string ('1') or its name, which may be a glob ('Attack*'). A name that matches more than one parameter is refused rather than guessed at. Not needed when path names the parameter itself.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • addedInput schema / properties / device / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / device / default
      Added value: +null
    • removedInput schema / properties / device / type
      Removed value: -"integer"
    • addedInput schema / properties / parameter / default
      Added value: +""
    • changedInput schema / properties / parameter / description
      Previous value: -"Which parameter, either its index as a string ('1') or its name, which may be a glob ('Attack*'). A name that matches more than one parameter is refused rather than guessed at."New value: +"Which parameter, either its index as a string ('1') or its name, which may be a glob ('Attack*'). A name that matches more than one parameter is refused rather than guessed at. Not needed when path names the parameter itself."
    • addedInput schema / properties / path
      Added value: +{
      +  "default": "",
      +  "description": "LOM path instead of track and device, for what they cannot reach. Either a device, such as song.tracks[0].devices[0].drum_pads[36].chains[0].devices[0] inside a Drum Rack pad, with parameter naming the knob; or a DeviceParameter itself, such as song.tracks[0].devices[0].chains[1].mixer_device.volume for a rack chain's fader.",
      +  "title": "Path",
      +  "type": "string"
      +}
    • addedInput schema / properties / track / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / track / default
      Added value: +null
    • changedInput schema / properties / track / description
      Previous value: -"Track index in song.tracks, counted from 0."New value: +"Track index in the collection ``kind`` names, counted from 0. Give track and device, or give path instead."
    • removedInput schema / properties / track / type
      Removed value: -"integer"
    • changedInput schema / required
      Previous value: -[
      -  "track",
      -  "device",
      -  "parameter",
      -  "target"
      -]New value: +[
      +  "target"
      +]
  2. Addedv0.1.4

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare write/idempotent/non-destructive, so the description carries real weight and delivers: probes write nothing, probe values stay strictly inside min/max because endpoint queries have crashed Live, and unit mismatch or missing unit is a refusal rather than a guess. What holds it below 5 is the citation-heavy style ('catalog row return_device.str_for_value', 'docs/limits.md') that an agent cannot act on and that pads rather than informs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with a strong first sentence and organised under Returns/Note headings, but it is long for a 7-parameter setter and carries prose that does not earn its place, such as the specific compressor curve anecdote and file/catalog citations. The Returns block is largely redundant given an output schema exists.

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?

For a high-risk mutation tool it covers the essentials: refusals, unit handling, no side effects from probing, and the fallback to set_parameter. It is slightly over-complete in one direction (explaining return values that the output schema already defines) while the destructiveHint=false claim is left implicit rather than tied to the stated crash hazards.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and most unit conventions (kHz as Hz, seconds as ms, bare-number target) are already in the schema descriptions. The description still adds conceptual meaning the schema lacks: there is no invertible formula because the raw-to-display curve is per-parameter and nonlinear, which explains why target must be given as a reading rather than a value.

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?

The opening sentence states a specific verb and resource ('Set a device parameter') and immediately names the axis that separates it from the sibling: 'by the reading it should show, not by its raw value'. The Note explicitly calls it 'the inverse of set_parameter', so an agent can route between the two 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 Guidelines5/5

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

It gives an explicit when-not: devices that report no unit (all VST2, '0 of 36 measured') must use set_parameter with a normalised value instead. It also names the failure mode to avoid ('writing 10 ... lands at 316 ms and reports success'), which tells the agent why this tool exists rather than the simpler alternative.

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