Skip to main content
Glama

create_workflow

Create a new ComfyUI workflow starting from scratch or from a template, with optional overrides for prompt, checkpoint, and other parameters to tailor image, video, or audio generation.

Instructions

Create a new workflow, optionally from a template.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoHuman-readable name for the workflow.
templateNoTemplate to start from: "txt2img", "img2img", "upscale", "inpaint", "txt2video_ltxv", "img2video_ltxv", "flux_txt2img", "wan_txt2video", "wan_img2video", "dalle3", "gpt_image", "sora_video", or "merge_videos". Empty creates an empty workflow.
overridesNoJSON string of parameter overrides for the template (e.g. '{"prompt": "a cat", "checkpoint": "sdxl.safetensors"}').{}

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior1/5

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

No annotations are provided, and the description carries no behavioral disclosure. It does not mention whether the workflow is persisted, what the response contains, whether creation can fail, or any side effects. The description is purely a restatement of the tool's name.

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 a single, concise sentence with no wasted words. It is front-loaded with the main action and successfully communicates the core purpose in minimal space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having an output schema and fully documented parameters, the description lacks context about the workflow lifecycle. It does not clarify how this relates to siblings like 'execute_workflow', 'add_node', or 'validate_workflow', nor does it mention practical usage scenarios. For a workflow management system, this is insufficient.

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 provides 100% parameter descriptions, so the baseline is 3. The tool description adds no extra parameter semantics beyond mentioning that creation can optionally start from a template, which is already covered in the schema's template field description.

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 uses a specific verb ('Create') and resource ('workflow'), and adds an optional qualifier ('optionally from a template'). This clearly distinguishes it from siblings like 'get_workflow', 'execute_workflow', or 'validate_workflow'.

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

Usage Guidelines3/5

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

The description implies when to use the tool (when you need a new workflow) but provides no explicit guidance on when not to use it or alternatives such as 'add_node' or 'execute_workflow'. There is no clear usage context beyond the obvious.

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

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