Skip to main content
Glama

Create media bin

create_media_bin

Scan a folder of media files on the TouchDesigner machine and build a controllable clip bin with crossfade switching for VJing.

Instructions

Point at a folder on the TouchDesigner machine and build a clip BIN inside a new bin COMP: it scans the folder (filtered to the given extensions, capped at max_clips), creates one Movie File In TOP per file, feeds them through a Switch TOP, and ends on a Null TOP. Exposes Index (current clip), Next / Prev (pulse, wrapping), and Crossfade (seconds) controls — switching clips crossfades by ramping the Switch's fractional index (0s = hard cut). The folder is read inside TD (not the MCP server). If the folder is empty or missing you get an empty, pointable bin instead of an error. Use create_video_player for a hand-listed playlist; use create_media_bin to ingest a whole folder for clip-based VJing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoName for the bin COMP.media_bin
parent_pathNoWhere to build it./project1
folderYesFolder on the TD machine to scan for clips/stills.
extensionsNoFile extensions to include (lower-case, no dot).
max_clipsNoCap how many files become Movie File In TOPs.
crossfadeNoCrossfade seconds when switching clips (0 = hard cut).
resolutionNoOutput resolution [w,h].
Behavior5/5

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

Discloses non-obvious behaviors: empty/missing folder returns a working bin without errors, crossfade behavior via ramping Switch index, and that folder reading occurs inside TD. Adds significant value beyond 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?

Single paragraph is well-structured, front-loading the core purpose, then detailing behavior and differentiation, with no unnecessary verbiage.

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?

Provides complete context for a 7-parameter tool with no output schema: main function, edge cases (empty folder), exposed controls, and rubric for selecting between sibling tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Adds meaningful context to all parameters, such as folder read location, extension format, max_clips cap, and crossfade control, complementing the already detailed 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's function: scanning a folder to build a clip bin with Movie File In TOPs, a Switch, and a Null TOP, and distinguishes it from create_video_player for playlist-based use.

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

Usage Guidelines5/5

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

Explicitly contrasts with create_video_player, directing agents to use create_media_bin for folder ingestion and VJing, making the choice 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