Skip to main content
Glama

Apply GLSL TOP mapping

apply_glsl_top_mapping

Turns a pre-translated shader mapping into a working GLSL TOP network, wiring uniforms, channels, and controls for immediate use.

Instructions

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

Input Schema

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

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true), the description discloses two critical behavioral prerequisites: TDMCP_RAW_PYTHON=on and TDMCP_BRIDGE_ALLOW_EXEC=1. This adds valuable execution-security context not present in annotations. It does not contradict the annotations.

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?

Three sentences, front-loaded with the core action, with no wasted words. It efficiently conveys the operation, requirements, and context.

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?

For a build tool with no output schema, the description covers the essential operational context: what it builds, what inputs it needs, and environment requirements. It omits return value details and side effects on existing network state, but given the medium complexity, it is reasonably complete.

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 description coverage is 100%, so the input schema already explains all parameters. The description adds the qualifier 'pre-translated' and outlines the mapping contents (fragment + uniforms + channels + controls), but this adds marginal value over the schema's 'Pre-built mapping' description. 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?

The description uses a specific verb ('Build') and resource ('self-contained GLSL TOP network') with a precise input ('pre-translated mapping'), making the tool's function immediately clear. It also distinguishes itself from sibling import tools by identifying as the 'foundation primitive' used by Shadertoy and ISF importers.

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 is the underlying primitive for Shadertoy/ISF importers and is intended for power users with hand-translated fragments. It implies when to use directly versus through importers, though it does not explicitly name alternatives or exclude other tools.

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