Skip to main content
Glama

build_restyle_workflow

Build an image restyling workflow that applies a chosen style or prompt to an input image, returning workflow JSON plus prompt and parameters for repeatable runs.

Instructions

Build a workflow that takes your image and outputs another image in a chosen style (cartoon, oil painting, anime, etc.). Returns workflow JSON plus a recipe (prompt and params) so you can run it or regenerate with the same settings. Image must be in ComfyUI input folder (upload first if needed). Style: keyword (cartoon, oil_painting, anime, watercolor, sketch, comic, pixel_art, pastel, cyberpunk) or any free text used as prompt.

Input Schema

NameRequiredDescriptionDefault
cfgNo
seedNo
imageYesInput image filename in ComfyUI input folder (e.g. from upload or prepare_image_for_workflow)
stepsNo
styleYesStyle: keyword (cartoon, oil_painting, anime, watercolor, sketch, comic, pixel_art, pastel, cyberpunk) or free text prompt
promptNoOverride prompt (if set, style keyword is ignored)
denoiseNoStrength of style change (default 0.65, lower = closer to original)
ckpt_nameNoCheckpoint filename
filename_prefixNoSaveImage prefix
negative_promptNoNegative prompt

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose useful behavior: it builds rather than executes, returns workflow JSON plus a recipe for regeneration, and restates denoise semantics. However, it doesn't say whether the workflow is saved, how it relates to execute_workflow, or what happens on invalid input - gaps for an unannotated tool with 10 parameters.

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?

Three tightly packed sentences with zero waste; the core capability and return value are front-loaded, and the prerequisite and style options follow logically. Slightly dense but appropriately sized for the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description does explain the returned workflow JSON and recipe, plus the input-folder prerequisite. But for a 10-parameter, no-annotation tool it leaves generation parameters (cfg, seed, steps, negative_prompt, ckpt_name) unaddressed and doesn't clarify the build-then-execute handoff to execute_workflow.

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

Parameters3/5

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

Schema coverage is 70%, so the schema already documents image, style, prompt override, denoise, ckpt_name, filename_prefix, and negative_prompt. The description mostly repeats the style keyword list already present in the schema and says nothing about cfg, seed, or steps, so it adds little beyond structured fields - baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: builds a workflow that takes an image and outputs a restyled image, and explicitly names what it returns (workflow JSON plus a prompt/params recipe). It is distinguishable from the generic build_workflow sibling by being style-transfer specific, though it never names that sibling to make the contrast explicit.

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?

Gives a clear precondition ("Image must be in ComfyUI input folder (upload first if needed)") that tells the agent what must happen before calling. It also explains the style-vs-free-text usage, but offers no explicit when-to-use/when-not guidance against sibling builders like build_workflow or create_template.

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