Skip to main content
Glama

ae_add_expression

Add JavaScript-like expressions to After Effects layer properties (e.g., Position, Opacity) by specifying composition, layer, and property path. Enables dynamic animations without manual keyframes.

Instructions

Add an expression to a layer property

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
comp_nameYesComposition name
expressionYesThe expression code (JavaScript-like ExtendScript expression)
layer_nameYesLayer name
property_pathYesProperty path (e.g. 'Transform.Position', 'Transform.Opacity')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not disclose whether adding an expression overwrites an existing one, what happens to keyframes on the property, whether invalid property paths or invalid ExtendScript produce errors, or whether the operation is reversible.

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?

The description is a single short sentence that front-loads the operation and contains no filler or redundant restatement of the schema. It is appropriately concise for a simple tool.

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

Completeness2/5

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

For a mutating tool with no annotations and no output schema, this description is too sparse. It omits behavioral outcomes and error conditions, leaving the agent to guess what happens to existing expressions or how success is indicated.

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?

The input schema covers 100% of the parameters with useful descriptions, including examples for property_path. The description itself adds no parameter-level meaning beyond the schema, so it meets the baseline but does not exceed it.

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 the verb 'Add' and the resource 'an expression to a layer property', making the operation unambiguous. It is clear but does not explicitly differentiate itself from ae_set_layer_property or ae_remove_expression by naming them or explaining when expression-specific editing is appropriate.

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

Usage Guidelines2/5

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

No guidance is given on when to prefer this tool over ae_set_layer_property, ae_run_script, or ae_remove_expression. There are no prerequisites, conditions, or exclusions mentioned; intended use is only implied by the tool name and sibling list.

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