Skip to main content
Glama

image_to_image

Transform an existing image using a text prompt. Adjust denoise, steps, and other parameters to control the result.

Instructions

Transform an existing image guided by a text prompt.

All parameters except prompt and input_image are optional with sensible defaults. Change any parameter to customize.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cfgNoGuidance scale. Default: 8.0. Typical: 1.0-20.0.
seedNoRandom seed. Default: -1 (random).
stepsNoSampling steps. Default: 20. Typical: 15-50.
promptYesText description guiding the transformation.
denoiseNoDenoising strength. Default: 0.75. Range: 0.0 (no change) to 1.0 (full regeneration). Typical: 0.5-0.8.
samplerNoSampler algorithm. Default: "euler". Use list_samplers_and_schedulers() to see all.euler
lora_nameNoLoRA model. Default: "" (none). Use list_models(folder="loras") to see options.
schedulerNoNoise scheduler. Default: "normal". Use list_samplers_and_schedulers() to see all.normal
checkpointNoCheckpoint model. Default: "" (auto-selects). Use list_models(folder="checkpoints") to see options.
input_imageYesFilename in ComfyUI's input directory. Upload first with upload_image if needed.
lora_strengthNoLoRA influence. Default: 1.0. Range: 0.0-2.0.
negative_promptNoThings to avoid. Default: "" (none).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description must carry the full burden of behavioral disclosure. It only mentions parameter optionality and does not describe side effects, prerequisites (e.g., image upload), output behavior, or limitations. The description adds minimal behavioral context beyond the basic operation.

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 two sentences, front-loaded with the primary purpose and followed by a concise note about optional parameters. Every sentence contributes value, and there is no redundant or irrelevant content.

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?

The tool is complex (12 parameters) but has an output schema, which reduces the need to describe return values. The description covers the core purpose and optionality but omits workflow context (e.g., job status, result retrieval). Still, the schema provides substantial details, making the description minimally adequate but not complete.

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?

The schema covers all parameters with descriptions, so baseline is 3. The description adds a general statement that all parameters except prompt and input_image are optional with sensible defaults, which is informative but not detailed. It reinforces the schema but does not substantially augment parameter meaning.

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?

The description states a specific action: 'Transform an existing image guided by a text prompt.' This clearly identifies the verb and resource, and the mention of 'existing image' distinguishes it from text-to-image tools. However, it does not explicitly differentiate from similar image-editing siblings like inpaint or upscale_image, so it stops short of full sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool over alternatives. It neither names alternatives nor describes typical use cases beyond the basic transformation. Given many overlapping sibling tools (inpaint, upscale_image, text_to_image), the lack of usage context is a notable gap.

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/halbert04/comfyui-mcp'

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