Skip to main content
Glama

Scaffold a recipe from an existing TD network

scaffold_recipe_from_network
Read-only

Serialize a TouchDesigner component's child network into a RecipeSchema JSON, including nodes, non-default parameters, and connections. Validates and optionally writes to a vault-relative path.

Instructions

Inverse of apply_recipe: walk a COMP's child network in TouchDesigner and serialize it back to a draft RecipeSchema JSON (nodes + non-default parameters + connections + cross-references). Validates against RecipeSchema before returning. When write_path is set, writes pretty JSON to that vault-relative path; otherwise returns the recipe in structuredContent. Read-only with respect to TD — no operators are created or modified.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesRecipe id/slug. Also the default filename stem when write_path is set.
root_pathNoCOMP whose direct children are serialized into the recipe./project1
nameNoHuman-friendly title (defaults to the id).
descriptionNoRecipeSchema description (defaults to empty).
tagsNoRecipeSchema tags.
difficultyNoRecipeSchema difficulty.intermediate
include_defaultsNoWhen true, keep every CONSTANT-mode parameter (verbose; useful for round-trip debugging).
detect_cross_refsNoWhen true, rewrite str params whose value matches a sibling node's name to the bare sibling name (the apply_recipe convention).
write_pathNoOptional vault-relative path to write the recipe JSON to (e.g. Recipes/myrec.json). When null, the JSON is returned in structuredContent only.
overwriteNoRefuse to clobber an existing file unless true.
Behavior5/5

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

Beyond annotations (readOnlyHint, destructiveHint), the description specifies read-only behavior, validation against RecipeSchema, the dual output mode (write_path vs structuredContent), and the overwrite flag behavior. This adds valuable context.

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?

Three sentences: first states purpose and inverse relation, second details steps and output options, third emphasizes read-only. No redundant information.

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 10 parameters and no output schema, the description covers the key behavioral aspects (inversion, serialization steps, validation, write mode, read-only). It references RecipeSchema but does not detail its structure; edge cases are not covered. Still, it provides sufficient context for an agent to use the tool.

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 100% schema coverage, baseline is 3. The global description enriches understanding by explaining the overall workflow (inverse of apply_recipe, serialization of nodes/parameters/connections/cross-refs) and the purpose of include_defaults and detect_cross_refs beyond their individual 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 it is the inverse of apply_recipe, walks a COMP's child network, and serializes it to a draft RecipeSchema JSON. This distinguishes it from siblings like apply_recipe and serialize_network.

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 positions it as the inverse of apply_recipe, indicating when to use it (to serialize a network to a recipe). It implies context but does not explicitly list when not to use or alternatives, though the inversion is clear.

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