Skip to main content
Glama

Apply an effect to several clips

apply_effect_to_clips

Adds one effect to multiple clips in a sequence in a single call, using an explicit clip list or all clips on selected video/audio tracks, with optional parameter values.

Instructions

Add the same effect to many clips of one sequence in one call. Give either clips (explicit list) or track_type (+ optional track_index) to take every clip on those tracks. Video effects go on video clips and audio effects on audio clips; clips of the other type are reported as skipped. Optionally set parameters on each new effect. A clip that fails does not stop the others. Returns effect, effect_type, clips (count), applied and one result per clip (ok, effect_index, parameter results or error).

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": {
      "effect_name": "<effect_name>"
    },
    "name": "apply_effect_to_clips"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipsNoThe clips to treat. Omit to use track_type / track_index.
parametersNoParameter values to set on every new effect, each {param_name or param_index, value} (as set_effect_parameters). Omit to keep the defaults.
track_typeNoWith no `clips`: take all clips on tracks of this type. Default: the effect type.
effect_nameYesExact effect name, case-insensitive (see list_video_effects / list_audio_effects).
effect_typeNo"video" or "audio" effect. Default: "video" unless the name only exists as an audio effect.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNoWith no `clips`: restrict to this 0-based track. Omit for all tracks of the type.
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.3/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the mixed-type skip behavior and partial-failure semantics ('A clip that fails does not stop the others'). It also enumerates the return payload. It does not state what happens when effect_name is not found or that re-applying creates duplicate effects, which matters given idempotentHint=false.

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?

Five tight sentences front-loaded with the action, then targeting, then type rules, then failure behavior, then return shape. No filler or repetition; every sentence carries operational information.

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 batch mutation with no output schema, the description covers targeting precedence, type filtering, per-clip failure isolation, and return contents. Nothing an agent needs to invoke it correctly is missing.

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 description coverage is 100%, so the schema already documents clips, parameters, effect_type defaults, and sequence targeting. The description adds the precedence rule between clips and track_type and the default track_type, which is useful but largely mirrors what the schema states.

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 ('Add the same effect to many clips of one sequence in one call'), with the batch scope explicit. An agent can distinguish this from single-clip effect appliers like apply_video_effect or apply_audio_effect without inspecting 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?

Explains the two mutually exclusive targeting modes ('Give either clips ... or track_type (+ optional track_index)') and the type-matching rule with skip behavior. It does not explicitly point at the single-clip alternative for the one-clip case, but the 'in one call' framing makes the selection context clear.

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