Skip to main content
Glama

Generate image

generate_image

Generate images from text prompts using an OpenAI-compatible API, automatically inferring dimensions from the prompt when size is not specified.

Instructions

Generate one or more images with the configured OpenAI-compatible Images API. Dimensions are inferred from the prompt when size is omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoOutput dimensions. Omit or use auto to infer a suitable size from the prompt.
countNoNumber of images to produce.
modelNoOverride the configured model. Defaults to gpt-image-2.
promptYesDescribe the image, composition, style, lighting, subject, and intended use.
qualityNoauto
deliveryNoauto returns a displayable image plus an original resource link; use link to avoid inline image data.auto
backgroundNoauto
outputFormatNopng
outputCompressionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYes
imagesYes
statusYes
deliveryYes
operationYes
requestedSizeYes
Behavior3/5

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

Annotations already indicate this is a write operation (readOnlyHint false). The description adds a helpful behavioral detail about dimension inference when size is omitted, but it does not disclose external API dependencies or failure modes.

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?

Two concise sentences: the first states the core purpose, the second gives a useful refinement about size inference. No extraneous detail.

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 a tool with 9 parameters and an output schema, the description is brief but sufficient when combined with structured fields. However, it lacks context about the configured API and relationship to sibling configuration tools.

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 description coverage is 56%, and the description only restates the size inference behavior already documented in the schema. It adds no new meaning for parameters like quality, background, outputFormat, or outputCompression that lack descriptions.

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?

The description opens with 'Generate one or more images', a specific verb and resource, and clearly distinguishes from siblings like edit_image and setup_image_api by focusing on the generation action.

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

Usage Guidelines3/5

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

The description offers no explicit when-to-use or alternative guidance, though the purpose implicitly separates it from edit and setup tools. The mention of the 'configured OpenAI-compatible Images API' provides context but no exclusions or fallback instructions.

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/less55093-collab/my-image-mcp'

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