Skip to main content
Glama

Set clip volume

set_clip_volume
Idempotent

Set an audio clip's Volume level to a fixed dB value, replacing keyframes only when clear_keyframes is true, and return the dB level read back.

Instructions

Set an audio clip's Volume > Level to a fixed dB value (the same knob as Effect Controls > Volume > Level; not clip gain). If the level is keyframed the call fails with UNSUPPORTED unless clear_keyframes=true, which removes the keyframes first. Returns the level read back in dB. Levels are in dB as shown in Premiere's Effect Controls (0 dB = unchanged, maximum +15 dB). A level of -100 dB or lower means silence (-infinity). Use set_clips_volume for many clips, adjust_clip_volume for a relative change. 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": {
      "level_db": "<level_db>"
    },
    "name": "set_clip_volume"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
level_dbYesNew level, in dB. -100 or lower = silence.
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.
clear_keyframesNoRemove existing volume keyframes first. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only cover readOnly=false, idempotent=true, destructive=false, which are already in structured data. The description goes well beyond: keyframed levels fail with UNSUPPORTED unless clear_keyframes=true, which removes keyframes first, and it states the return value is the level read back in dB. Mutation side effects and error codes are disclosed up front.

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?

Five dense sentences, each carrying distinct information (identity, failure mode, return value, scale, alternatives, track constraint), with the core operation front-loaded. No filler or restatement of the title.

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?

There is no output schema, and the description compensates by stating what is returned (level read back in dB). Combined with the unit scale, keyframe failure mode, and track restriction, an agent has everything needed to call this correctly.

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 baseline is 3, but the description adds real meaning the schema doesn't: 0 dB = unchanged, maximum +15 dB, and -100 dB or lower means silence. It also clarifies the failure semantics of the keyframe-removal flag rather than just repeating 'Default false'.

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?

Names a specific verb and resource ('Set an audio clip's Volume > Level to a fixed dB value') and disambiguates the exact control ('same knob as Effect Controls > Volume > Level; not clip gain'). It also explicitly separates itself from set_clips_volume and adjust_clip_volume, so an agent can pick it without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit routing: use set_clips_volume for many clips, adjust_clip_volume for a relative change. It also names the precondition (must be an audio track) and the failure path (video clip -> BAD_ARGS, pass the linked audio clip instead, error names it).

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