Skip to main content
Glama

analyze_workflow

Loads a saved workflow and returns a structured text analysis of sections, nodes, connections, and data flow to understand it before modifying or executing.

Instructions

Load a saved workflow and return a structured analysis — sections, node settings, connections, and data flow. Use this to understand any workflow before modifying or executing it. Returns a concise text summary (not raw JSON) optimized for AI reasoning. Prefer this over get_workflow unless you need the raw JSON for enqueue_workflow or modify_workflow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYesWorkflow filename (e.g. 'Scene Builder v3.json'). Use list_workflows to see available files.
viewNosummary (default): structured text with sections, node IDs, key settings, virtual wires, and full connection graph — best for AI understanding. overview: mermaid diagram showing sections as summary nodes with cross-section data flow. detail: mermaid diagram for one section (requires section parameter). list: text listing of all sections with data flow summary. flat: single mermaid flowchart of the entire workflow (best for small workflows).summary
sectionNoSection name for detail view. Use view='list' first to see available section names.
Behavior4/5

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

The description indicates the tool returns a 'concise text summary (not raw JSON) optimized for AI reasoning,' implying no side effects and a read-only operation. However, it does not explicitly state that no changes are made to the workflow or discuss any authentication or rate limits. Given no annotations, it carries the burden fully, but the description is still reasonably transparent.

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 extremely concise with three sentences, no redundant information, and is front-loaded with the core purpose. Every sentence serves a specific function: stating the action, indicating usage context, and providing an alternative.

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 tool's complexity (3 parameters, many siblings) and the absence of an output schema, the description is complete. It clearly describes what the tool returns, how to use it, and how it differs from related tools (get_workflow, modify_workflow). No additional information is necessary for correct selection and invocation.

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?

All three parameters are fully described in the input schema (100% coverage). The description adds value by suggesting 'Use list_workflows to see available files' for the filename parameter and by explaining the default view behavior for the 'view' parameter. While it does not repeat the schema details, it provides useful context beyond the 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?

The description clearly states the tool loads a saved workflow and returns a structured analysis covering sections, node settings, connections, and data flow. It explicitly distinguishes this tool from its sibling get_workflow by indicating that analyze_workflow is preferred unless raw JSON is needed.

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?

The description provides explicit guidance on when to use the tool: 'Use this to understand any workflow before modifying or executing it.' It also gives when-not-to-use advice by saying 'Prefer this over get_workflow unless you need the raw JSON for enqueue_workflow or modify_workflow,' which names both alternatives and conditions.

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

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