Skip to main content
Glama

stop_comfyui

Stop the local ComfyUI server started by comfy-cli. It safely shuts down only the recorded process, avoiding termination of unrelated ComfyUI instances.

Instructions

Stop the LOCAL ComfyUI server that comfy-cli launched.

Wraps comfy stop. Ownership semantics: comfy-cli only kills the pid it recorded when IT launched the server (via launch_comfyui) — it cannot stop a ComfyUI started by the desktop app or by hand, and raises :class:ComfyCliError naming "no recorded server" instead of killing an unrelated process.

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

One lifecycle call at a time — shares _LIFECYCLE_LOCK with launch_comfyui/restart_comfyui; refused immediately if one of those is in flight, rather than racing comfy-cli's single recorded pid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries full burden. It discloses the output format (no JSON envelope), the synthesized success dict, the lock-sharing behavior, and the error condition. It also reveals the destructive action of killing the recorded pid, which is a significant behavioral trait.

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?

The description is moderately long but every sentence adds value: action, ownership, output, concurrency. It is well-structured with a clear lead and a bullet point. It could be slightly more concise, but it avoids redundancy and front-loads the core purpose.

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 zero parameters, no output schema, and no annotations, the description covers all necessary aspects: what it does, limitations, error handling, concurrency behavior, and return format. An agent has everything needed to invoke it 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?

There are zero parameters, so the baseline is 4. The description adds no parameter-specific information because none exist, but it does explain the wrapping of 'comfy stop' and ownership semantics, which provides context beyond the empty schema.

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 clearly states the specific action (stop), the resource (LOCAL ComfyUI server), and the scope (launched by comfy-cli). It distinguishes from sibling tools like launch_comfyui and restart_comfyui by explicitly noting ownership semantics and the inability to stop other servers.

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?

The description explicitly states when the tool is NOT appropriate (server started by desktop app or by hand) and explains the concurrency constraint with launch/restart. It gives clear conditions for refusal and error behavior, leaving no ambiguity about usage scenarios.

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