Skip to main content
Glama

precompose

Combine specified layers into a new composition, moving all attributes by default, to group and organize complex After Effects work.

Instructions

Precompose the given layers into a new comp. moveAllAttributes defaults true.

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": {
      "layers": "<layers>"
    },
    "name": "precompose"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp.
nameNo
layersYesOne 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.
moveAllAttributesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.7/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, yet it does not disclose what the operation destroys or changes: whether the source layers are replaced by a precomp layer in the original timeline, what the new comp is named by default, or what moveAllAttributes actually moves (effects, masks, transforms). The one behavioral note given, moveAllAttributes defaulting to true, merely restates the schema default.

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, with no filler. It is efficient but so terse that the brevity reflects under-specification rather than disciplined editing.

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?

A five-parameter mutation tool with no annotations and no output schema needs the description to explain side effects and defaults; instead it covers only the default of one optional flag. An agent cannot predict the resulting project structure or the fate of the original layers from this text.

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?

Schema description coverage is 60% and the description adds no meaning beyond it — 'given layers' and the moveAllAttributes default are already documented in the schema. The comp target, new comp name, and instance targeting parameters get no clarification in the description.

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 (precompose) and resource (the given layers into a new comp), which is enough to separate it from the add_* sibling tools that create layers rather than nest them. It does not explicitly name or contrast with any alternative, so it stops short of full differentiation.

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?

There is no guidance on when to precompose versus using other grouping/nesting workflows, no prerequisites (e.g. layers must be in the same comp), and no mention of the consumer of the resulting comp. The only implied usage is 'given layers', which the agent must infer from the schema's default-to-selection behavior.

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