Skip to main content
Glama

Apply GLSL TOP mapping

apply_glsl_top_mapping

Construct a GLSL TOP network from a pre-translated mapping containing fragment, uniforms, channels, and controls for Shadertoy, ISF, or custom shaders.

Instructions

Build a self-contained GLSL TOP network from a pre-translated mapping (fragment + uniforms + channels + controls). Foundation primitive used by Shadertoy and ISF importers; also reachable directly for power users with a hand-translated fragment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mappingYesPre-built mapping (fragment + uniforms + channels + controls + provenance).
parent_pathNoParent COMP path where the system container is created./project1
nameNoName of the container COMP created under parent_path.glsl_mapping
resolutionNoGLSL TOP output resolution [width, height].
pixel_formatNoGLSL TOP pixel format.rgba8
expose_controlsNoIf false, skip the control panel pass.
capture_previewNoCapture a preview image of the output TOP after the build.
Behavior3/5

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

Annotations indicate the tool is not read-only, not destructive, and open-world. The description adds that it 'builds' a network, implying creation rather than modification. However, it does not elaborate on side effects (e.g., whether it overwrites existing containers at the same path) or permissions needed, leaving some ambiguity.

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 two sentences: the first states the core action and composition, the second adds usage context. It is efficiently front-loaded with no extraneous information, earning a high mark for conciseness.

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

Completeness3/5

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

Given the tool's complexity (7 parameters, nested mapping object) and no output schema, the description provides adequate high-level purpose and usage but does not clarify what the tool returns (e.g., a path to the created container) or the overall workflow. It is minimally sufficient but could be more helpful.

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?

The input schema has 100% description coverage, providing detailed explanations for all parameters. The description adds high-level context (pre-translated mapping, usage in importers) but does not provide additional parameter-level semantics beyond what the schema already offers. Baseline 3 is appropriate.

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 self-contained GLSL TOP network from a pre-translated mapping. It distinguishes itself from higher-level import tools (e.g., import_shadertoy) by noting it's a foundation primitive used by those importers, and also available for power users with hand-translated fragments.

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?

The description provides clear context: it's a low-level primitive intended for use by Shadertoy/ISF importers or directly by power users with pre-translated fragments. It implies that higher-level tools like import_shadertoy are alternatives when the mapping is not already prepared, but does not explicitly list exclusions or scenarios to avoid.

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