Skip to main content
Glama

Apply effect

apply_effect

Add effects to one or more After Effects layers, optionally rename the instance and set parameters immediately, then return the effect's parameters for further adjustment.

Instructions

Add an effect to one or more layers. 'effect' is a display name or matchName (case-insensitive); a unique partial name also works (e.g. 'gaussian'), otherwise the error lists close matches. Optionally rename it and set params right away. Returns the effect's params (first layer) so you can adjust them with set_effect_params. Unknown params are reported as warnings.

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": "<effect>"
    },
    "name": "apply_effect"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
nameNoNew name for the effect instance (e.g. 'Main Blur').
effectYesEffect display name ('Gaussian Blur') or matchName ('ADBE Gaussian Blur 2').
layersNoTarget layer(s): one ref, an array of refs, 'selected' (default) or 'all'.
paramsNo{ param: value }. Keys: param display name (case/punctuation-insensitive), matchName, 1-based index, or 'Topic/Name' for params under a section header (e.g. Lumetri 'Vignette/Amount'). Values: numbers in AE scripting units (check min/max with get_effect_params; e.g. Drop Shadow Opacity is 0-255, Fill Opacity 0-1), colors '#RRGGBB', checkboxes true/false, points [x,y] in layer pixels, popups as 1-based item index, Dropdown Menu Control items by label, layer params by layer name/index (0 = none). An object {value?, time?, expression?, keyframes?:[{time,value}]} sets keyframes/expressions.
enabledNofalse = add it switched off.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare it is a non-readonly, non-destructive, closed-world mutation, and the description adds substantial behavior on top: return value is scoped to the first layer's params, unknown params are non-fatal warnings, ambiguous names fail with suggested matches, and enabled=false adds the effect switched off. That is exactly the operational context an agent needs to avoid bad guesses.

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 short sentences, action front-loaded, then name-matching edge case, then the rename/param shortcut, then the return contract. No filler and nothing is buried.

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 mutation tool with no output schema, the description supplies the return shape and the warning behavior, which covers most of the need. It doesn't mention layer-lock/permission requirements or what happens if the effect is already applied to the layer.

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 adds real meaning: case-insensitive and fuzzy matching for 'effect', and that 'name' renames the instance immediately. It also frames layers as 'one or more', reinforcing the array form beyond the schema's own wording.

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 ('Add an effect to one or more layers') and clarifies that 'effect' accepts a display name, matchName, or unique partial name. It names the natural follow-up sibling (set_effect_params) but doesn't distinguish itself from closely related siblings like apply_quick_effect or apply_preset.

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 clear workflow context: add the effect here, then adjust params with set_effect_params. Also explains the failure path (ambiguous name produces an error listing close matches) and that unknown params surface as warnings. No explicit guidance on when to prefer this over apply_quick_effect/apply_preset.

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