Skip to main content
Glama

Add item to comp

add_layer_from_item

Adds an imported footage, image, audio, solid, or precomp item to a composition as a new layer, with optional start time, position, duration, and stack index.

Instructions

Add a project item (imported footage, image, audio, solid or another composition = precomp) to a composition as a new layer.

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": {
      "item": "<item>"
    },
    "name": "add_layer_from_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
itemYesProject item name, 'Folder/Name' path, or item id.
nameNoRename the new layer.
timeNoStart time of the layer in the comp (default 0).
indexNoLayer stack index to place the new layer at (1 = top). Default: top.
durationNoDuration for still images (default: AE's still duration).
positionNoPosition [x, y] (or [x, y, z]) in comp pixels. Default: comp center.

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 already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, and the description is consistent with that profile by describing non-destructive layer creation. Beyond that it adds little: no mention of what happens when the item cannot be found, whether the new layer index is returned, or how precomp items are linked. With the safety profile already covered by annotations, this is an adequate 3.

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 front-loaded sentence with no wasted preamble; the verb and outcome come first and the item-type enumeration sits in a parenthetical where it does not obstruct reading. Slightly denser than necessary but every clause carries information.

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

Completeness3/5

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

For a 7-parameter mutation tool with no output schema, the description covers purpose and item types but omits behavior on failure, whether anything is returned, and how this composes with related tools. The rich schema compensates for most parameter gaps, but an agent still lacks behavioral detail a mutation tool warrants.

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 100%, so the baseline is 3, but the description earns more by naming the concrete item kinds that the 'item' parameter accepts (footage, image, audio, solid, precomp), which the schema does not spell out. It still says nothing about time, index, position, or duration semantics, which remain fully delegated to the schema.

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?

Names a specific verb ('Add') and clearly defines the resource and outcome: a project item becomes a new layer in a composition. The parenthetical enumerating accepted item types (footage, image, audio, solid, precomp) sharpens what 'item' means. It does not distinguish itself from siblings such as add_to_essential_graphics or create_comp_from_footage, so it stops short of a 5.

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 name and the item-type list; there is no explicit statement of when to use this versus alternatives like add_to_essential_graphics, nor any prerequisites or exclusions. An agent can infer the intent but gets no routing 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