Skip to main content
Glama

Create displacement warp

create_displacement_warp

Build a displacement-warp stage that distorts a source using noise, audio, or a custom map, with live controls for amount and speed.

Instructions

Build a displacement-warp stage over a source — the 'heat-haze, liquid, audio-pushed pixels' tool for VJ sets. A Displace TOP warps the source image using a second image as a displacement map; the map is driven by one of three modulators: 'noise' (animated Perlin noise — smooth, continuous warp), 'second_top' (your own displacement map via a Select TOP), or 'audio' (audio FFT spectrum converted to a texture via CHOP-to-TOP, so the warp reacts to the music). Without a source the chain builds over a Ramp TOP test gradient and previews standalone. The Displace TOP's weight (displaceweight1) maps to the amount parameter; the Noise TOP translate speed maps to speed. Amount and Speed are exposed as live knobs. Output is a Null TOP. Returns a summary plus JSON with the container path, created node paths, controls, errors, warnings, and an inline preview image. Pairs with extract_audio_features for reactive warp and apply_post_processing to chain with other effects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoName of the container COMP created under parent_path.displacement_warp
speedNo(noise mode) Animation speed of the noise modulator. Scales the time-driven translate on the Noise TOP — higher values produce faster, more turbulent warp.
amountNoDisplacement strength — maps to the Displace TOP's `displaceweight1` parameter. 0 = no warp; 1 = full-range warp (can tear); 0.05–0.3 are typical VJ values.
sourceNoAbsolute path of a TOP to warp (pulled in via a Select TOP so it can live anywhere in the network). Omit to use a built-in Ramp TOP test source so the chain builds and previews standalone.
modulatorNoWhat drives the displacement map. 'noise' (default): an animated Noise TOP whose translate and period are driven by time — produces smooth heat-haze / liquid warp. 'second_top': a Select TOP pointing at `modulator_top` (your own displacement map). 'audio': a CHOP-to-TOP conversion of audio FFT energy — pixels push in proportion to the audio spectrum. The audio modulator requires an audio device or audio file to be active in the project; without one it runs silently at zero energy.noise
resolutionNoOutput resolution [width, height] in pixels.
parent_pathNoParent COMP path the self-contained displacement warp container is created inside./project1
modulator_topNo(second_top mode only) Absolute path of a TOP to use as the displacement map. Required when modulator is 'second_top'; ignored otherwise.
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false), the description discloses substantial behavioral details: how the Displace TOP maps to parameters, that Amount and Speed become live knobs, that output is a Null TOP, and that audio mode requires an active audio device/file. It also details the JSON return payload including container path, created nodes, errors, warnings, and preview. This far exceeds annotation coverage.

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 compact yet information-dense, leading with the core purpose and then layering implementation details, modulator explanations, fallback behavior, and return format. Each sentence earns its place, and the structure is logical (what→how→modes→fallback→mapping→returns→pairings).

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?

Given the tool's complexity (8 parameters, no output schema), the description covers all critical aspects: the node graph built, each modulator's behavior and prerequisites, the standalone source fallback, parameter mappings, exposed controls, return payload, and recommended companion tools. Nothing essential is left unspecified.

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?

With 100% schema description coverage, the baseline is 3. The tool description adds valuable semantic context by explaining the parameter mappings (amount → displaceweight1, speed → Noise translate speed), the meaning of the three modulator modes, and that the source is pulled via a Select TOP. This enriches the schema descriptions without duplicating them, justifying a 4.

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 'Build a displacement-warp stage over a source' and specifies it as the 'heat-haze, liquid, audio-pushed pixels' tool for VJ sets. It clearly differentiates this from siblings by naming the three modulator modes (noise, second_top, audio) and the source fallback, making its purpose unmistakable.

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

Usage Guidelines4/5

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

Provides clear context for when to use each modulator: 'noise' for smooth continuous warp, 'second_top' for a custom displacement map, and 'audio' for music-reactive effects. It also notes that omitting a source builds a standalone preview over a Ramp TOP. However, it does not explicitly contrast with alternative warp tools or state when not to use this tool, so it stops short of a 5.

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/lucasmaher-hash/touch-designer-mcp'

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