Skip to main content
Glama

set_workflow_params

Store workflow parameters (CFG, steps, sampler, scheduler) in session memory so every later image generation reuses the same settings without repeating them per call.

Instructions

Remember workflow parameters for the rest of this session (CFG, steps, sampler, scheduler, flow_shift, eta, hi-res fix, VAE tiling, LoRA ...). Use it for batch runs where every image shares the same look, instead of repeating params on each call. Values are sent in the HTTP payload per job -- they never touch LocModel's config.json, which the GUI rewrites. Returns the effective parameter table with defaults, ranges and the source of each default. Call reset_workflow_params to drop everything and fall back to the LocModel GUI panel settings.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "params": "<params>"
    },
    "name": "set_workflow_params"
  }
}

Input Schema

NameRequiredDescriptionDefault
mergeNotrue (default) adds to the current set, false replaces it.
paramsYesParameter names and values to remember for the rest of this session, e.g. {"cfg": 3.5, "scheduler": "karras", "steps": 12}. Applies to every later generate_image / edit_image / redraw_image call that does not set the same knob itself. Lives in the MCP process memory only: nothing is written to disk, and it disappears when the MCP process restarts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.2.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses session-scoped lifetime, in-memory-only storage with no disk persistence, non-interference with LocModel's config.json (which the GUI rewrites), and that values travel in the per-job HTTP payload. It also describes the shape of the return value (effective parameter table with defaults, ranges, and source of each default), which matters because no output schema exists.

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?

Scope and use case are front-loaded, and each subsequent sentence adds distinct information (storage location, return shape, reset path). The config.json clause is slightly long but earns its place by preventing an agent from assuming on-disk persistence.

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 stateful session tool with no annotations and no output schema, the description covers lifetime, storage, precedence against per-call parameters, return contents, and the reset alternative. An agent has everything needed to call it correctly and to predict what it will get back.

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 coverage is 100%, so the baseline is 3; the description still adds meaning by listing example knobs and clarifying that values apply to every later generate_image/edit_image/redraw_image call that does not set the knob itself, plus where the values live (HTTP payload, not config). It does not separately explain the 'merge' flag, but the schema already documents it fully.

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+resource ('Remember workflow parameters for the rest of this session') and enumerates the knobs covered (CFG, steps, sampler, scheduler, flow_shift, eta, hi-res fix, VAE tiling, LoRA). It also distinguishes this tool from reset_workflow_params by naming the reset path, so an agent can separate setup from teardown.

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 an explicit use case ('batch runs where every image shares the same look, instead of repeating params on each call') and an explicit counterpart tool with its condition ('Call reset_workflow_params to drop everything and fall back to the LocModel GUI panel settings'). The when-to-use and when-to-use-the-alternative are both stated rather than inferred.

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