Skip to main content
Glama

Enable/disable expression

enable_expression

Toggle or set a property's expression on or off in After Effects without deleting it. Omit the enabled flag to switch state—ideal for testing or temporarily disabling animation logic.

Instructions

Enable or disable a property's expression without deleting it. Omit 'enabled' to toggle.

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": {
      "layer": "<layer>",
      "property": "<property>"
    },
    "name": "enable_expression"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
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'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, and 'without deleting it' reinforces that this is a non-destructive state change, which is useful confirmation. Beyond that, the description doesn't say what happens when the target property has no expression (error vs no-op) or whether the resulting state is reported back, so the added behavioral context is modest.

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 short sentences with the core action first and the non-obvious toggle default second. No filler, no restatement of the title.

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?

For a simple four-parameter toggle with no output schema and annotations covering the safety profile, the description covers purpose and the non-obvious default. The only meaningful omission is edge-case behavior when no expression exists on the property.

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 75%, and the one parameter left undescribed in the schema is 'enabled' — the description fills exactly that gap by explaining that omitting it triggers a toggle rather than an error. The 'comp', 'layer', and 'property' parameters are already well documented in the schema, so no further description work is needed there.

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 names a specific verb pair (enable/disable) and the exact resource (a property's expression), and the clause 'without deleting it' implicitly separates it from removal siblings like remove_expression. It stops short of naming an alternative explicitly, but an agent can still tell from the text that this is a state toggle rather than a create/delete/edit.

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?

'Omit \'enabled\' to toggle' gives real guidance for how to invoke the tool in its default mode. However, there is no when-to-use versus set_expression or remove_expression guidance — nothing tells the agent to reach for this tool only when the expression already exists and should be preserved.

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