Skip to main content
Glama

save_workflow

Save organized ComfyUI workflows to the workflow browser and session directory. Prevent accidental overwrites by renaming, and refuse invalid input unless explicitly allowed.

Instructions

Save the workflow (UI format, with layout/groups/notes) into ComfyUI's workflow browser + the session dir. Run organize_workflow first - this is the deliverable. REFUSES to save with validation errors unless allow_invalid=True. Never overwrites by default: a taken name saves as ' (draftsman)' (result.renamed_from says so); overwrite=True replaces deliberately.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
overwriteNo
workflow_idYes
allow_invalidNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed5 schema fields changedv0.15.1
    • removedInput schema / properties / allow_invalid / title
      Removed value: -"Allow Invalid"
    • removedInput schema / properties / name / title
      Removed value: -"Name"
    • removedInput schema / properties / overwrite / title
      Removed value: -"Overwrite"
    • removedInput schema / properties / workflow_id / title
      Removed value: -"Workflow Id"
    • removedInput schema / title
      Removed value: -"save_workflowArguments"
  2. First observedv0.2.0

TDQS

A4.1/5.0
Behavior5/5

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

The description discloses several non-obvious behaviors beyond the annotations: it refuses invalid saves unless allow_invalid=True, never overwrites by default, renames collisions to '<name> (dartsman)', reports this through result.renamed_from, and replaces only when overwrite=True. The annotation destructiveHint=false is compatible with the default non-destructive path; overwrite is an explicit opt-in rather than an annotation contradiction.

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 dense but every clause adds information: purpose/format, prerequisite/mission, validation behavior, collision behavior, and overwrite semantics. There is no filler or repetition of schema/annotation fields, and the most important purpose is front-loaded.

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 4-parameter tool with an output schema, the description covers the key invocation constraints: prerequisite, validation gating, overwrite risk, and collision naming. The main gap is that workflow_id and name are not explained in the description, so the agent must rely on parameter names and schema type information.

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 descriptions cover 0% of the parameters, so the description must compensate. It does explain the behavior of allow_invalid and overwrite, and the naming behavior around name collisions, but it never explicitly explains workflow_id or that name is the new save name. These are inferable, but the description leaves part of the parameter-load to the agent.

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 identifies the action ('Save the workflow'), the resource ('UI format, with layout/groups/notes'), and the destination ('ComfyUI's workflow browser + session dir'). It does not explicitly name a sibling it is not, but the UI-format qualifier and the mention of session-dir saving distinguish it from export-only or output-saving tools.

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?

It gives a concrete precondition ('Run organize_workflow first'), explicitly says this is the deliverable, and explains when validation errors block saving unless allow_invalid=True. It does not explicitly contrast itself with sibling tools such as export_workflow_json or save_output, so the routing guidance is clear but not comprehensive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/EnragedAntelope/comfy-draftsman'

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