Skip to main content
Glama

Fade audio out

fade_out_audio

Fade out an audio clip by creating two Volume Level keyframes over a specified duration, replacing existing volume keyframes inside the fade and preserving others.

Instructions

Fade an audio clip out by writing two Volume > Level keyframes: level_db at clip end - duration and floor_db at the clip's last frame. Existing volume keyframes inside the fade are replaced; others are kept. level_db defaults to the clip's current level there. 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_out_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 end of the fade, in dB. Default silence; -100 or lower = silence.
level_dbNoLevel where the fade starts, 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 cover only the safety profile (readOnlyHint=false, destructiveHint=false, idempotent=false), so the description must explain side effects, and it does: volume keyframes inside the fade are replaced while others are kept, defaults apply for level_db/floor_db, and the return payload is 'the keyframes now on the clip (sequence time, dB).' It even discloses the failure mode and its workaround. The one gap is tension with destructiveHint=false — replacing existing keyframes is a real modification the annotation does not flag, and the description does not say whether the replacement is reversible.

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?

Three sentences, front-loaded with the action and its mechanism, then side effects, then the constraint and error path. Every clause carries information — no restatement of the title and no generic filler.

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 9-parameter mutation tool with no output schema, the description covers mechanism, mutation scope, defaults, failure behavior, and return content, while the fully documented schema handles per-parameter detail. An agent has everything needed to call it correctly or recover from the one anticipated error.

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 description coverage is 100%, so the baseline is 3, but the description adds derived semantics the schema cannot express: where each keyframe lands (clip end minus duration, and the last frame) and that level_db defaults to the clip's current level 'there'. Those positional rules materially change how duration and level_db are interpreted, which is genuine value beyond the schema. It adds nothing further about the id-resolution parameters (clip_id vs clip_index/track_index), which stay schema-only.

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 names a specific verb and resource ('Fade an audio clip out') and goes further by stating the exact mechanism: two Volume > Level keyframes placed at 'clip end - duration' and at the clip's last frame. That mechanism, plus the audio-track-only constraint, distinguishes it from the video-oriented fade_out_clip sibling without the agent needing to open either 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?

It gives a clear precondition and an explicit remedy: '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).' That is strong when-to-use guidance backed by a concrete recovery path. It does not name the alternative tools (e.g. fade_in_audio, fade_out_clip) directly, so routing is inferred from the preconditions rather than stated.

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