Skip to main content
Glama

Composition structure map

ae_get_comp_map
Read-onlyIdempotent

Map a composition's nested precomps, parenting chains, track mattes, and expression references before editing to understand how it is built. Read-only.

Instructions

Overview of how a composition is built: the tree of nested precomps (with how many times each is used), parenting chains, track mattes, and which layers/comps each expression references. Read-only. Use it to understand an unfamiliar comp before editing; for one comp's settings and layer list use ae_get_comp_info, for the whole project (render queue, missing items, fragile links) ae_project_xray (via ae_call).

Input Schema

NameRequiredDescriptionDefault
compNoComposition: item id (number) or exact name. Omit (or "active") for the active/open composition.
depthNoHow deep to follow nested precomps (default 4).

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnly/idempotent/non-destructive, so the redundant 'Read-only' line adds little; however, the description does disclose the analytical scope of the call (static dependency analysis across precomps, mattes, expressions) which tells the agent what class of information it will get. It stops short of noting cost on heavily nested comps or how depth truncation is reported.

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?

One dense but well-ordered sentence describing outputs, then a short routing sentence. Every clause earns its place; the purpose is front-loaded before the 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?

With no output schema, the description carries the burden of describing return content and does so by enumerating the data categories an agent will receive. Combined with explicit sibling routing and fully documented parameters, nothing needed for correct invocation is missing.

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 coverage is 100% and already documents the comp id/name/'active' semantics and the depth default of 4 with its 1-10 range. The description adds no parameter guidance beyond that, so the baseline 3 applies.

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?

States a specific verb+resource ('Overview of how a composition is built') and enumerates exactly the structures returned: nested precomp tree with usage counts, parenting chains, track mattes, and expression cross-references. This is clearly distinguishable from ae_get_comp_info and ae_project_xray at a glance.

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?

Explicitly says to use it 'to understand an unfamiliar comp before editing' and names both alternatives with their conditions (ae_get_comp_info for one comp's settings/layer list, ae_project_xray for whole-project issues). Routing is fully determined.

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