Skip to main content
Glama

Author Script operator

author_script_operator
Destructive

Create TouchDesigner Script ops for CHOP/DAT/SOP/TOP with onCook stub, callbacks DAT, and custom params. Infers types from defaults and returns op paths.

Instructions

Scaffold a Script CHOP/DAT/SOP/TOP with a ready-to-edit onCook(scriptOp) stub and optional custom parameters. Creates the Script op plus its companion callbacks DAT, writes a per-family stub (chan/row/point/numpy) — or your on_cook_body — and appends Float/Toggle/Str custom pars inferred from each default's type. Returns {op_path, callbacks_path, params_added, warnings}. Note: Script ops only cook when something requests them, so a paused timeline + no downstream consumer means no cook (not a bug).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoName for the Script op; TD auto-names when omitted.
familyYesScript op family — selects the operator type and the onCook stub signature.
parent_pathNoParent COMP to create the Script op inside./project1
on_cook_bodyNoOptional body for onCook(scriptOp); injected verbatim. When omitted a per-family no-op stub is used.
custom_paramsNoCustom parameters to append on the Script op's 'Custom' page.
Behavior4/5

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

No contradiction with annotations (readOnlyHint=false, destructiveHint=true). The description adds valuable context beyond annotations: it creates the op plus callbacks DAT, returns a structured dict, and warns about cooking behavior. However, it doesn't clarify what destructive actions might occur (e.g., overwriting existing ops), which would be useful given the destructiveHint.

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 lean and well-structured: it opens with the action and resource, lists key outputs, and closes with a behavioral caveat. Every sentence serves a purpose without redundancy.

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 the tool's moderate complexity (5 params, no output schema), the description covers the main workflow, return values, and a key runtime nuance. It lacks details on edge cases like existing node overwrites or the meaning of 'warnings', but overall it is sufficiently complete for an agent to use correctly.

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 baseline is 3. The description adds no new parameter semantics beyond what the schema already explains (e.g., type inference for custom_params, on_cook_body injection). It mostly restates schema info.

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 scaffolds a Script CHOP/DAT/SOP/TOP with an onCook stub and custom parameters. It distinguishes itself from sibling creation tools by detailing the companion callbacks DAT and per-family stub generation.

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

Usage Guidelines3/5

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

The description implies usage by describing the creation process, but does not explicitly mention when to use this tool versus alternatives like create_td_node or add_custom_parameters. The cooking note provides some context, but no clear exclusions or 'when-not-to-use' guidance.

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