Skip to main content
Glama

Generate images (parallel, new chats)

generate_images

Generate one or many images with ChatGPT in parallel, each in its own chat, and get saved file paths plus chat IDs for follow-up edits.

Instructions

Generate one or many images with ChatGPT. Each job runs in its OWN NEW chat, and all jobs in one call generate in parallel (send 10-20 at once for variations or a whole asset set). Returns saved file paths plus a chat_id per image for follow-up edits via edit_images. Typical time: 30-120 s; if the call returns before everything is done, call wait_for_jobs until all_finished is true. For quality, pick a preset (list_presets) and/or borrow proven wording via search_prompts. Attach user-provided images with reference_images.

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": {
      "jobs": "<jobs>"
    },
    "name": "generate_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobsYesOne entry per image/chat.
waitNoWait for the images before returning (default). false = return job ids immediately; collect later with wait_for_jobs.
modelNoOptional ChatGPT model slug for the new chats (default: account default).
output_dirNoFolder to save images into. Default: /root/.gpt-image-mcp/images
return_imagesNoReturn small JPEG previews inline (~500 tokens each) so you can see the results. Set false to save tokens. Files are always saved.
timeout_secondsNoMax seconds this call blocks (capped at 50s so it never hits client tool timeouts). Unfinished jobs keep running — collect them with wait_for_jobs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the parallel-per-new-chat execution model, a 30-120 s typical duration, the 50 s blocking cap, that unfinished jobs keep running after return, and that return_images costs ~500 tokens each while files are always saved. These are exactly the non-obvious operational facts an agent needs to avoid misuse.

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?

Front-loaded with the core action and parallel/own-chat semantics before logistics. No filler sentences, but the middle segment packs timing, waiting, quality hints and reference attachment into one dense run that is harder to scan than the opening.

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

Completeness5/5

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

No output schema exists, yet the description states the return shape ('saved file paths plus a chat_id per image') and the inline-preview behavior. Combined with timing and async collection guidance, an agent has everything needed to call it and handle the result.

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 the baseline is 3; the description adds meaning beyond it by explaining the preset+prompt relationship (describe the subject when a preset is used, otherwise write a full ordered brief) and by spelling out how to pass conversation-attached images into reference_images. Minor gap: wait/model/output_dir are left entirely to the schema.

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?

'Generate one or many images with ChatGPT' names a specific verb and resource, then immediately scopes it: each job is its own new chat and jobs run in parallel. It explicitly routes follow-up work to edit_images, so an agent can distinguish it from siblings without opening schemas.

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?

Gives concrete usage conditions and names the alternatives: use list_presets for quality, search_prompts for proven wording, edit_images for follow-up edits, and wait_for_jobs when the call returns before completion. It even quantifies batching advice ('send 10-20 at once for variations or a whole asset set').

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