Skip to main content
Glama

set_workflow_slot

Update specific slots in a ComfyUI workflow by address and value, returning the modified workflow or saving it to file. Avoids manual JSON editing.

Instructions

Set one or more slot values on a frontend-format workflow.

Wraps comfy workflow set-slot <path> ADDR=VALUE [ADDR=VALUE ...] — the parameterize step of the template on-ramp: change the prompt/seed/steps/ model without hand-editing the JSON.

Each overrides entry may be EITHER form, mixed in one list:

  • Structured (preferred){"address": "6.text", "value": "a cat"}. Type PRESERVED EXACTLY. Feed list_workflow_slots' address in.

  • String"6.text=a cat". Parsed as JSON after the first =, falling back to the literal string — so it COERCES ("6.text=true" sets the boolean). Use structured for literal "true"/"123".

stdout=True (default) is NON-DESTRUCTIVE — returns the modified workflow rather than writing workflow_path in place; False writes the change back to the file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stdoutNo
overridesYes
workflow_pathYes

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?

No annotations are provided, so the description carries the full burden. It discloses the non-destructive default (stdout=True returns modified workflow rather than writing in place), the destructive alternative (stdout=False writes back), the type-preservation behavior, and the coercion behavior of the string form. This is rich behavioral context beyond what the schema provides.

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 well-structured with a clear opening sentence, a wrapper note, a bulleted list for the two override forms, and a final behavioral note. Every sentence earns its place; the formatting makes the two forms and their trade-offs scannable.

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?

For a 3-parameter tool with no output schema and no annotations, the description covers the purpose, the two input forms, the type semantics, the destructive/non-destructive behavior, and the relationship to sibling tools. Nothing an agent needs to call it correctly is missing.

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 must compensate. It explains the meaning of overrides (both structured and string forms), the address format (feed list_workflow_slots' address in), the value type semantics, and the stdout parameter's effect. The description adds substantial meaning beyond the bare schema field names.

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 states a specific verb ('Set'), a specific resource ('slot values on a frontend-format workflow'), and the underlying CLI wrapper. It also names the parameterize step of the template on-ramp and contrasts with hand-editing JSON, which clearly distinguishes it from sibling tools like list_workflow_slots and run_workflow.

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 explains when to use this tool (the parameterize step of the template on-ramp: change prompt/seed/steps/model without hand-editing JSON) and gives concrete guidance on the two override forms, including when to prefer structured vs string. It also explains the stdout=True vs False behavior, which is a key usage decision.

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