Skip to main content
Glama

parent_layers

Set or change the parent of one or more child layers, or clear parenting by passing null. Target layers by name, index, or ID in a specific After Effects comp.

Instructions

Set parent of one or more child layers. Pass parent=null to unparent.

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": {
      "children": "<children>"
    },
    "name": "parent_layers"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp.
parentNo
childrenYesOne or many layers (each: name, 1-based index, or { id: N }). If omitted, uses currently selected layers.
instanceNoTarget a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden for a mutation tool. Beyond the useful "parent=null to unparent" note, it says nothing about whether transforms are preserved, what happens on cyclic/self-parenting, permission prerequisites, or error behavior.

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?

Two short sentences, front-loaded with the action and followed by the key special case. The null-parent sentence partially duplicates what the schema's null branch shows, but it is worth stating for discoverability.

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

Completeness2/5

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

The tool has four parameters (including multi-instance targeting), no annotations, and no output schema, yet the description is a single-line summary. It does not explain the comp/instance scoping, what happens to existing parents, or the effect on child layer transforms, leaving the agent to guess.

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 75%, so the schema already documents name/index/{id} addressing and the instance targeting. The description only restates that multiple children are accepted and that a null parent unparents, adding little beyond what the schema's oneOf-of-null already conveys. 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 gives a specific verb and resource ("Set parent of one or more child layers") and is unambiguous about the operation. It is clear enough to distinguish from the sibling layer tools (align, distribute, rename, sequence), though it does not name any of them.

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 agent must infer that this is the tool to call when re-parenting layers. There is no explicit when-to-use or when-not-to-use guidance, no mention of prerequisites, and no alternative named for related hierarchy operations.

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