Skip to main content
Glama

comfy_sweep

Enqueue multiple copies of a workflow, each with a different value for a chosen widget parameter like seed, CFG, steps, or denoise, and monitor progress via the job tracker.

Instructions

Enqueue N copies of workflow, each with a different value for one widget.

Useful for seed sweeps, CFG sweeps, step sweeps, denoise sweeps. Every queued prompt is also registered with the job tracker so the returned prompt_ids can be fed into comfy_watch_progress.

Args: workflow: Base API-format workflow. node_id: Node id whose input to vary (e.g. "5" for KSampler). param: Input name to vary (e.g. "seed", "cfg", "steps"). values: List of values to substitute. Each produces one queued prompt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramYes
valuesYes
node_idYes
workflowYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description discloses that it enqueues copies, registers with the job tracker, and returns prompt_ids for later monitoring. This goes beyond the annotations (which only indicate non-read-only, non-destructive) to clarify the tool's side effects and interaction pattern, though it does not detail potential resource constraints or error behavior.

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 concise and well-structured, with a clear first sentence and a brief follow-up on use cases and integration. It avoids unnecessary detail and is easy to parse.

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?

The description provides sufficient context for understanding the tool's role, including its relationship to the job tracker and watch_progress. It does not mention validation, error handling, or performance implications, but within the context of sibling tools, it gives enough to select and invoke correctly.

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

Parameters2/5

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

The description does not adequately explain the parameters. It mentions 'widget' but the args are `node_id`, `param`, and `values`; it does not clarify that `param` refers to a widget name or how `values` maps to the multiple enqueues. The schema provides no descriptions, so the description should compensate but does not.

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 tool's primary function: enqueue multiple copies of a workflow with different values for a single parameter. It also provides concrete use cases (seed, CFG, step, and denoise sweeps), making the purpose unambiguous.

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?

The description explicitly lists scenarios where this tool is useful (sweeps) and mentions integration with the job tracker and comfy_watch_progress. However, it does not explicitly contrast it with alternative tools like comfy_queue_prompt, though the use cases imply when to choose this over them.

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/dreamrec/ComfyPilot'

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