Skip to main content
Glama

gate_img2img

Generate edited images, variations, or image-to-video clips from a reference image and text prompt, using local paths, URLs, or ComfyUI input filenames.

Instructions

Generate a new image edit/variation or image-to-video clip from a reference image (local file path, HTTP/HTTPS URL, or uploaded ComfyUI input filename) and a text prompt.

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": {
      "image": "<image>",
      "prompt": "<prompt>"
    },
    "name": "gate_img2img"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoRandom seed for reproducible generation (optional).
imageYesReference image: local file path (e.g. '~/pic.png'), HTTP/HTTPS image URL, or filename already in ComfyUI input/.
presetNoSpeed/quality preset: 'Fast alt' (default, 10 steps), 'Fast', 'Balanced', 'Quality' (25 steps).
promptYesText description guiding the image transformation, instruction edit, or video motion.
denoiseNoDenoising strength from 0.05 (subtle) to 1.0 (complete redraw). Default: 0.75.
negative_promptNoOptional negative prompt elements to avoid.
timeout_secondsNoMaximum seconds to wait for generation (default: 180).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / prompt / description
      Previous value: -"Text description guiding the image-to-image transformation."New value: +"Text description guiding the image transformation, instruction edit, or video motion."
  2. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, and destructiveHint=false, so the mutation/safety profile is covered. The description adds nothing about the generation lifecycle, however – no mention of synchronous waiting, long runtimes, where the resulting file is written, or what happens on timeout, despite a timeout_seconds parameter hinting at blocking behavior.

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?

A single, front-loaded sentence with no padding that names the inputs and the output types up front. It is efficient, though the parenthetical list of image source forms could have been left to the schema.

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?

With no output schema present, the description should say what the agent gets back (image file? video? path?) and roughly how long a call takes, and it does neither. For a 7-parameter, non-idempotent generation tool, the definition is adequate but leaves meaningful operational gaps.

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 every parameter is already documented and the baseline is 3. The description re-states the accepted image input forms, which merely duplicates the schema rather than adding new meaning, so it earns only a small increment for reinforcing that the image can be a URL, path, or ComfyUI input filename.

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 ('Generate') and resource ('image edit/variation or image-to-video clip') plus the two inputs needed. It implicitly separates itself from gate_txt2img by requiring a reference image, but never names that sibling, so the differentiation is inferential.

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

Usage Guidelines3/5

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

Usage is only implied: the phrase 'from a reference image' tells the agent this is for image-conditioned generation, but there is no explicit when-to-use vs. gate_txt2img/gate_generate guidance and no stated prerequisites or exclusions.

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