Skip to main content
Glama

Adjust clip volume

adjust_clip_volume

Raise or lower an audio clip's Volume level by a dB amount, shifting all keyframes equally so the envelope keeps its shape. Ideal for quick gain changes on audio tracks.

Instructions

Raise or lower an audio clip's Volume > Level by a number of dB (e.g. -3 or +2). If the level is keyframed, every keyframe is shifted by the same amount so the envelope keeps its shape. Silent points (-infinity) stay silent. Results are clamped to +15 dB. Returns the level (or keyframes) before and after. 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": {
      "delta_db": "<delta_db>"
    },
    "name": "adjust_clip_volume"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
delta_dbYesChange in dB; negative = quieter.
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.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=false), the description discloses keyframe semantics (all keyframes shifted by the same amount so the envelope shape is preserved), -infinity handling, clamping at +15 dB, the returned before/after values, and the specific error mode with its workaround. It is consistent with the annotations: a non-idempotent, non-destructive mutation.

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?

Four dense sentences with the operation and unit front-loaded, followed by the keyframe edge case, the clamp, the return value, and the error path in that order of importance. No sentence is redundant.

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 seven-parameter mutation with no output schema, the description covers return values, edge cases (silent points, clamping), and the failure path, so little is missing. The remaining gap is routing guidance against the several volume-related siblings, which it never addresses.

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 100%, so all seven parameters are already documented in the schema. The description adds only the dB delta example ('-3 or +2') and the audio-track constraint on track_type, which the schema also states — baseline 3 applies when the schema carries the parameter burden.

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 states a specific verb ('raise or lower'), a specific resource ('an audio clip's Volume > Level'), and the unit of change ('by a number of dB'). The relative/delta nature implicitly separates it from an absolute setter, but no sibling (e.g. set_clip_volume, get_clip_volume) is named, so the differentiation is left to inference.

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?

It gives one concrete usage constraint — the clip must be on an audio track, and video clips are rejected with BAD_ARGS, with the remedy of passing the linked audio clip. There is no guidance on when to choose this over set_clip_volume, add_volume_keyframes, or set_clips_volume, so the agent must infer the relative-vs-absolute choice from the wording.

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