Skip to main content
Glama

Find expression errors

find_expression_errors
Read-only

Scan a composition or whole project to list properties with broken expressions, including paths, error messages, and expression snippets.

Instructions

List every property whose expression currently errors, in one comp or the whole project: comp, layer, property path, AE's error text and the expression (first 200 chars). Expressions are evaluated at the comp's current time. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to scan every composition in the project.
limitNoMax errors to return (default 100).
maxDepthNoProperty-tree depth to walk (default 12).
maxSecondsNoTime budget in seconds (default 30).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover readOnly, non-destructive and closed-world, yet the description adds real behavioral detail: expressions are evaluated at the comp's current time (so results are time-dependent) and expression text is truncated to the first 200 characters. Minor gaps remain on ordering and what happens when the limit cuts the result set.

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?

Front-loaded with the scope-bearing clause and the returned fields in one tight sentence, then the time-evaluation caveat. The trailing 'Read-only.' largely restates the readOnlyHint annotation and is the one bit of low-value text.

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?

With no output schema, describing the per-error fields (comp, layer, property path, error text, expression snippet) is exactly the right compensation. Scope, truncation and time-of-evaluation are all covered; only ordering/truncation behavior under the limit is unstated.

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 each parameter is already documented, and the description reinforces only the comp-omission semantics. It adds nothing about maxDepth or maxSeconds and does not explain how limit interacts with the reported results, so it stays at the baseline.

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 ('List every property whose expression currently errors') plus explicit scope ('one comp or the whole project'), and enumerates the returned fields. This clearly separates it from siblings like find_missing_footage or find_comp_usage, which target different resources.

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?

Gives clear context for use: scan a single comp or omit the comp to sweep the project, and notes that evaluation happens at the comp's current time. It does not name alternatives such as enable_expression or set_expression for fixing errors, but the diagnostic framing makes its role unambiguous.

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