Skip to main content
Glama

Apply shader effect

apply_shader_effect

Applies saved or inline shader effects to a video project as a single committed edit, supporting filters, transitions, and generators; preview results before rendering.

Instructions

Put a ShaderFX effect on a project (committed at once): a saved effect_id, or inline source + manifest. "filter": target_layer_id (omit = everything below), window start_time / end_time. "transition": from_layer_id + to_layer_id, overlap duration_sec (default 0.8) on media handles. "generator": paints on its own. params by manifest name; param_keyframes animates them. Check with render_preview. Details: load_skill shaderfx-effects.

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": {
      "project_id": "<project_id>"
    },
    "name": "apply_shader_effect"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo[v3] Up to 16384 floats for data(i).
kindNo
easingNo[transition] Easing of progress, e.g. ease_in_out.
outputNoOverride the manifest output mode.
paramsNoParam values by manifest name, e.g. { "strength": 0.8 }.
sourceNoInline WGSL (with manifest), instead of effect_id.
opacityNoLayer opacity 0..1.
data_urlNo[v3] URL of a JSON array or CSV, resolved to floats at apply time.
end_timeNo[filter/generator] Timeline end (s).
feedbackNo[v3] { enabled, warmup_sec?, clear? }: prev(uv) reads the previous output frame.
geometryNo[v3] { mode: "quads"|"points", count }: instanced particles drawn by fn instance(i, c).
manifestNoInline manifest (with source).
texturesNo[v3] Up to 4 named textures; read with tex_<name>(uv).
effect_idNoSaved effect id.
intensityNoc.intensity (default 1).
project_idYesProject whose committed scene is edited.
start_timeNo[filter/generator] Timeline start (s).
to_layer_idNo[transition] Incoming clip.
data_columnsNo[v3] CSV data_url columns (names or 0-based indexes).
duration_secNo[transition] Overlap length (default 0.8).
from_layer_idNo[transition] Outgoing clip.
param_keyframesNo{ "<param>": [{ time, value, easing? }, …] } (≥ 2 keyframes each).
target_layer_idNo[filter] Layer whose picture src() reads.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.4

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a write that is not read-only, not open-world, and not destructive; the description adds real context beyond that by flagging the change is committed immediately, that overlap runs on media handles with a 0.8s default, and that keyframed params need multiple keyframes per param. It does not disclose what permission/auth is needed, what the call returns, or what happens on partial failure of a committed edit.

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 action and the committed-at-once caveat, then organized by kind (filter, transition, generator) with defaults and a verification pointer. It is terse and telegraphic in places ("window start_time / end_time"), but nearly every clause carries operational information rather than filler.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 23-parameter tool with nested objects and no output schema, the description covers the mode selection logic, key defaults, and the param/keyframe model, and it delegates deep shader authoring detail to load_skill shaderfx-effects. The remaining gap is the result of the call: an agent is not told what identifier or handle comes back after the effect is committed.

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 96%, so the schema already documents nearly every parameter including its [filter]/[transition]/[v3] tags, and the baseline is 3. The description does add cross-parameter meaning by grouping which parameters belong to which kind and noting the duration_sec default and "params by manifest name", but it does not explain the interplay of inline source+manifest versus saved effect_id, or constraints like the 4-texture limit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: "Put a ShaderFX effect on a project (committed at once)", and enumerates the three effect kinds it accepts (filter, transition, generator). It implicitly separates itself from preview/inspection siblings via "committed at once", but never names a sibling such as create_shader_effect or apply_caption_template to sharpen the boundary.

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?

Gives per-mode usage rules that an agent would otherwise have to guess: filter targets target_layer_id and "omit = everything below", transition requires from_layer_id + to_layer_id with an overlap, generator "paints on its own". It also routes to render_preview for verification and to load_skill shaderfx-effects for details, but offers no explicit when-not-to-use condition (e.g. versus saving an effect first).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.