Skip to main content
Glama

save_workflow

Save a workflow JSON (API or UI format) to the ComfyUI user library, making it appear in the web UI.

Instructions

Save a workflow to the ComfyUI user library so it appears in the web UI. Accepts either API format or UI format JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYesFilename to save as (e.g. 'my_workflow.json'). Will overwrite if it already exists.
workflowYesWorkflow JSON to save (API or UI format)
Behavior3/5

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

No annotations are present, so the description carries the full burden. It mentions that the file will overwrite if it already exists, which is a key behavioral trait. However, it does not disclose other important behaviors like authentication requirements, validation, size limits, or error outcomes.

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 two sentences, front-loaded with the primary purpose, and contains no fluff. Every sentence adds value.

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?

For a simple 2-parameter tool with full schema coverage, the description adequately explains the destination, format acceptance, and overwrite behavior. It lacks mention of return values or success indicators, but the absence of an output schema reduces the need. Overall, it is fairly complete.

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?

The input schema covers both parameters with descriptions. The main description reinforces that the workflow accepts API or UI format. No additional semantic details beyond the schema are provided, so baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool saves a workflow to the ComfyUI user library and mentions it accepts API or UI format JSON. The verb 'save' and resource 'workflow' are explicit. However, it doesn't distinguish from sibling tools like create_workflow or modify_workflow, which may have overlapping functionality.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives such as create_workflow or modify_workflow. No when-not-to-use or context is provided, leaving the agent without decision support.

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