Skip to main content
Glama

sampler_set

Idempotent

Configure an audio clip's sampler playback mode, root note, transpose, reverse, and envelope; omitted settings stay unchanged, and edits are undoable.

Instructions

Change how an audio clip's sampler plays (fields left out stay): playback_mode one_shot, loop, slice, gate, granular, warp; root note, transpose in semitones, reverse, envelope (attack/decay/release ms, sustain 0-1). Undoable.

Input Schema

NameRequiredDescriptionDefault
slotYes0-based clip slot (scene row) on the track.
trackYesTrack id (UUID string from tracks.list, stable) or 0-based index (shifts when tracks are added or moved).
reverseNoPlay backwards.
sustainNoSustain level.
decay_msNoDecay.
attack_msNoAttack.
root_noteNoNote that plays the sample unshifted.
transposeNoSemitones.
release_msNoRelease.
playback_modeNoHow the clip plays.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare that this is a non-read-only, non-destructive, idempotent, closed-world operation. The description adds meaningful behavior beyond that by stating that omitted fields are preserved and that the change is undoable. It still does not describe permissions, return behavior, or edge cases, so it is strong but 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.

Conciseness4/5

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

The description is front-loaded with the core action and uses a compact one-sentence structure with no filler. The semicolon-separated field list is dense but efficient; it could be slightly clearer structurally, but nothing is wasted.

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 10-parameter mutation tool with full schema coverage and annotations covering safety and idempotency, the description supplies the important missing behavioral context: partial-update semantics and undoability. Track/slot identification is handled by the schema, and no output schema exists, so the description is complete enough without additional return-value detail.

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 description coverage is 100%, so the baseline is 3. The description adds some value by grouping envelope fields with units and ranges, listing the playback_mode enum values, and stating that omitted fields remain unchanged, but it does not provide deeper per-parameter semantics than the schema already offers.

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?

The description gives a specific verb and resource: it changes how an audio clip's sampler plays. It enumerates the sampler fields, which clearly distinguishes it from general device or clip-writing tools. However, it does not explicitly route the agent away from siblings such as sampler_get, sampler_slice, or devices_set_params.

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?

The phrase 'fields left out stay' clarifies partial-update behavior, and 'Undoable' gives useful usage context. But the description does not explicitly say when to use this instead of sampler_get for reading, sampler_slice for slicing, or other parameter-setting tools, so guidance remains implied rather than explicit.

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