Skip to main content
Glama

visualize_workflow_hierarchical

Convert large ComfyUI workflows into hierarchical diagrams by detecting sections and resolving virtual wires. Supports compact overview, detailed section, and AI-readable summary views.

Instructions

Visualize a large ComfyUI workflow as a hierarchical diagram. Detects logical sections using node categories from /object_info, resolves Get/Set virtual wires, and produces either a compact overview (sections as summary nodes), a detailed view of one section, or a text listing of all sections. Best for workflows with 20+ nodes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
viewNooverview: compact diagram with sections as summary nodes; detail: full diagram for one section; list: text summary of all sections; summary: structured text optimized for AI ingestion with node IDs, key settings, virtual wires, and full connection graphoverview
sectionNoSection name to show in detail view (required when view=detail). Use view=list to see available section names.
workflowYesComfyUI workflow in API format or UI format (auto-detected)
directionNoFlowchart direction (default: TB for overview, LR for detail)
show_valuesNoInclude widget values in node labels (detail view only)
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses behavioral traits like detecting logical sections, resolving Get/Set virtual wires, and producing different views. However, it does not mention side effects or permissions, though for a visualization tool these are minimal.

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 concise sentences: first states purpose, second explains features, third provides usage advice. No redundant words, front-loaded with key 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 5 parameters and no output schema, the description covers the major aspects: purpose, usage context, and parameter roles. It mentions output types (overview, detail, list, summary) but could be more explicit about return format for each view, though the 'view' parameter descriptions help.

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?

Schema coverage is 100% (baseline 3), and the description adds significant context: it explains each view type in detail (e.g., 'compact diagram with sections as summary nodes'), clarifies that 'section' is required when view=detail, and mentions defaults for 'direction' and 'show_values'.

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 'Visualize a large ComfyUI workflow as a hierarchical diagram' with specific features like detecting logical sections and resolving virtual wires. It distinguishes itself from siblings like 'visualize_workflow' by focusing on large workflows (20+ nodes) and hierarchical structure.

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 says 'Best for workflows with 20+ nodes,' providing clear usage context. Though it does not explicitly name alternatives, the sibling list includes 'visualize_workflow' which likely serves smaller workflows, implying when not to use this tool.

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/sandyup/comfyui-mcp'

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