Skip to main content
Glama

Check expressions

ae_expressions_check
Read-only

Scans After Effects comps or projects for broken or disabled expressions, force-evaluating at in/mid/out times to report expression errors after edits, renames, or imports.

Instructions

Find broken expressions: walks every expression in a comp (or the whole project), forces evaluation at the layer's in/mid/out times and reports expressionError, plus expressions AE has switched off. Setting an expression never fails by itself — run this after writing expressions, renaming comps/layers/effects, or importing. Expressions using sourceRectAtTime/toComp/sampleImage are read but not force-evaluated (doing so from a script can open a blocking modal).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ae_expressions_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoStop after this many expressions (default 2000).
compNoComp name or id; omit to scan every comp.
forceNoForce evaluation before reading errors (default true).
instanceNoAfter Effects instance to address for this call, when several are running (AfterFX.exe -m): an instance id (its AE_MCP_INSTANCE at launch, or the `name` given to instance.start) or the name of the project file it has open. Omit to use this server's default (AE_MCP_INSTANCE, else the single live instance). ae_context and ae_do instance.list show what is live.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, it discloses the evaluation strategy (in/mid/out times), what is reported (expressionError plus AE-disabled expressions), and a critical safety caveat: expressions using sourceRectAtTime/toComp/sampleImage are read but not force-evaluated because that can open a blocking modal. This is exactly the kind of non-obvious behavior an agent cannot infer from structured fields.

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 sentences, zero filler, front-loaded with the core action and purpose before the operational triggers and the caveat. Each sentence adds distinct information.

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 read-only scan with no output schema and full schema description coverage, the description covers what it scans, how it evaluates, what it reports, when to run it, and its known limitation. Nothing an agent needs in order to call it correctly appears to be missing.

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 meaning: 'a comp (or the whole project)' clarifies that omitting comp scans everything, and 'forces evaluation' explains what the force flag actually does. The modal caveat further signals when force should be treated cautiously.

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?

The description names a specific verb and resource: 'Find broken expressions' by walking every expression in a comp or the whole project, forcing evaluation at in/mid/out times, and reporting expressionError plus expressions AE has switched off. This is far more precise than the title 'Check expressions' and lets an agent identify the tool without opening the 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?

It gives concrete triggers: run after writing expressions, renaming comps/layers/effects, or importing, and explains why ('setting an expression never fails by itself'). It does not name an alternative sibling or an explicit when-not, but the scope guidance ('omit to scan every comp') covers the main selection decision.

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