Skip to main content
Glama

ae_expression

Set, clear, validate, and autofix After Effects expressions with immediate evaluation and error checking, including cross-layer property links.

Instructions

Manage AE expressions with immediate evaluation & error checking. Actions: set (raw expression or cross-layer link), clear, validate (scan comp or whole project), autofix (app.project.autoFixExpressions).

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": {
      "action": "<action>"
    },
    "name": "ae_expression"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
compNo
fromNo
linkNoAuto-build cross-layer expression link.
layerNo
actionYes
enabledNo
propertyNo
expressionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.1/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 burden. It does disclose useful traits beyond the schema: that expressions are evaluated immediately with error checking, and that autofix delegates to app.project.autoFixExpressions. It does not say whether set/clear/autofix mutate the project, whether changes are undoable, or what happens when validation finds errors.

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?

Two compact sentences with the core capability front-loaded and the action list used as a scannable index. Dense but free of filler; a slightly clearer separation between the action glosses would improve it.

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 9-parameter, nested-object, mutation-capable tool with no annotations and no output schema, the description is thin. It omits which parameters pair with which action and gives no indication of return values or error reporting, leaving the agent to guess at invocation details.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 11% across 9 parameters, so the description needs to compensate and largely does not. It adds real meaning for the "set" modes (raw expression string vs. cross-layer link object), but leaves to, from, layer, property, enabled, and the comp-vs-project scoping of validate unexplained in both schema and description.

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 ("Manage AE expressions") and enumerates the four supported actions with a short gloss for each. It does not differentiate itself from plausible siblings such as ae_property or ae_eval_jsx, which also touch expression/JS evaluation, so it stops short of a 5.

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?

The action list with parentheticals ("set (raw expression or cross-layer link)", "validate (scan comp or whole project)") implies which action to pick for a given intent. However, there is no explicit when-to-use vs. when-not guidance, no mention of prerequisites, and no routing to alternatives for related tasks.

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