Skip to main content
Glama

set_expression

Set or remove an After Effects property expression by layer and property; non-empty expressions auto-enable the property for direct animation control.

Instructions

Set an expression on a property. Pass empty string to remove. Auto-enables if non-empty.

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": {
      "layer": "<layer>",
      "prop": "<prop>",
      "expression": "<expression>"
    },
    "name": "set_expression"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp.
propYesProperty: a transform alias ("Position","Scale","Rotation","Opacity","Anchor Point","X Rotation","Y Rotation","Orientation"), an ADBE matchName ("ADBE Position", "ADBE Effect Parade.ADBE Gaussian Blur 2.ADBE Blurriness"), or a dotted display path ("Effects.Gaussian Blur.Blurriness").
layerYesLayer: name (string), 1-based index (integer), or { id: N } for duplicate-name-safe stable-id addressing.
instanceNoTarget a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances.
expressionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It usefully discloses two non-obvious traits: an empty string removes the expression and a non-empty value auto-enables it. It does not say whether an existing expression is overwritten, whether syntax is validated (check_expression_errors exists as a sibling), or what errors surface on an invalid expression.

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 immediately followed by the two behavioral rules that matter. No filler, no restatement of the tool name or title.

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

Completeness3/5

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

There is no output schema and no annotations, so the description is the only source of behavioral context, and for a 5-parameter mutation tool it is thin. The expression semantics are covered well, but overwrite behavior, validation, and failure modes are absent, leaving an agent unable to predict results on invalid input.

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 80%, so the baseline is 3, and the description adds real meaning for the one undocumented parameter: 'expression' has no schema description, and the text explains that empty means remove and non-empty means set-and-enable. It adds nothing about comp, layer, prop, or instance, but those are already described in the schema.

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?

The description states a specific verb and resource: 'Set an expression on a property.' It also clarifies the removal case via empty string, which separates it from remove_expression without naming that sibling. It stops short of explicitly differentiating from toggle_expression or apply_expression_preset.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the verb 'Set' plus the empty-string removal rule, so an agent can infer the write path. However, there is no explicit guidance on when to prefer this over toggle_expression, remove_expression, or apply_expression_preset, and no stated prerequisites for setting an expression.

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