Skip to main content
Glama

Create flow abstraction

create_flow_abstraction

Build a two-pass flow abstraction that smooths interiors and extracts crisp ink edges from a source TOP, with adjustable smoothing strength and edge gain.

Instructions

Build a two-pass Kyprianidis-style flow abstraction: an edge-tangent-flow (ETF) bilateral smoother followed by a flow-based DoG (FDoG) line extractor — oil-painting smooth interiors with crisp coherent ink edges. Creates two glslTOPs + companion textDATs under parent_path, fed by a Select TOP from the source TOP and terminated by a Null TOP. Strength/Edge/Iterations are exposed as live parent-par-bound uniforms; blur radius, sigmas and tau are baked in at build time. Iterations boosts effective ETF strength in-shader (single-input pass, no ping-pong feedback).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
parent_pathYesParent COMP path to create the two GLSL TOPs in.
nameNoBase name; nodes become <name>_etf, <name>_fdog, <name>_out, plus *_frag textDATs.flow_abs
sourceYesAbsolute path of the input TOP to abstract (e.g. '/project1/movie1'). Pulled in via a Select TOP so cross-container wiring is safe.
strengthNoBilateral smoothing strength (0=passthrough, 1=full ETF blur).
edgeNoFDoG edge gain — multiplier on the DoG response before thresholding.
iterationsNoNumber of ETF passes; higher values boost ETF strength via an in-shader uniform. No external feedback loop is created in this version.
blur_radiusNoETF bilateral kernel half-width in texels along the tangent (kernel ≈ 2*radius+1).
sigma_eNoFDoG inner Gaussian sigma (texels).
sigma_rNoFDoG outer Gaussian sigma — usually ≈ 1.6 * sigma_e.
tauNoFDoG center-surround weight.
resolutionNoOutput res; 'input' inherits.input
Behavior4/5

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

The description discloses that the tool creates nodes, exposes Strength/Edge/Iterations as live uniform parameters while baking others like blur radius and sigmas, and notes that iterations are in-shader without a feedback loop. This goes beyond annotations, but it misses potential prerequisites (e.g., does the parent_path need to exist? is source validated?).

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 tightly written in 4-5 sentences, front-loading the main purpose and algorithm, then detailing node creation and parameter behavior. Every sentence adds value without redundancy or verbosity.

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

Completeness4/5

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

Given the complexity (11 parameters, no output schema), the description explains the algorithm, nodes created, parameter roles (uniform vs baked), and mentions use of Select TOP and Null TOP. It is complete for a creation tool, though it could mention potential side effects or prerequisites for completeness.

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 coverage, the baseline is 3, but the description adds meaningful context: it identifies which parameters are dynamic uniforms versus baked at build time, and clarifies the behavior of iterations (in-shader, no ping-pong). This enriches the schema descriptions.

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 the tool builds a two-pass Kyprianidis-style flow abstraction using ETF and FDoG, specifying the exact nodes created (two glslTOPs, textDATs, Select TOP, Null TOP). This is a specific verb+resource that distinguishes it from sibling tools, many of which are generic 'create_*' functions.

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 generating a specific stylized effect (oil-painting interiors with ink edges) but does not explicitly state when to use this tool versus alternatives, nor does it mention when not to use it or provide exclusions. The context is implicit, but no direct guidance is given.

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