Skip to main content
Glama

check_expression_errors

Scan a comp or the whole After Effects project for broken expressions that failed to evaluate and were auto-disabled, returning each layer, property, error, and enabled state so you can fix them.

Instructions

Sweep for BROKEN expressions — every property whose expression failed to evaluate (non-empty expressionError; AE auto-disables these). Pass comp to scan one comp, omit to scan the whole project. Returns { errorCount, errors:[{comp, layer, prop, error, enabled}] }. set_expression already reports an error for the property it just set; use this to sweep everything or re-verify after edits.

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": "check_expression_errors"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoomit to scan the whole project; accepts name, id, or { id: N }
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses that AE auto-disables these failed expressions (relevant to the returned `enabled` field) and gives the literal return shape. It stops short of stating scan cost/behavior on a whole-project sweep or whether the scan is strictly read-only, which the absence of annotations leaves implicit.

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?

Front-loaded with the purpose and the failure predicate, then scoping, then return shape, then sibling disambiguation. Every sentence carries distinct information and there is no filler.

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

Completeness4/5

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

No output schema exists, and the description compensates by inlining the exact return object, which is exactly the right call. The remaining gap is minor: whole-project sweeping is presented as a simple omit, with no note on relative cost or volume when the project is large.

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 coverage is 100%, so both parameters are already documented with their accepted forms. The description reinforces the key comp semantic (omit = whole project) but adds no syntax or constraints beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource ('Sweep for BROKEN expressions — every property whose expression failed to evaluate') and pins the exact predicate: non-empty expressionError. It also explicitly distinguishes itself from set_expression, so an agent can tell the two apart without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use routing: pass comp to scan one comp, omit to scan the whole project, and use set_expression for the single property it just set. The clause 'use this to sweep everything or re-verify after edits' names both the batch-audit and post-edit verification scenarios, leaving nothing to inference.

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