Skip to main content
Glama

ae_layer_set_parent_and_matte

Set or clear a layer's parent and track matte in an After Effects comp using layer IDs or indices, so you can link motion and control visibility without manual timeline edits.

Instructions

Atur Parenting (via layerId/layerIndex) dan Track Matte layer

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

Input Schema

NameRequiredDescriptionDefault
compIdNoID numerik CompItem (opsional jika comp aktif)
layerIdNoID permanen layer — direkomendasikan agar kebal pergeseran indeks
compNameNoNama CompItem (opsional)
withJumpNo
layerNameNoNama exact layer (opsional)
layerIndexNoIndeks 1-based layer (opsional jika layerId/layerName diberikan)
parentLayerIdNo
trackMatteTypeNo
parentLayerIndexNo
trackMatteLayerIndexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does not disclose that this is a mutating operation, what permissions or comp state it requires, whether passing null clears an existing parent/matte, or what happens on invalid parent assignment. With zero annotation coverage this is a significant gap for a state-changing tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short clause with no filler, and the core action is front-loaded. However, the brevity is under-specification rather than efficiency given a 10-parameter schema, so it earns only a middling score.

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?

For a 10-parameter mutation tool with no annotations and no output schema, the description is far too thin. An agent would have to read the schema and guess at track matte type semantics and null-clearing behavior before it could invoke this safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 10 parameters and only 50% schema description coverage, the description must compensate and largely does not. It mentions layerId/layerIndex as the addressing mechanism, but says nothing about parentLayerId vs parentLayerIndex precedence, how null clears a parent, what trackMatteType values are accepted (no enum exists), how trackMatteLayerIndex relates to trackMatteType, or what withJump does.

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?

States a specific verb ("Atur" = set) and two concrete resources: layer parenting and track matte. This combination is distinctive enough to separate it from siblings like ae_layer_set_transform or ae_layer_update_switches. It stops short of naming the target layer's comp context, but the action itself is unambiguous.

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?

No when-to-use guidance, no prerequisites (e.g. parent and child must live in the same comp, cycles are invalid), and no mention of when to prefer this over ae_layer_set_transform or ae_layer_reorder_duplicate_copy. The parenthetical "via layerId/layerIndex" hints at addressing but is not usage guidance.

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