Skip to main content
Glama
After Effects MCP for Antigravity

After Effects MCP for Antigravity

by okaybhargav

set_layer_enabled

Toggle a layer's visibility in an After Effects composition by enabling or disabling it, so you can show or hide specific layers when needed.

Instructions

Enables or disables (shows/hides) a layer in the composition.

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": {
      "enabled": "<enabled>"
    },
    "name": "set_layer_enabled"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledYestrue to enable (show), false to disable (hide).
layer_nameNoName of the layer.
layer_indexNo1-based index of the layer.
composition_idNoOptional composition item ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and only states the mutation outcome. It omits important context such as whether changes are immediate, what layer/composition is targeted by default, permission or selection requirements, and how errors are handled.

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?

The description is a single front-loaded sentence with no unnecessary wording. It is appropriately sized and immediately communicates the operation.

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

Completeness3/5

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

For a simple four-parameter setter with complete schema coverage, the description covers the core purpose and visible effect. However, without annotations or output schema, it should ideally clarify how the target layer/composition is selected and what defaults apply when optional targeting parameters are omitted.

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 100%, so the input schema already documents enabled, layer_name, layer_index, and composition_id. The description adds no parameter-level meaning beyond what the schema provides, which meets the baseline for high schema coverage.

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 clearly states a specific verb (enables/disables) and resource (a layer in the composition), and parenthetically clarifies the visible effect as show/hide. It is distinguishable from adjacent layer-property setters by focusing on enabled state, though it does not explicitly differentiate from siblings.

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

Usage Guidelines2/5

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

The description gives no explicit when-to-use guidance, prerequisites, or alternatives. It implies the basic operation but does not explain when this tool should be chosen over other layer-state tools or what context is required.

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