Skip to main content
Glama

Compact graph digest (token-cheap)

compact_graph_digest
Read-only

Compress a TouchDesigner subtree into a structured digest with header, node count, connection count, primary output, families, errors, warnings, and token estimate. Uses existing network topology and errors for cost-effective planning.

Instructions

Read-only: compress a TD subtree into a structured digest under max_tokens (default 500). Returns {header, nodeCount, connectionCount, primaryOutput, families{count,topTypes}, outputChain, errors{total,topGroups}, warnings, approxTokens}. Uses getNetworkTopology + getNetworkErrors — no new bridge work. Cheaper than get_td_topology / snapshot_td_graph for planning turns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoTD container/subtree path to digest. Defaults to /project1./project1
max_tokensNoHard ceiling on approximate output tokens (chars/4 heuristic). Default 500.
include_errorsNoInclude top-3 grouped error keys. Off for purely structural turns.
include_output_chainNoWalk the primary output TOP upstream up to output_chain_depth.
output_chain_depthNoHow far upstream to walk from the output TOP. 6 fits typical tails.
family_top_typesNoPer family, list up to N most-frequent operator types. 0 = counts only.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
headerYes
nodeCountYes
connectionCountYes
primaryOutputYes
familiesYes
outputChainYes
errorsYes
warningsYes
approxTokensYes
cachedAtYes
overBudgetNo
Behavior5/5

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

Annotations already indicate readOnlyHint=true and destructiveHint=false. Description adds that it uses getNetworkTopology + getNetworkErrors, and lists the exact return shape, going 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, front-loaded with key purpose and behavior. Every sentence adds value: read-only, compress, return structure, underlying methods, comparison to siblings.

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?

Despite having output schema, description lists return keys. Covers use case, limitations, and relationship to other tools. Adequate for a tool with 6 optional parameters and no required fields.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All 6 parameters have full schema coverage (100%). Description adds context like 'Hard ceiling on approximate output tokens' and 'Include top-3 grouped error keys. Off for purely structural turns.' Enhances understanding beyond schema.

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?

Clearly states 'compress a TD subtree into a structured digest' with a specific verb and resource. Distinguishes from siblings by referencing get_td_topology / snapshot_td_graph and noting it's cheaper for planning.

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

Usage Guidelines5/5

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

Explicitly says 'Read-only' and 'no new bridge work. Cheaper than... for planning turns.' Provides clear context for when to use this tool over alternatives, with named sibling tools.

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