Skip to main content
Glama

Fade audio in

fade_in_audio

Fade an audio clip in by writing Volume > Level keyframes from a floor level at its first frame to a target level after a set duration, replacing only keyframes inside the fade.

Instructions

Fade an audio clip in by writing two Volume > Level keyframes: floor_db at the clip's first frame and level_db at clip start + duration. Existing volume keyframes inside the fade are replaced; others are kept. level_db defaults to the clip's current level at that point. For a crossfade between two clips use the transitions tools. Returns the keyframes now on the clip (sequence time, dB). 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": {
      "duration": "<duration>"
    },
    "name": "fade_in_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
durationYesFade length in seconds (capped at the clip length).
floor_dbNoLevel at the start of the fade, in dB. Default silence (-infinity); -100 or lower = silence.
level_dbNoLevel at the end of the fade, in dB. Default: the clip's current level there.
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
Behavior4/5

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

Annotations only declare the write profile (readOnly=false, idempotent=false, destructive=false); the description adds the real behavioral detail: which keyframes are replaced, which are preserved, the silent default for floor_db, the level_db fallback, and the BAD_ARGS failure mode. The one nuance left implicit is that replacing in-fade keyframes is a localized overwrite, a mild tension with destructiveHint=false, but the scope is disclosed clearly enough that the agent is not misled.

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?

Front-loaded with the action and mechanism, then consequences, then the alternative, then the return value and the error case. Five dense sentences with no filler and no repetition 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?

Nine parameters but only one required, and the description covers the mechanism, destructive side effects, defaults, return payload, and error handling. With no output schema, the explicit return description (keyframes with sequence time and dB) closes the remaining gap.

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% and already documents the clip_id-vs-clip_index preference, the duration cap, and the dB range, so the description largely restates structured data. It does add a little meaning around the level_db default resolving to the clip's current level at that point, but with full schema coverage that keeps this at baseline.

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 the specific verb (fade in), the resource (an audio clip), and the exact mechanism (two Volume > Level keyframes at floor_db and level_db). It also distinguishes itself from the crossfade path by naming the transitions tools, so an agent can separate it from fade_out_audio and add_audio_transition 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?

Explicitly routes crossfade work to the transitions tools and states the hard precondition (clip must be on an audio track), including the recovery path when a video clip is passed: use the linked audio clip, which the error names. When-to-use, when-not-to-use, and the alternative are all present.

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