Skip to main content
Glama

TD Sample (live)

td_sample

Sample a single value from a CHOP channel or TOP pixel in a running TouchDesigner instance to verify concrete output values without rendering a full frame.

Instructions

Sample a single value from an operator in a running TouchDesigner instance (live control via the td_mcp bridge). kind='chop_channel' reads a CHOP channel via CHOP.chan(name); kind='top_pixel' reads a pixel via TOP.sample(u, v). Use this to verify concrete output values without rendering a full frame.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uNoFor kind='top_pixel': horizontal sample coordinate (0..1 normalized, or a pixel index).
vNoFor kind='top_pixel': vertical sample coordinate (0..1 normalized, or a pixel index).
kindYesWhat to sample: 'chop_channel' (CHOP.chan) or 'top_pixel' (TOP.sample).
pathYesFull path of the operator to sample, e.g. '/td_mcp/sandbox/noise1'.
channelNoFor kind='chop_channel': the channel name to read (e.g. 'chan1'). Required for CHOPs.
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It explains that the tool operates via the td_mcp bridge and samples values, but does not disclose potential errors, side effects, or whether it is strictly read-only (though sampling implies read-only). Additional behavioral context (e.g., what happens if the operator path is invalid) would improve transparency.

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 long, front-loaded with the primary purpose, and every sentence adds value. It is concise and well-structured, with no wasted words.

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 5 parameters and no output schema, the description covers the main functionality and each parameter's role. It mentions the return type is a 'single value' but does not specify whether it is a number, string, or other. This minor gap is offset by the clarity of the sampling methods.

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?

Schema description coverage is 100%, so each parameter already has a description. The tool's description adds value by linking the kind parameter to the underlying TouchDesigner methods (CHOP.chan and TOP.sample) and clarifying the context for u, v, and channel. This goes beyond the schema's standalone 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 that the tool samples a single value from a TouchDesigner operator, with two specific sampling kinds (chop_channel and top_pixel). This distinguishes it from siblings like get_operator or compare_operators, which do not offer live sampling.

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 explicitly says to use the tool 'to verify concrete output values without rendering a full frame' and explains the two kinds with examples. It does not explicitly state when not to use it, but the use case is clear and alternatives are not needed given the tool's specificity.

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/bottobot/touchdesigner-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server