Skip to main content
Glama

clips_set_length

Idempotent

Set a session clip's loop length in beats; notes past the end stay stored but do not play. Use it to adjust clip playback length with an undoable edit.

Instructions

Set the loop length of a session clip in beats (notes past the end stay but do not play). 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).
length_beatsYesLoop length in beats.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare idempotent=true and destructive=false, but the description adds value beyond them: 'notes past the end stay but do not play' discloses the non-destructive side effect on out-of-range MIDI, and 'Undoable' confirms recoverability. It does not say what happens when the target slot is empty or whether an error is raised.

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?

One front-loaded clause plus a precisely chosen parenthetical and a one-word reversibility note. Nothing is padded and the most decision-relevant constraint (beats, retention behavior) comes first.

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 three-parameter mutation with full schema coverage, annotations, and no output schema, the description covers purpose, side effects, and reversibility. It stops short of stating failure modes or preconditions for slot occupancy.

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 for length_beats by explaining the consequence of shortening the loop (content is retained, not truncated). Track and slot semantics are left entirely to the schema.

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 ('Set'), a specific resource ('loop length of a session clip'), and a unit ('in beats'). The 'session clip' scoping cleanly separates it from siblings like arrangement_set_loop and clips_transform without needing to name them.

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 single-purpose nature makes the use case inferable, but there is no explicit guidance on when to use this versus alternatives such as clips_transform or clips_duplicate, and no stated preconditions (e.g. a clip must already exist in that slot).

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