Skip to main content
Glama

Set audio levels / fades

set_audio_levels

Adjust a layer's audio levels in dB with static values or keyframes, create fade-ins/outs, and enable or disable audio; optionally clear existing level keys first.

Instructions

Set a layer's Audio Levels in dB (0 = unchanged, negative = quieter), statically, at 'time', or as a list of keys; fadeIn/fadeOut (seconds) add keyframes from/to silentDb (default -48 dB) at the layer's in/out point. Can also switch the audio on/off. clearKeys=true removes existing level keys first.

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": {
      "layer": "<layer>"
    },
    "name": "set_audio_levels"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
keysNoKeyframes [{time, level}] in dB.
timeNoSet the values as keyframes at this time (seconds, '12f' or timecode). Omit = static value (or a key at the current time when the property is already animated).
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
levelNoLevel in dB (number for both channels or [left, right]).
fadeInNoFade-in length in seconds from the layer's in point.
fadeOutNoFade-out length in seconds ending at the layer's out point.
silentDbNoLevel used as silence for fades (default -48).
clearKeysNoDelete existing Audio Levels keyframes first.
audioEnabledNoTurn the layer's audio switch on/off.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds the substantive behavior details: 0 dB means unchanged, fades are anchored at the layer's in/out points, silentDb defaults to -48, and clearKeys deletes existing level keys before writing. That last point discloses the one data-destroying path on an opt-in flag, which the destructiveHint=false annotation alone would not reveal.

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

Conciseness4/5

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

The mode list (static / time / keys) and fade behavior are front-loaded in the first sentence, with the two caveats (on/off switch, clearKeys) as short trailing sentences. It is dense with semicolons but every clause carries distinct information; no filler or restated title.

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 10-parameter mutation tool with no output schema, the description covers the essential calling semantics: units, defaults, keyframe anchors, and destructive clearKeys. Minor gaps remain (return value, behavior when the layer has no audio source, whether comp defaults to the active composition), but the fully described schema absorbs most of that burden.

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 would be 3, but the description adds interaction semantics the schema does not spell out: the sign convention for dB, that fadeIn/fadeOut keys interpolate from/to silentDb at the layer's in/out points, and that clearKeys runs before the new keys are applied. Only 'comp' and the layer selector receive no mention in prose.

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?

The description states a precise verb and resource (set a layer's Audio Levels in dB) and enumerates the three operating modes: static value, keyframe at 'time', or a keys list. It also covers the fade and on/off variants and the clearKeys side behavior, so an agent can tell exactly what the tool mutates without opening the schema.

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?

Clear context is given for each mode: omit 'time' for a static value, supply 'time' for a single key, supply 'keys' for a list, use fadeIn/fadeOut for ramps, and clearKeys=true to start clean. It stops short of naming a sibling alternative (e.g., audio_to_keyframes) or stating when not to use it, which keeps it at a 4.

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