Skip to main content
Glama

set_clip

Edits a clip's position, length, audio trim, gain, fades, loop, pitch, or mute state to arrange and mix tracks.

Instructions

Move (bar, track), resize (bars), trim audio (offset seconds), gain_db, fades (in beats), loop_bars (0 = no loop), transpose in semitones (audio: changes pitch and speed), mute a clip.

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": {
      "clip": "<clip>"
    },
    "name": "set_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
barNo
barsNo
clipYes
nameNo
mutedNo
trackNo
offsetNo
fade_inNo
gain_dbNo
projectNo
fade_outNo
loop_barsNo
transposeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.3/5.0
Behavior1/5

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

With no annotations and no output schema, the description carries the full behavioral burden, yet it never says whether unlisted properties are preserved on a partial update, whether the operation is destructive or reversible, what happens if the clip reference is invalid, or what the tool returns. The one genuine behavioral disclosure — "audio: changes pitch and speed" for transpose — is a useful side-effect warning, but it stands alone; the core semantics of a mutating setter remain opaque.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

It is compact and wastes no words, but the telegraphic single-sentence list is not front-loaded with purpose and reads as a schema dump rather than guidance. The parenthetical unit hints are helpful, though the density makes it easy to miss embedded semantics like loop_bars 0 = no loop.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a thirteen-parameter mutating tool with zero annotations, no output schema, and no documented required parameter, the definition is under-specified: partial-update semantics, error behavior, and the clip identifier itself are all absent. The unit annotations partially compensate but not nearly enough for an agent to invoke this confidently without experimenting.

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 coverage is 0%, so the description must do all the work; it does cover roughly nine of thirteen parameters (bar, track, bars, offset, gain_db, fades in beats, loop_bars with its 0 = no-loop sentinel, transpose in semitones, muted). However it omits the single required parameter 'clip', never explains what 'project' scopes or what 'name' renames, and gives no units for gain_db or for bar versus bars — gaps that matter given the 13-parameter surface.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description never states plainly that it modifies properties of an existing clip; it instead rattles off a parenthesized list of operations ("Move (bar, track), resize (bars), trim audio (offset seconds)..."). An agent can infer mutation of a clip from the name plus "mute a clip", but the verb+resource framing is implied rather than stated, and there is no explicit differentiation from siblings like transpose or add_clip.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this tool versus add_clip, duplicate_clip, or the standalone transpose tool, even though the description itself mentions transpose behavior that overlaps with a sibling. No prerequisites, no exclusions, no note that the clip must already exist. Usage must be reverse-engineered from the parameter list.

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