Skip to main content
Glama

Select layers

select_layers

Select layers in an After Effects composition by name, index, or ID, and optionally deselect all others to isolate the layers needed for editing.

Instructions

Select layers in a composition (other layers are deselected unless deselectOthers=false).

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

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'.
deselectOthersNoDefault true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false with destructiveHint=false, so the agent knows this mutates state but not destructively. The description's real contribution is disclosing that other layers are deselected unless deselectOthers=false, a side effect the annotations do not convey. Beyond that it says nothing about failure modes (nonexistent layer name, locked layers) or what the selection state looks like on return.

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?

A single sentence with no waste, and the behavioral caveat is placed inline where it matters rather than buried. Nothing is redundant enough to penalize, though the sentence is too terse to be exemplary.

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 all three parameters optional, 100% schema coverage, and annotations covering the mutation profile, the description supplies the one thing structured fields omit: the default replace-selection side effect. It is thin on cross-tool routing, but for a tool this simple nothing critical is missing.

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%, and the schema already documents the 'selected'/'all' default for layers and 'Default true' for deselectOthers. The description only restates the deselectOthers default in prose, adding no syntax or format detail beyond the schema, so the baseline 3 applies.

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 and resource ('Select layers in a composition') and scopes it to a composition, which separates it from composition-level siblings. It does not differentiate against near-neighbors such as select_items or deselect_all_layers, which an agent might reasonably confuse it with.

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: the description states the selection side effect, from which an agent can infer a replace-selection use case. There is no explicit when-to-use, no statement of when to prefer deselect_all_layers or select_items, and no prerequisites such as needing a layer to exist first.

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