Skip to main content
Glama

generate_image

Create images from natural-language prompts with OpenAI GPT Image-1, including streaming previews, size and format options, and optional conversation context for iterative generation.

Instructions

Generate images using OpenAI GPT Image-1 model. Supports streaming with partial_images parameter.

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
nNo
sizeNo
formatNo
promptYes
streamNo
qualityNo
backgroundNo
moderationNo
useContextNo
partialImagesNo
conversationIdNo
maxContextEntriesNo
output_compressionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It mentions streaming support but says nothing about cost or rate-limit implications of a paid image-generation call, what the response contains (URLs, base64, file paths), latency expectations, or how moderation/background settings affect the outcome. For a 13-parameter generation tool with zero annotation coverage, this is a substantial gap.

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?

Two short sentences with the primary action front-loaded and no filler. The second sentence is useful but leaves the streaming detail underspecified rather than over-explained.

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

Completeness2/5

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

With 13 parameters, no annotations, and no output schema, the description should clarify return shape, the relationship between stream and partial_images, and how conversation context parameters interact. It covers none of these, so an agent cannot fully predict the call's behavior or result from the definition.

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?

The input schema carries inline descriptions for all 13 parameters (size, quality, format, background, moderation, useContext, conversationId, etc.), so the schema does most of the semantic work. The description only adds one linkage—that partial_images enables streaming—and even that is stated loosely without noting its 1-3 range or its interaction with the separate 'stream' flag.

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?

The description states a specific verb and resource ('Generate images') and names the underlying model (OpenAI GPT Image-1), so the core action is unambiguous. It does not distinguish this tool from the sibling edit_image, leaving the agent to infer when generation is preferred over editing.

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

Usage Guidelines2/5

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

The only usage hint is that streaming is possible via partial_images; there is no guidance on when to use this versus edit_image, when to enable streaming versus a single response, or when conversation context (useContext/conversationId) should be engaged. An agent must infer all of this from the schema alone.

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