Skip to main content
Glama

Import Shadertoy

import_shadertoy

Convert a Shadertoy URL, ID, or pasted source into a GLSL TOP in TouchDesigner, wiring iChannels and exposing speed/mouse controls for immediate use.

Instructions

Build a GLSL TOP from a Shadertoy URL, ID, or pasted source. Imported shader source requires TDMCP_RAW_PYTHON=on and TDMCP_BRIDGE_ALLOW_EXEC=1. Wires iChannels (defaulting to noise placeholders), exposes Speed (and optional Mouse) controls, and captures a preview. First fetch on macOS may trigger an outgoing-connection permission prompt. Set TDMCP_SHADERTOY_KEY for reliable fetches; paste into raw_source to stay offline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoFull Shadertoy URL: https://www.shadertoy.com/view/<id>.
nameNoshadertoy
channelsNo
shader_idNoShadertoy 6-char ID, e.g. 'XsXXDn'.
raw_sourceNoPasted Shadertoy-style fragment (must contain mainImage). Offline-safe.
resolutionNo
parent_pathNo/project1
pixel_formatNorgba8
capture_previewNo
provenance_overrideNo
expose_mouse_controlNo
expose_speed_controlNo
Behavior5/5

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

The description discloses significant behavioral traits not captured by annotations: it requires specific TDMCP environment variables, may trigger a macOS network permission prompt, benefits from a Shadertoy API key, and offers an offline mode. It also describes default wiring (iChannels noise) and that it captures a preview.

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?

Four sentences, each adding essential information. The main action is front-loaded, followed by requirements, behavior details, and troubleshooting tips. No filler or redundancy.

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?

For a 12-parameter tool with nested objects and no output schema, this description is remarkably complete. It covers network behavior, prerequisites, defaults, platform-specific quirks, and offline workflow. The agent gets enough context to use the tool correctly without needing extra documentation.

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 schema description coverage only at 25%, the description compensates by explaining key parameters: 'channels' (iChannels with noise defaults), 'expose_speed_control', 'expose_mouse_control', 'capture_preview', and 'raw_source' (offline safe). It does not cover every parameter, but the most important ones are addressed.

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 starts with 'Build a GLSL TOP from a Shadertoy URL, ID, or pasted source', which identifies the specific verb (build), the resource (GLSL TOP), and the input source (Shadertoy). This clearly differentiates it from generic shader creation tools like create_glsl_shader.

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 usage context: when the user has a Shadertoy URL/ID/source and wants a GLSL TOP. It also includes prerequisites (env vars) and an offline alternative (paste into raw_source). It does not explicitly name alternatives, but the context is unambiguous.

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