Skip to main content
Glama

Clear volume keyframes

clear_volume_keyframes
Destructive

Removes Volume > Level keyframes from an audio clip, optionally within a time range, disables animation when none remain, and can set a fixed dB level afterward.

Instructions

Remove all Volume > Level keyframes of an audio clip (or only those between start_time and end_time, sequence seconds) and, when all are removed, turn animation off. Optionally set a fixed level_db afterwards. Returns how many were removed and the resulting level. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "clear_volume_keyframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
end_timeNoOnly remove keyframes at or before this sequence time (seconds).
level_dbNoFixed level to set after clearing all keyframes, in dB.
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.
start_timeNoOnly remove keyframes at or after this sequence time (seconds).
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.6/5.0
Behavior5/5

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

Beyond the destructive/readOnly annotations, it discloses key side effects: animation is turned off when all keyframes are removed, an optional fixed level_db is applied afterwards, and the return value reports the removed count plus resulting level. It also documents the exact error mode (BAD_ARGS) and the remedy for video clips.

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 dense sentences with the core action and range option front-loaded, followed by side effects and the failure mode. 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.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter destructive tool with no output schema, it covers prerequisites, side effects, return values, and error behavior. The one unresolved ambiguity is what happens to level_db when only a time-bounded subset of keyframes is cleared.

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 parameters are already documented, but the description adds ordering semantics the schema lacks: level_db is applied after clearing, and start_time/end_time are in sequence seconds and only narrow the removal. It does not clarify whether level_db takes effect on a partial range clear.

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?

States a precise verb and resource: remove Volume > Level keyframes of an audio clip, optionally bounded by start_time/end_time. It also names the related siblings implicitly by specifying the exact keyframe channel, separating it from generic keyframe-clearing or -reading tools.

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?

Gives clear when-not guidance: the clip must be on an audio track, video clips are rejected with BAD_ARGS, and the agent should pass the linked audio clip instead. It does not explicitly compare against sibling alternatives such as clear_keyframes or remove_keyframes_in_range, so it stops short of full routing guidance.

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