Skip to main content
Glama

gate_txt2img

Generate an image or video from a text prompt using the active ComfyUI pipeline, then return full output URLs for use in your workflow.

Instructions

Generate an image or video from a text prompt using the active profile's pipeline (MOSS-Image DeBand, FLUX.2 Klein 4B, Wan 2.2 5B TI2V, or SD 3.5 Large fp8). Returns full output URLs.

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

Input Schema

NameRequiredDescriptionDefault
seedNoRandom seed for reproducible generation (optional, default random integer).
widthNoOutput width in pixels (default: 1024; for wan-ltx-video defaults to 832 if left at 1024).
heightNoOutput height in pixels (default: 1024; for wan-ltx-video defaults to 480 if left at 1024).
presetNoSpeed/quality preset (for moss-image): 'Fast alt' (default, 10 steps, recommended), 'Fast' (10 steps), 'Balanced' (14 steps), 'Quality' (25 steps).
promptYesText description of the image or video to generate (positive prompt).
negative_promptNoOptional negative prompt elements to avoid (default: 'worst quality, bad anatomy, watermark, jpeg artifact').
timeout_secondsNoMaximum seconds to wait for generation (default: 180).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.0
    • changedInput schema / properties / height / description
      Previous value: -"Image height in pixels (default: 1024)."New value: +"Output height in pixels (default: 1024; for wan-ltx-video defaults to 480 if left at 1024)."
    • changedInput schema / properties / prompt / description
      Previous value: -"Text description of the image to generate (positive prompt)."New value: +"Text description of the image or video to generate (positive prompt)."
    • changedInput schema / properties / width / description
      Previous value: -"Image width in pixels (default: 1024)."New value: +"Output width in pixels (default: 1024; for wan-ltx-video defaults to 832 if left at 1024)."
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds useful context about which pipelines are active and that full output URLs are returned (helpful since no output schema exists), but says nothing about generation latency, timeout behavior, or what happens to an in-flight job when timeout_seconds expires.

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?

Two tight sentences: capability plus pipeline list, then the return contract. Nothing is redundant and the core verb is front-loaded.

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

Completeness4/5

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

With 7 parameters, no output schema, and a long-running generation workload, the description covers the essentials: what it produces, which backends run, and that URLs come back. It stops short of explaining behavior around the 180s timeout or how video vs image output is selected, which are meaningful for an open-world, non-idempotent call.

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 100%, so every parameter is already documented with defaults, presets, and per-pipeline dimension overrides. The description adds no parameter-level semantics beyond schema content, so the baseline 3 applies.

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 ('Generate an image or video from a text prompt') and names the concrete pipelines (MOSS-Image DeBand, FLUX.2 Klein 4B, Wan 2.2 5B TI2V, SD 3.5 Large fp8). The phrase 'from a text prompt' implicitly separates it from gate_img2img, but the sibling gate_generate is never mentioned, so differentiation is only partial.

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 implied rather than stated: an agent can infer this is the tool for prompt-only generation with no source image, versus gate_img2img for image-based editing. There are no explicit when/when-not statements and no named alternatives, which is a real gap given the four sibling generation tools.

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