Skip to main content
Glama

set_envelope

Shape an amp or filter ADSR envelope by setting attack, decay, sustain, and release levels from 0.0 to 1.0; use -1 to leave a stage unchanged.

Instructions

Shape an ADSR envelope. section is amp or filter; each stage is 0.0-1.0, -1 leaves it untouched. Slow attack + long release = pad; fast decay + low sustain = pluck.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_envelope"
  }
}

Input Schema

NameRequiredDescriptionDefault
decayNo
sceneNoa
attackNo
releaseNo
sectionNoamp
sustainNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and it does disclose useful semantics: the 0.0-1.0 stage range and the -1 sentinel meaning 'leaves it untouched,' which is critical to avoid accidentally zeroing stages. It does not state whether a patch must be loaded, whether changes apply immediately or persist without save_patch, or what the response contains.

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?

Two tight sentences with the core action and section scope front-loaded, followed by sentinel and range semantics and a compact design heuristic. No filler, and every clause carries information an agent can act on.

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 6-parameter tool with no annotations but an output schema, this nearly covers the essentials: stage ranges, sentinel behavior, and section values. The notable gap is the undefined 'scene' parameter and the absence of any statement about persistence or prerequisites.

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 0%, so the description must compensate; it does explain the four stage parameters' ranges and the -1 default, plus the 'amp or filter' values for section. It says nothing about the 'scene' parameter (default 'a'), leaving one of six parameters fully undefined.

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 opens with a specific verb and resource: 'Shape an ADSR envelope,' which is distinct from sibling tools like set_filter and set_modulation. It also names the two envelope sections (amp or filter), so an agent can tell it apart from other sound-design setters, though it never explicitly contrasts itself with those alternatives.

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?

No explicit when-to-use or when-not-to-use guidance is given, and no sibling alternatives are named. However, the pad/pluck recipes ('Slow attack + long release = pad; fast decay + low sustain = pluck') give practical context for when this tool is the right choice for a desired timbre.

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