Skip to main content
Glama

Serialize network to diffable JSON

serialize_network
Read-only

Serialize a TouchDesigner node network into a git-diffable JSON specification for version control and change tracking.

Instructions

Read-only: serialize a COMP's immediate children into a git-diffable JSON spec — each node's name, op type, parameters (with mode + expression, not just the evaluated value), input wires by source node name, and position — plus best-effort custom-parameter definitions. This is the serialize half of a round-trip pair: feed the output spec to rebuild_network to reconstruct the subtree. Use it to snapshot a network as text you can diff across edits or commit to version control. Returns {root, nodes[], truncated?, warnings[]}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRoot COMP whose children to serialize into a diffable spec.
max_nodesNoCap nodes serialized.
include_custom_paramsNoInclude custom-parameter definitions (best-effort).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootYesThe serialized root path.
nodesYesEvery serialized child node of the root.
truncatedNoTrue when the child count exceeded max_nodes and the spec was capped.
warningsYesPer-item problems collected without failing the read.
Behavior4/5

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

Annotations already declare readOnlyHint=true, so no contradiction. Description adds context: 'best-effort' custom parameters, truncated flag, warnings array, and that parameters include mode+expression. Provides useful behavioral details 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?

Four concise sentences, each adding value. Front-loaded with purpose and read-only nature. No irrelevant details; every sentence earns its place.

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?

Given the output schema exists (so return values are documented), the description covers purpose, usage, output structure (root, nodes, truncated, warnings), and limitations (best-effort, capped nodes). Complete for a read-only serialization tool.

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 coverage is 100% with descriptions for all parameters. The description repeats the 'best-effort' note already present in the schema for include_custom_params, adding no new semantic information. 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 clearly states 'serialize a COMP's immediate children into a git-diffable JSON spec' and identifies it as the serialize half of a round-trip pair. It distinguishes from siblings by focusing on diffable JSON output.

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?

Explicitly says to use for snapshotting a network for diffing across edits or version control, and mentions pairing with rebuild_network. Does not specify when not to use or compare to similar tools like snapshot_td_graph, but context is clear enough.

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