Skip to main content
Glama

Create object/person detection → parameters

create_detection_reactive

Turn object/person detection into TouchDesigner control channels via WebSocket or ONNX CPU inference, providing presence, count, and bounding boxes as CHOP channels.

Instructions

Turn object/person detection into TouchDesigner control channels — with NO CUDA requirement. Two backends: 'websocket' subscribes to an external detector process that streams JSON detections over a WebSocket (runs on any machine/GPU, or none), and 'onnx' scaffolds a CPU Script CHOP that runs an .onnx model via onnxruntime inside TD. Either way the output is a Null CHOP carrying a stable contract — presence (0/1), count, and per-object normalized bboxes (obj1_x, obj1_y, obj1_w, obj1_h, obj1_score, …) — ready for bind_to_channel. (Detection idea inspired by TDYolo, MIT-licensed; no code copied.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo(websocket) URL of the external detector's WebSocket. It should send JSON objects like {"count": N, "objects": [{"x":..,"y":..,"w":..,"h":..,"score":..}]}.ws://127.0.0.1:8765
nameNoBase name for the container COMP.detection
sourceNoDetector backend. 'websocket' subscribes to an external detector process that streams JSON detections (no CUDA needed, runs anywhere). 'onnx' scaffolds a Script CHOP that runs an ONNX model via onnxruntime on the CPU inside TouchDesigner — you fill in the model path + inference.websocket
input_topNo(onnx) Absolute path of the TOP to read frames from for inference. Pulled via a Select TOP.
model_pathNo(onnx) Filesystem path to the .onnx model to load in the Script CHOP (CPU inference).
max_objectsNoNumber of detected objects (bboxes) to expose as channels (obj1_x, obj1_y, …).
parent_pathNoCOMP to create the detection container in (default '/project1')./project1
reconnect_secondsNo(websocket) Auto-reconnect interval if the detector connection drops.
Behavior4/5

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

Annotations already indicate write behavior (readOnlyHint=false), and the description adds valuable context: it creates a Null CHOP with a stable contract (presence, count, bboxes), subscribes to an external WebSocket, scaffolds a CPU Script CHOP, and is ready for bind_to_channel. No contradictions with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, dense paragraph. All sentences contribute: purpose, two backends, output contract, and legal note. It is front-loaded and free of fluff, though slightly longer than ideal. 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 8 parameters and no output schema, the description compensates well by defining the output contract and the two modes. It could mention prerequisites (e.g., external detector running for websocket) or error handling, but the high schema coverage and detailed description make it 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 schema fully documents all 8 parameters. The description offers an overview of backend-specific behavior but does not add meaning beyond what the schema already provides (e.g., '(websocket)' and '(onnx)' annotations in param descriptions). 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 states a specific action ('Turn object/person detection into TouchDesigner control channels'), names the two backends, and highlights a key differentiator ('NO CUDA requirement'). It clearly distinguishes itself from siblings like create_yolo_onnx_tracker and bind_to_channel by detailing the output contract.

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 on when to use each backend ('websocket' for external processes, 'onnx' for CPU inference) and notes the no-CUDA advantage. It does not explicitly name alternative tools or give 'when not to use' exclusions, but the backend guidance is enough for selection.

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/lucasmaher-hash/touch-designer-mcp'

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