Skip to main content
Glama

Add layer style

add_layer_style

Add Photoshop-style layer styles such as drop shadow, glow, bevel, overlay, or stroke to After Effects layers and optionally set style parameters.

Instructions

Add a Photoshop-style layer style (Layer > Layer Styles) to layer(s): drop_shadow, inner_shadow, outer_glow, inner_glow, bevel_emboss, satin, color_overlay, gradient_overlay, stroke - then optionally set its params (e.g. {Color:'#ff0000', Size: 10, Opacity: 75, Distance: 8}). Uses the menu command, so it opens the comp in the viewer and selects the layer(s) temporarily. If the style already exists only the params are set. Stroke here outlines the layer's alpha (no mask needed).

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": {
      "style": "<style>"
    },
    "name": "add_layer_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
styleYesLayer style.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare it is a non-destructive, non-open-world write; the description adds substantial context beyond them. It discloses real side effects — 'Uses the menu command, so it opens the comp in the viewer and selects the layer(s) temporarily' — and an idempotency-like behavior for pre-existing styles, both of which change how an agent should sequence calls.

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 style list, then side effects, then the existing-style caveat, then the stroke clarification — a sensible ordering. The style enumeration duplicates the enum in the schema, which is the one marginally wasteful element.

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 mutation tool with no output schema and nested param objects, the description covers purpose, side effects, existing-style behavior, and a stroke edge case. The only minor gap is what the call returns, which is low-stakes for a style application tool.

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 baseline is 3 and the schema already explains layer refs, param keys, units, and colors in depth. The description's example object ({Color:'#ff0000', Size: 10, Opacity: 75, Distance: 8}) illustrates usage but largely restates conventions already documented in the params schema.

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?

Specific verb+resource ('Add a Photoshop-style layer style ... to layer(s)') plus an enumeration of the nine supported styles. It also pre-empts confusion with the sibling add_stroke tool by stating 'Stroke here outlines the layer's alpha (no mask needed)', so an agent can distinguish the two without opening 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?

Gives clear context for when this tool applies (applying Layer > Layer Styles effects) and an important conditional rule: 'If the style already exists only the params are set.' It does not explicitly name alternatives or exclusions (e.g. when to prefer add_stroke or add_fill instead), so it stops short of full when/when-not guidance.

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