Skip to main content
Glama

Create composition

ae_create_comp

Create an empty composition in the open After Effects project, optionally open it in the viewer, and return its ID for adding layers later.

Instructions

Create a new, empty composition in the open project and (by default) open it in the viewer. Returns the new comp's id, name and settings: pass the id as comp to later calls (names need not be unique). Then add layers with ae_add_layer / ae_add_shape. To copy an existing comp use ae_duplicate_comp, to move existing layers into a new comp ae_precompose (both via ae_call).

Input Schema

NameRequiredDescriptionDefault
nameYesName of the new comp (After Effects allows duplicate names).
openNoOpen in viewer (default true).
widthNoPixels, 4-30000 (default 1920).
folderNoProject folder to put the comp in: id or exact name (default: the project root).
heightNoPixels, 4-30000 (default 1080).
bgColorNoBackground color, "#rrggbb" or [r,g,b].
durationNoSeconds (default 10).
frameRateNoFrames per second, 1-999 (default 30).
pixelAspectNoPixel aspect ratio (default 1, square pixels).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.1.3
    • changedInput schema / properties / bgColor / description
      Previous value: -"Color as \"#rrggbb\" or [r,g,b] (0-1 or 0-255)."New value: +"Background color, \"#rrggbb\" or [r,g,b]."
    • changedInput schema / properties / duration / description
      Previous value: -"Seconds, default 10."New value: +"Seconds (default 10)."
    • changedInput schema / properties / folder / description
      Previous value: -"Project item id (number) or exact name."New value: +"Project folder to put the comp in: id or exact name (default: the project root)."
    • changedInput schema / properties / frameRate / description
      Previous value: -"Default 30."New value: +"Frames per second, 1-999 (default 30)."
    • changedInput schema / properties / height / description
      Previous value: -"Default 1080."New value: +"Pixels, 4-30000 (default 1080)."
    • addedInput schema / properties / name / description
      Added value: +"Name of the new comp (After Effects allows duplicate names)."
    • changedInput schema / properties / pixelAspect / description
      Previous value: -"Default 1."New value: +"Pixel aspect ratio (default 1, square pixels)."
    • changedInput schema / properties / width / description
      Previous value: -"Default 1920."New value: +"Pixels, 4-30000 (default 1920)."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, and destructiveHint=false, so the description does not need to re-establish basic safety. It adds useful context beyond the annotations: the comp is empty, it opens in the viewer by default, names need not be unique, and the returned id should be used in later calls. It does not discuss failure modes or permissions, but with annotations covering the core safety profile this is a strong disclosure.

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

Conciseness5/5

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

The description is three dense sentences with no filler. The core creation behavior is front-loaded, followed by return-value guidance and then the sibling alternatives.

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

Completeness5/5

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

There is no output schema, but the description explains exactly what is returned ('the new comp's id, name and settings') and how to use the id in subsequent calls. It also covers defaults, follow-up layer creation, and alternative tools for copying or precomposing, leaving no essential gap for correctly invoking or chaining this tool.

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%, so the input schema already explains every parameter including defaults and ranges. The description adds only the name-non-uniqueness caveat and the id-return workflow, and does not elaborate on dimensions, duration, frame rate, or folder targeting beyond what the schema provides. The baseline of 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb and resource: 'Create a new, empty composition in the open project', and immediately states the default viewer behavior. It clearly distinguishes creation from copying an existing comp or precomposing layers by naming ae_duplicate_comp and ae_precompose as alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit sequencing guidance ('Then add layers with ae_add_layer / ae_add_shape') and states when to use the alternatives: ae_duplicate_comp for copying an existing comp and ae_precompose for moving existing layers into a new comp. The default behavior and follow-up path leave little ambiguity about when and how to use this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.