Skip to main content
Glama

vibedgames

Generate an image

generate_image

Generates images from a prompt, or edits and combines reference images when image_urls is given (GPT Image 2.5: openai/gpt-image-2.5/flare/text-to-image, openai/gpt-image-2.5/flare/edit). background: transparent makes sprites and props with no background to remove. Billed against your credits; waits up to wait_seconds, then returns the request_id to follow with generate_status.

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": "generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesWhat to draw, or with image_urls how to edit or combine them, up to 5,000 characters, e.g. `pixel-art knight sprite, side view`
optionsNoAny other input the model takes, per generate schema of its endpoint; the fields above win
qualityNoRendering quality from `low` (quick drafts) to `max`; higher takes longer and may cost more (see generate pricing). `auto` lets the model choose; omit for the model's default
backgroundNo`transparent` leaves no background, for sprites and props; `opaque` always fills one; `auto` lets the model choose. Omit for the model's default
image_sizeNoA preset; pass `{width, height}` through options for an exact size
image_urlsNoImages to edit or combine
num_imagesNoHow many images to make from the one prompt, 1 to 4; omit for the model's default
wait_secondsNoHow long to wait for the result before returning the request id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (openWorldHint=true, readOnlyHint=false), it discloses the credit-billing consequence, the blocking window (`wait_seconds`, default 20, capped at 25), and that a `request_id` is returned for polling when the wait lapses. That is exactly the cost and async behavior an agent needs before invoking a paid generative call.

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 sentences, front-loaded with the core capability and mode split, then behavior, then billing/async. Model identifiers and enum examples are parenthetical and do not obstruct the main clauses; nothing is filler.

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 explains what comes back (the image, or a `request_id` with the follow-up tool). For an 8-parameter generative tool with nested `options`, the description covers billing, timing, and the alternate mode without redundancy.

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, but the description adds intent the schema lacks: `image_urls` flips the tool from generation to editing/combining, and `background: transparent` is framed around a concrete use case (sprites and props). The `wait_seconds` explanation clarifies the blocking contract rather than merely restating the field.

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?

Names a specific verb+resource and splits the two modes explicitly: text-to-image from a `prompt`, versus edit/combine when `image_urls` is supplied, down to the backing model endpoints. An agent can distinguish it from generate_video, generate_3d, and generate_remove_background without opening a schema.

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

Usage Guidelines4/5

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

Gives concrete selection cues: pass `image_urls` to edit or combine, set `background: transparent` for sprites and props that need no post-hoc removal, and follow async work with generate_status. It stops short of naming sibling alternatives for non-image modalities, so guidance is strong but not exhaustive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.