Skip to main content
Glama

OpenAI Images Generate

openai-images-generate
Read-only

Generate images from text prompts using OpenAI models. Choose from multiple output formats and settings to get custom images.

Instructions

Generate images from text prompts using OpenAI gpt-image-1.5 (default) or gpt-image-1. Returns MCP CallToolResult with content[] (ResourceLink or ImageContent based on tool_result param) and structuredContent (OpenAI ImagesResponse format with data[].url, data[].path, or data[].b64_json based on response_format param).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes
backgroundNo
modelNogpt-image-1.5
moderationNo
nNo
output_compressionNo
output_formatNo
qualityNohigh
sizeNo1024x1536
userNo
tool_resultNoControls content[] shape: 'resource_link' (default) emits ResourceLink items, 'image' emits base64 ImageContent blocks.resource_link
response_formatNoControls structuredContent shape: 'url' (default) emits data[].url, 'path' emits data[].path, 'b64_json' emits data[].b64_json.url
Behavior1/5

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

The description states 'Generate images' which is a creation action, but annotations set readOnlyHint=true, creating a contradiction. Adding behavioral context like API credit consumption or rate limits would be needed, but is absent.

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?

The description is two sentences and front-loads the action. It is concise but could be better structured to separate purpose from return details. Still efficient overall.

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 12 parameters, no output schema, and low schema coverage, the description does not provide sufficient context for an agent to select and invoke the tool correctly. Missing parameter explanations and usage context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only 17% schema coverage, the description fails to explain most parameters (prompt, model, size, etc.). It only indirectly mentions tool_result and response_format in the return description, but does not define their values or behavior.

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 clearly states it generates images from text prompts using specific models, and mentions default model. This distinguishes it from siblings like openai-images-edit, though not explicitly, which prevents a perfect score.

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?

No guidance on when to use this tool versus alternatives like openai-images-edit or fetch-images. It does not specify prerequisites, contexts, or exclusions.

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

Install Server

Other Tools

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/strato-space/media-gen-mcp'

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