Skip to main content
Glama

Create layer stack (N-layer compositor)

create_layer_stack

Build a multi-layer compositor with per-layer blend modes and opacity controls for VJ-style visuals in TouchDesigner.

Instructions

Build a VJ-style N-layer compositor: stack 2–8 source TOPs and composite them bottom-up, each layer with its own blend mode (over/add/multiply/screen/difference/lighten/darken) and opacity. Each layer is a Select TOP (or a built-in test source when omitted) → a Level TOP carrying opacity; layers above the base each get their own 2-input Composite TOP so blend modes are per-layer. Exposes a live control strip — per layer: Opacity (0–1), Blend (menu), Mute, Solo — and ends on a Null ready for post-processing or setup_output. Pass layers (bottom-first) for an explicit stack, or omit it to build count empty test layers. Returns a summary plus a JSON block with the container path, per-layer node paths, the output Null, exposed controls, node errors, warnings, and an inline preview image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoName for the compositor COMP.layer_stack
parent_pathNoWhere to build it./project1
layersNoExplicit layer stack (bottom-first). Omit to build `count` empty test layers.
countNoNumber of layers when `layers` is omitted.
resolutionNoOutput resolution [w,h].
Behavior4/5

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

The description discloses that the tool builds nodes (Select, Level, Composite TOPs) and a control strip, and returns a summary with inline preview. This adds context beyond annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true) about the non-destructive creation behavior and the return format. However, it could mention prerequisites or side effects.

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?

The description is efficiently structured: front-loaded with purpose and key features, then detailed explanation of internal structure and return value. It is verbose but every sentence adds value, fitting the tool's complexity.

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?

The description fully explains the tool's behavior: parameter usage, internal network nodes, control strip, and return value (summary JSON with paths, errors, preview). No gaps remain given the schema richness and absence of output schema.

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 coverage is 100%, so baseline 3. The description adds meaningful usage guidance: 'Pass layers (bottom-first) for explicit stack, or omit to build count empty test layers' and explains the internal architecture (Select → Level → Composite). This clarifies the relationship between layers and count parameters.

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 clearly states 'Build a VJ-style N-layer compositor' with specific verb and resource, and details the compositing mechanism (stack 2–8 source TOPs, per-layer blend modes and opacity). It distinguishes from siblings like create_layer_mixer by emphasizing the multi-layer compositing with individual blend modes.

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?

The description implies usage for VJ-style compositing with multiple layers but does not explicitly state when to use this tool versus alternatives (e.g., create_layer_mixer). No when-not-to-use guidance or alternative comparisons are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Pantani/tdmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server