Skip to main content
Glama

Set clip pan

set_clip_pan
Idempotent

Sets an audio clip's static Panner > Balance value from -100 (left) to +100 (right) and returns the read-back pan. For video clips, pass the linked audio clip.

Instructions

Set an audio clip's Panner > Balance (static): -100 = full left, 0 = centre, +100 = full right. Fails with UNSUPPORTED when the balance is keyframed. Returns the pan read back. The clip must be on an audio track; a video clip is rejected with BAD_ARGS (pass its linked audio clip instead; the error names it).

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": {
      "pan": "<pan>"
    },
    "name": "set_clip_pan"
  }
}

Input Schema

NameRequiredDescriptionDefault
panYesBalance from -100 (left) to +100 (right).
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
clip_indexNo0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id.
track_typeNoUsed with track_index + clip_index when clip_id is not given. Default "audio" in this toolset; "video" is rejected.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNo0-based track index (0 = V1 or A1).
sequence_nameNoSequence name; used only when sequence_id is not given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false) it discloses named failure modes — UNSUPPORTED for keyframed balance and BAD_ARGS with self-describing error text for video clips — plus the fact that the resulting pan is read back. That is exactly the error/permission context annotations cannot convey.

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 dense, front-loaded sentences: what it sets and its value scale first, then failure modes and the video-clip escape hatch. No filler, no repetition of the title, and each clause carries actionable information.

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 7-parameter mutation with full schema coverage and no output schema, the description covers the value domain, the audio-only restriction, the keyframe restriction, the exact error identifiers, and the returned value. An agent has everything needed to call it correctly or reroute on failure.

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 100%, so pan range, clip_id preference, index caveats and the track_type enum are already documented in the schema. The description only reinforces the pan scale and the audio-track constraint on track_type; it adds little syntactic or format detail beyond structured fields, so baseline 3 applies.

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 and resource ("Set an audio clip's Panner > Balance") and pins the domain to audio clips. The scale definition (-100 left, 0 centre, +100 right) makes the operation unambiguous and distinguishes it from the read-side sibling get_clip_pan.

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?

Gives explicit preconditions and exclusions: only static balance (keyframed values fail with UNSUPPORTED), only audio-track clips, and it routes the agent to the linked audio clip when handed a video clip. What it stops short of is naming get_clip_pan as the read alternative or explaining when to keyframe instead, but the when/when-not guidance is otherwise concrete.

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