Skip to main content
Glama

launch_comfyui

Starts the local ComfyUI server in the background and returns once it is ready. Specify extra arguments, with network-exposing flags requiring user confirmation. Prevents duplicate launches on the same port.

Instructions

Start the LOCAL ComfyUI server, detached, and return once it is up.

Wraps comfy launch --background, recording its pid so stop_comfyui can shut it down. extra_args forward to ComfyUI after a -- separator. Call server_info first — a second launch fails on the port.

Network-exposing flags need the USER's confirmation. ComfyUI has no auth, so a non-loopback --listen (bare included) or --enable-cors-header publishes its full API to anything that can reach this machine. Those flags raise an MCP elicitation; a decline starts nothing, even with confirm_network_exposure=True. On a client that cannot prompt, that flag is the fallback — set it ONLY when the user has actually agreed. --listen 127.0.0.1/::1/localhost needs no confirmation.

Prints text with no JSON envelope; success returns a synthesized {"ok": True, ...}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
extra_argsNo
confirm_network_exposureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden, and it exceeds it. It discloses that the command wraps 'comfy launch --background', records the pid, prints text with no JSON envelope, returns a synthesized {'ok': True, ...} object, and explains the security implications of non-loopback --listen and --enable-cors-header.

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 sentence earns its place: summary, mechanics, prerequisite, safety warning, and output format are each in clear sections. The most critical caveats about network exposure and user confirmation are highlighted and front-loaded appropriately.

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, lack of annotations, and lack of an output schema, this description is remarkably complete. It covers startup semantics, failure mode, process management, security behavior, elicitation behavior, and return format — everything an agent needs to call it correctly and safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description fully compensates. It explains that extra_args are forwarded after a '--' separator, and it details confirm_network_exposure semantics: when it triggers an elicitation, when it is a fallback, and when it must not be set.

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 opens with a specific verb and resource: 'Start the LOCAL ComfyUI server, detached, and return once it is up.' It clearly distinguishes launch_comfyui from siblings like stop_comfyui, restart_comfyui, and server_info by emphasizing 'LOCAL', 'detached', and the return-once-ready behavior.

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?

It gives explicit usage context: call server_info first, because a second launch fails on the port, and notes that stop_comfyui is the paired shutdown tool. It also provides precise conditional guidance for network-exposing flags, telling the agent when confirmation is required and when confirm_network_exposure may be used as a fallback.

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