Skip to main content
Glama

create_workflow

Generate a ComfyUI workflow JSON from a built-in template (txt2img, img2img, upscale, inpaint) locally. Pass the result to validate_workflow or enqueue_workflow for execution.

Instructions

Create a ready-to-run ComfyUI API-format workflow from a built-in template (txt2img, img2img, upscale, inpaint, controlnet, ip_adapter, ace_step_15, stable_audio_3, remove_background, ltx_video). Pure local generation — does not contact ComfyUI and has no side effects. Returns the complete workflow JSON; pass it to validate_workflow or enqueue_workflow. Unsupplied params fall back to template defaults, so the result may reference checkpoints/models that must exist on your ComfyUI server before it will execute.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsNoTemplate parameters; recognized keys depend on the template. txt2img: checkpoint, positive_prompt, negative_prompt, width, height, steps, cfg, seed, sampler_name, scheduler. img2img/inpaint add image_path (and mask_path for inpaint) and denoise. upscale adds upscale_model. Unknown keys are ignored; omitted keys use template defaults.
templateYesTemplate name: txt2img, img2img, upscale, or inpaint
Behavior5/5

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

With no annotations, the description fully discloses behavior: pure local generation, no side effects, does not contact ComfyUI, returns JSON, and notes that missing params use defaults which may reference models that must exist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is thorough but efficient: front-loaded with purpose and templates, then behavioral context, then usage guidance. Every sentence contributes meaningful information without unnecessary repetition.

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?

Comprehensive for a tool with no output schema: explains return value (complete workflow JSON), notes model dependencies, and covers the complexity of multiple templates and parameter fallback behavior. Fully prepares an agent to use the tool correctly.

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 already covers parameters; description adds value by listing common template-specific keys (e.g., checkpoint, positive_prompt for txt2img) and clarifying that unknown keys are ignored. This helps agents construct valid parameter objects.

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?

Explicitly states the tool creates a ComfyUI workflow from a built-in template, lists all template options, and distinguishes from siblings by noting the output should be passed to validate_workflow or enqueue_workflow for execution.

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?

Clearly describes when to use (creating a workflow from a template) and what to do with the result (validate or enqueue). Does not explicitly state when not to use, but context from sibling tool names makes alternatives clear.

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