Skip to main content
Glama

Set clip opacity

set_clip_opacity
Idempotent

Sets a video clip's opacity percentage from 0 (invisible) to 100 (opaque), removes existing keyframes so the value applies to the whole clip, and returns its transform.

Instructions

Set a video clip's Opacity in percent (0 = invisible, 100 = opaque). A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Use fade_in_clip / fade_out_clip for fades. Returns the clip's transform.

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": {
      "opacity": "<opacity>"
    },
    "name": "set_clip_opacity"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
opacityYesOpacity in percent.
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/5.0
Behavior5/5

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

Annotations only declare readOnly=false, idempotent=true, destructive=false; the description goes beyond that by disclosing that existing keyframes on the parameter are removed before the new value is applied, which is a real destructive side effect on data the annotations do not convey. It also states the return value (the clip's transform) despite no output schema existing.

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 short sentences, front-loaded with the core action and units, followed by the side-effect caveat, then the sibling routing and return value. No filler and nothing buried.

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 7-parameter mutation with fully documented schema and no output schema, the description covers the action, the unit semantics, the hidden side effect, the alternative tool, and the return value. An agent can call it correctly and anticipate the keyframe loss without reading anything else.

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 every one of the 7 parameters (including clip_id vs clip_index/track_index fallback, track_type default, sequence_id vs sequence_name) is already documented in the schema. The description only restates the opacity percent range, adding essentially no meaning beyond the structured fields; baseline 3 applies.

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 (set a video clip's Opacity) plus the units and endpoint semantics (0 = invisible, 100 = opaque), so an agent knows exactly what the operation changes. The fade_in_clip/fade_out_clip reference also separates it from the nearest related siblings.

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?

The description explicitly routes fade use cases to fade_in_clip / fade_out_clip, which is a genuine when-to-use-elsewhere rule. It stops short of broader exclusions (e.g. audio clips, blending, or transform alternatives), so it is clear context rather than a complete decision table.

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