Skip to main content
Glama

Add volume keyframes

add_volume_keyframes

Writes Volume > Level keyframes on an audio clip from time and dB pairs, optionally replacing existing keyframes, and returns the resulting keyframes. Use it to automate audio level automation in Premiere Pro.

Instructions

Write Volume > Level keyframes on an audio clip from a list of {time, level_db} pairs. Times are sequence seconds and must fall inside the clip; a keyframe already at a time is updated. replace_existing=true removes all volume keyframes first. Returns the keyframes now on the clip (sequence time, dB). For any other parameter use the effects group's add_keyframes. 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). 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": {
      "keyframes": "<keyframes>"
    },
    "name": "add_volume_keyframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
keyframesYesKeyframes to write.
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.
replace_existingNoRemove all existing volume keyframes first. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing update-on-collision behavior, the opt-in wholesale removal via replace_existing, and the BAD_ARGS rejection path naming the linked audio clip. There is a mild tension with destructiveHint=false given that replace_existing wipes all volume keyframes and with idempotentHint=false given that re-adding at the same time updates rather than duplicates, but the destructive behavior is opt-in and scoped, so this reads as an annotation nuance rather than a contradiction.

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?

Front-loaded with the core action, then constraints, then the sibling escape hatch, then value semantics. Every sentence carries information, though the dB range restatement partially duplicates the schema's level_db description and could be trimmed.

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 an 8-parameter mutation tool with no output schema, the description covers what is written, the value encoding, the collision and replacement behavior, the error case and its remedy, and even the return shape ('the keyframes now on the clip (sequence time, dB)'). Nothing an agent needs to invoke it correctly appears missing.

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 is 3, and the description adds real meaning on top: 0 dB means unchanged, +15 dB is the maximum, -100 dB or lower is silence, and times are sequence seconds that must be inside the clip. The clip/track/sequence selection parameters are left to the schema, which is reasonable given its thoroughness.

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?

Opens with a specific verb and resource: 'Write Volume > Level keyframes on an audio clip from a list of {time, level_db} pairs.' It also distinguishes itself from the sibling add_keyframes ('For any other parameter use the effects group's add_keyframes'), so the agent can separate the two without opening 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 Guidelines5/5

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

Explicitly routes the agent: use this tool for Volume > Level, use add_keyframes for any other parameter, and pass a linked audio clip when a video clip is rejected. It also states the replace_existing=true alternative and the precondition that times must fall inside the clip.

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