Skip to main content
Glama

Set an effect parameter

set_effect_parameter
Idempotent

Set one effect parameter to a static number, boolean, [x,y] point, or string, returning previous and read-back values; keyframed parameters must use add_keyframe or clear_keyframes instead.

Instructions

Set the static value of one effect parameter (number, boolean, [x, y] array or string). Returns previous_value and the value read back from Premiere, which may differ if Premiere clamped it; applied is true when the read-back value equals the request. A parameter that has keyframes is refused with UNSUPPORTED: change it with add_keyframe or call clear_keyframes first. Works on intrinsic effects too (e.g. effect_name "Opacity"); points such as Motion's Position are normalised [x, y] where [0.5, 0.5] is the frame centre. Use set_effect_parameters for several parameters of one effect, set_effect_color_parameter for colours, and the motion tools (set_clip_scale, set_clip_position ...) for transforms.

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": {
      "value": "<value>"
    },
    "name": "set_effect_parameter"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesNew value: a number, a boolean (checkbox), an array of numbers ([x, y] point, normalised 0-1 for Motion/Transform positions) or a string. Use set_effect_color_parameter for colours.
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
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.
param_nameNoParameter display name, case-insensitive, e.g. "Blurriness". The first match is used. Ignored when param_index is given.
track_typeNoUsed with track_index + clip_index when clip_id is not given. Default "video".
effect_nameNoEffect display name or match name, case-insensitive, e.g. "Gaussian Blur" or "Motion". The first match is used. Ignored when effect_index is given.
param_indexNo0-based parameter index (from get_effect_parameters). Required for parameters with an empty display name.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNo0-based track index (0 = V1 or A1).
effect_indexNo0-based index of the effect in the clip's effect list (from list_clip_effects). Use it when the clip has two effects with the same name.
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
Behavior4/5

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

Goes well beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false) by disclosing the read-back/clamping behaviour, the meaning of `applied`, the previous_value return, and the keyframe refusal with its error code. Only the return shape's remaining fields are left partly implicit, which is minor for a mutation tool with no output schema.

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-loads the core action and return semantics, then behaviour, then alternatives, with no filler sentences. It is dense and long for a single tool, but each sentence carries non-redundant 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 11-parameter mutation tool with no output schema, the description covers side effects, return semantics, error conditions, value-type scope and sibling routing. 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all 11 parameters; the description nonetheless adds meaning the schema lacks, notably that intrinsic effects can be targeted (e.g. "Opacity") and that normalised points are anchored at [0.5, 0.5] = frame centre. It does not repeat the clip_id/clip_index precedence rules, so it stops short of a 5.

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 the static value of one effect parameter") plus the accepted value types, and explicitly separates itself from set_effect_parameters, set_effect_color_parameter and the motion transform tools. An agent can identify the right tool without opening any 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?

Gives concrete routing rules: use set_effect_parameters for several parameters of one effect, set_effect_color_parameter for colours, motion tools for transforms, and add_keyframe/clear_keyframes when the parameter is keyframed. It also states the precondition failure mode (UNSUPPORTED) so the agent knows when not to call it.

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