Skip to main content
Glama

set_param

Idempotent

Sets a single LMMS parameter to a specified value using its native units, rejecting out-of-range values and recording one undo step.

Instructions

Set one knob to a value in its own units (see min, max and options from list_params). One undo step.

A value out of range is an error; it is not clamped.

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": {
      "knob": "<knob>",
      "value": "<value>"
    },
    "name": "set_param"
  }
}

Input Schema

NameRequiredDescriptionDefault
knobYesA knob handle or path from list_params, for example tracks/"Bass"/knobs/"Volume".
valueYesA number from min to max, true or false for a bool, or an option index or label for a combo.

Output Schema

NameRequiredDescriptionDefault
maxYes
minYes
nameYes
pathYes
stepYes
typeYes
valueYes
handleYes
defaultYes
displayYes
optionsNo
automatedYes
log_scaleYes
controlledYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive and closed-world. The description adds two things annotations cannot express: the change costs exactly one undo step (reversibility granularity) and invalid values are rejected rather than silently clamped. It does not describe what happens on repeated identical sets or any project-state prerequisites, so it is not exhaustive.

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?

Three short sentences, front-loaded with the action and its unit semantics, followed by the pointer to list_params and the error behavior. No filler or restatement of the name.

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 two-parameter, fully documented setter with an output schema and complete annotations, the description covers action, valid-value discovery, error behavior and undo cost. Nothing essential to correct invocation is missing.

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, but the description adds real meaning: values are interpreted in the knob's own units and the valid domain must be discovered via list_params rather than guessed. That fills the gap the schema leaves about where min/max actually come from.

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 ('Set one knob to a value') plus the scope 'in its own units', and points to list_params for the valid domain. An agent can distinguish this from the read-side sibling list_params and from setters of other resources (set_tempo, set_loop) without opening the 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?

Implies a clear prerequisite workflow: consult list_params for min, max and options before calling. It also states the failure mode ('a value out of range is an error; it is not clamped'), which is actionable guidance. It stops short of explicit when-not-to-use or naming alternative setters, so it is not a 5.

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