Skip to main content
Glama

generate_openai_image

Generate and edit product images using OpenAI gpt-image-2, with reference images, flexible sizes, and iterative refinement via previous response IDs.

Instructions

Catalog entry. Runs in your Kuudo deployment, not here. Generate images with OpenAI gpt-image-2 via the Responses API. The additive OpenAI provider, sibling to generate_image (Google Gemini). Send your OpenAI key as Authorization: Bearer <key> — the tool name implies the provider. Iterate on a result with previous_response_id (OpenAI's analog of Gemini's interaction_id).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNoNumber of images. Implemented as N server-side calls (the OpenAI image tool has no native count).
sizeNo'auto' or a 'WIDTHxHEIGHT' string. gpt-image-2 takes flexible sizes: both edges multiples of 16, aspect 1:3-3:1, max 3840x2160.auto
promptYesImage prompt for OpenAI gpt-image-2 via the Responses API. Describe subject, composition, style, and any text to render.
qualityNoRender quality.auto
backgroundNoBackground. gpt-image-2 does not support 'transparent'.auto
moderationNoModeration strictness.auto
input_imagesNoReference/edit images. Accepts agent-iris://images/{id} handles, http(s) URLs (including signed server URLs), and data: URLs — all resolved to base64 data URLs server-side before the OpenAI call.
output_formatNoOutput image format.png
output_compressionNoCompression 0-100 (jpeg/webp only).
system_instructionNoOptional system tone/style guidance.
previous_response_idNoA prior generate_openai_image response id to iterate on (the OpenAI analog of Gemini's interaction_id). Chains a follow-up edit.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden. It discloses deployment location ('Runs in your Kuudo deployment, not here'), the auth mechanism (Bearer key), and the iteration semantics via previous_response_id. These are substantive behavioral traits, though rate limits, error behavior, and storage/retention are not covered.

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 front-loaded sentences with zero filler. Purpose first, then sibling distinction, then auth, then iteration — each sentence earns its place and the key usage signal is stated up front.

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?

For an 11-parameter tool with no output schema, the description covers purpose, sibling routing, auth, and iteration. The schema handles parameter details. The main gap is the absence of return-value or error-behavior context, but that is partly mitigated by the absence of an output schema.

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 coverage is 100%, so baseline is 3. The schema already documents every parameter richly (n as N server-side calls, size constraints, input_images URL resolution). The description adds only marginal meaning by framing previous_response_id as the OpenAI analog of Gemini's interaction_id.

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?

States a specific verb and resource: 'Generate images with OpenAI gpt-image-2 via the Responses API.' It distinguishes itself from the sibling generate_image (Google Gemini) by naming the provider explicitly, so an agent can tell the two apart immediately.

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?

Names the sibling generate_image and positions this tool as 'the additive OpenAI provider,' giving the selection criterion (which provider/API you want). It also discloses the auth prerequisite (Bearer key). The when-to-choose condition is slightly implied via provider naming rather than spelled out as an explicit rule.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/KuudoAI/amazon-agent-iris-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server