Skip to main content
Glama

Fade clip out

fade_out_clip

Fade a video clip out to transparent by adding opacity keyframes from its current opacity down to 0% over a set duration. Replaces existing keyframes in that range while keeping others.

Instructions

Fade a video clip out to transparent: opacity keyframes at the clip's current opacity (or from) duration seconds before its end, and 0% at its end. Existing opacity keyframes inside that range are replaced; others (e.g. a fade-in) are kept. Returns the opacity keyframes.

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_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoOpacity at the start of the fade, percent. Default: the clip's current static opacity (100 if it is keyframed).
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
durationYesFade length in seconds (clipped to the clip's duration).
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 "video".
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.0
Behavior4/5

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

Goes well beyond the annotations by disclosing exactly which data is overwritten (existing opacity keyframes inside the fade range are replaced) and which is preserved (e.g. a fade-in), plus the return value. It does not address the idempotency nuance (annotations say idempotentHint=false, yet the 'current opacity' default shifts after the first run), which would have closed the gap fully.

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?

Three dense sentences, front-loading the effect before the overwrite rules and the return value. Nothing is wasted, but the second sentence packs replacement and preservation behavior into a slightly cryptic clause.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 full schema coverage and safety annotations, the definition covers the effect, side effects on keyframes, and return value. It stops short of stating error/edge behavior (e.g. clip shorter than `duration`) or the idempotency caveat, which matter for a non-idempotent write.

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, but the description ties parameters together meaningfully: `duration` is measured backwards from the clip end and `from` supplies the starting opacity when the clip is keyframed. That is real added semantics, though the clip/track/sequence identification parameters are left entirely to the schema.

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 specific verb and resource (fade a video clip out) plus the exact effect: opacity keyframes at the current/`from` opacity `duration` seconds before the end and 0% at the end. The video/opacity framing clearly separates it from fade_out_audio and fade_in_clip without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied by the mechanics ('duration seconds before its end'), which does suggest end-of-clip usage. There is no explicit when-to-use guidance, no mention of alternatives such as fade_in_clip or set_clip_in_out, and no note about re-running an already-keyframed fade.

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