Skip to main content
Glama

Layer switches

set_layer_switches

Toggle layer switches in After Effects such as visibility, solo, lock, 3D, motion blur, effects, and collapse transformations on selected, named, or all layers, changing only the switches you specify.

Instructions

Set any layer switches on one or more layers: visibility (enabled), solo, shy, locked, 3D, motion blur, adjustment, guide, collapse transformations / continuously rasterize, effects on/off (fx switch), audio, preserve transparency, quality, sampling, frame blending and auto-orient. Only the given switches change. Locked layers are unlocked temporarily.

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

Input Schema

NameRequiredDescriptionDefault
shyNo
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
soloNo
layersNoLayers: array of layer refs, or 'selected' (default) or 'all'.
lockedNo
threeDNo3D layer switch.
enabledNoVideo (eye) switch.
qualityNo
autoOrientNo
guideLayerNo
motionBlurNo
audioEnabledNoAudio (speaker) switch.
effectsActiveNofx switch: effects on/off.
adjustmentLayerNo
samplingQualityNo
frameBlendingTypeNo
preserveTransparencyNo
collapseTransformationNoCollapse transformations (precomps) / continuously rasterize (vectors).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare title, readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile is given but the mutation semantics are not. The description adds two genuinely useful facts: 'Only the given switches change' (partial-update, unspecified switches are left untouched) and 'Locked layers are unlocked temporarily' (a side effect that persists state changes to locked layers). It still doesn't state return values or what happens if a layer reference is invalid.

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?

Three tight sentences with the core action front-loaded, then the switch enumeration, then the two behavioral caveats. Every clause corresponds to a real parameter or behavior; nothing is filler. A bulleted list might scan marginally better for 18 switches, but the prose is not wasteful.

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 an 18-parameter mutation tool with no output schema, the definition covers all switch parameters and discloses the two most important behaviors (partial update, temporary unlock). Missing pieces are target-scope defaults and the enum value semantics, which an agent would have to read out of the schema instead.

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 description coverage is only 39%, so the description must carry weight — and it mostly does, mapping prose names to opaque parameter keys such as visibility to 'enabled', effects to 'fx switch', and audio to 'audioEnabled', plus naming quality, sampling, frame blending, and auto-orient. Gaps remain for the 'comp' and 'layers' targeting parameters and for the meanings of the four enum value sets, which the description does not elaborate.

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 opens with a specific verb and resource ('Set any layer switches on one or more layers') and then enumerates the exact switch families (visibility, solo, shy, locked, 3D, fx, audio, collapse transformations, etc.). That enumeration makes it clearly distinct from siblings like set_layer_label, set_layer_comment, or set_layer_timing, though it never names an alternative explicitly.

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?

Usage is only implied by the purpose: an agent can infer it is the tool for flipping layer switches, and 'one or more layers' hints at batch use. There is no explicit when-to-use vs. when-not guidance, no mention of the default target ('selected' vs 'all'), and no mention of when to prefer the dedicated sibling setters.

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