Skip to main content
Glama

redraw_image

Generates a new version of a local image from a prompt while preserving its composition and size. Use it for whole-image img2img when character changes but geometry must stay fixed.

Instructions

REDRAW an existing local image from a new prompt, keeping its composition and size (whole-image img2img). The character of the picture changes but the geometry stays. Use edit_image instead when only part of the picture should change.

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": {
      "init_image": "<init_image>",
      "prompt": "<prompt>"
    },
    "name": "redraw_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNo-1 for random.
modelNoModel override.
stepsNoSampling steps.
promptYesDescribe the WHOLE picture you want, keeping the composition of the source.
verifyNo
channelNo
dry_runNoValidate inputs only, call nothing.
samplerNoSampler name.
strengthNoDenoising strength 0..1 (default 0.6). Under ~0.35 the engine barely changes anything.
cfg_scaleNoCFG / guidance scale.
timeout_sNoJob timeout in seconds.
init_imageYesAbsolute path of the source image.
output_dirNoAbsolute output directory.
filename_prefixNoFilename prefix.
negative_promptNoWhat to avoid.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the key semantic trait that geometry is preserved while content changes, which is real value, but it omits side-effect information such as whether output is written to a new file in output_dir, whether the source is ever modified, approximate runtime, and what the failure modes are for a local engine.

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?

Three short sentences with the action and invariant front-loaded and the sibling disambiguation last. Every clause carries information; no filler or restatement of the tool name.

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?

For a 15-parameter, no-annotation, no-output-schema tool, the description covers purpose and tool choice well but says nothing about the return value or where the resulting image lands, and does not explain behavioral-flag parameters like dry_run, verify, or channel. Adequate but with clear gaps for a tool of this complexity.

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 description coverage is 87%, so the schema already documents parameters such as strength, init_image, and prompt in detail. The description reinforces prompt/init_image intent ('keeping its composition and size') but adds no new syntax, ranges, or defaults beyond what the schema states.

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?

Specific verb and resource: 'REDRAW an existing local image from a new prompt', further qualified as 'whole-image img2img' that preserves composition and size. It explicitly contrasts itself with edit_image on the basis of whole-image vs partial change, so an agent can distinguish the two without opening either schema.

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?

Names the alternative (edit_image) and the exact condition selecting it: when only part of the picture should change. The inverse condition for this tool is stated up front ('whole-image'). Nothing about tool choice is left to inference.

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