Skip to main content
Glama

Set expression on many layers

set_expressions_bulk

Apply the same expression to the same property path across many After Effects layers, with per-layer error results so one failing layer does not stop the rest.

Instructions

Put the same expression on the same property path across many layers. Per-layer results include expression errors; one failing layer does not stop the rest.

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": {
      "property": "<property>",
      "expression": "<expression>"
    },
    "name": "set_expressions_bulk"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
layersNoLayers: array of layer refs, or 'selected' (default) or 'all'.
enabledNo
propertyYesProperty path, '/'-separated, by display name, matchName or 1-based index. Shortcuts: 'Position', 'Scale', 'Rotation', 'Opacity', 'Anchor Point', 'Source Text', 'Time Remap', 'Audio Levels'. Examples: 'Transform/Position', 'Effects/Gaussian Blur/Blurriness', 'Contents/Rectangle 1/Fill 1/Color', 'Masks/Mask 1/Mask Feather'.
expressionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, which says nothing about failure behavior. The description adds two genuinely useful traits beyond that: results are per-layer and include expression errors, and a single failing layer does not abort the batch. It does not state whether existing expressions are overwritten, which is the main remaining behavioral unknown for a mutation.

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?

Two sentences, zero filler, with the operation stated first and the failure-tolerance guarantee second. Nothing is redundant with the title or annotations.

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?

There is no output schema, so the description must speak to return values, and it does so at a high level (per-layer results with expression errors). For a 5-parameter batch mutation with a well-documented schema, that is close to sufficient; only overwrite semantics and the 'enabled' parameter's effect are unaddressed.

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 description coverage is 60%, so the schema already carries most parameter meaning (comp, layers, property path shortcuts and examples). The description contributes one real semantic point — the same property path is applied to every layer — but adds nothing about 'enabled' or the layer-scope values.

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 a specific verb and resource ('Put the same expression on the same property path') and scopes it explicitly to 'across many layers', which separates it from the single-layer set_expression sibling. It stops short of naming that alternative, so routing still requires a small inference from the sibling list.

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?

Bulk-application usage is implied by 'across many layers', but there is no explicit when-to-use versus set_expression, and no guidance on the default layer scope ('selected' per the schema) or when to prefer 'all'. Usage is inferable rather than stated.

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