Skip to main content
Glama

get_clip_envelope

Sample automation envelopes for device parameters in Ableton Session clips. Returns whether an envelope exists and its values at evenly spaced intervals.

Instructions

Sample the automation envelope for a device parameter in a Session clip.

The Ableton API does not expose individual breakpoints, so this samples the envelope value at evenly-spaced time positions across the clip. Returns envelope_exists=False if no envelope is set for the parameter. Only works for Session clips (not Arrangement clips).

Args: track_index: Zero-based index of the track. clip_index: Zero-based index of the clip slot. device_index: Zero-based index of the device on the track. param_index: Zero-based index of the parameter on the device. num_steps: Number of sample points across the clip (2-128, default 16).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
num_stepsNo
clip_indexYes
param_indexYes
track_indexYes
device_indexYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description fully discloses the sampling methodology (evenly-spaced time positions because API doesn't expose breakpoints) and the return flag for missing envelopes. This is valuable beyond what the schema conveys.

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?

The description is well-structured with a brief intro, a key caveat, return behavior, and a tidy argument list. Every sentence provides necessary information without redundancy.

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 sampling tool with an output schema, the description covers the essential behavior, limitations, and parameter details. It explains what happens when no envelope exists, making the tool's behavior predictable.

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

Parameters5/5

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

The description includes an 'Args' section explaining all five parameters with clear meanings, fully compensating for the schema's 0% description coverage. It even adds range and default for num_steps.

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 description names a specific verb ('Sample') and resource ('automation envelope for a device parameter in a Session clip'), clearly distinguishing it from sibling tools that insert or clear envelopes. It also narrows the scope to Session clips, removing ambiguity.

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?

The description explicitly states a key limitation ('Only works for Session clips (not Arrangement clips)') and clarifies the behavior when no envelope exists. It does not name specific alternative tools, but the distinction from insert/clear siblings is evident from the verb 'sample'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alaarab/livemcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server