Skip to main content
Glama

generate_image

Create an image from a text prompt using gpt-image-2, with optional reference images to guide the output.

Instructions

Generate one image with gpt-image-2, optionally guided by reference images.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoOutput size, for example 1536x1024.1024x1024
modelNoModel name; only gpt-image-2 is supported.
promptYesImage description.
api_keyNoPer-call API key; OPENAI_API_KEY is preferred.
qualityNoauto
base_urlNoOpenAI-compatible base URL ending in /v1.
output_pathNoOptional local path to save the generated image. Relative paths resolve from the MCP working directory. Existing files are not overwritten.
output_formatNopng
reference_imagesNoOptional reference images as absolute local paths or HTTP(S) URLs.
Behavior2/5

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

No annotations are provided, so the description alone must disclose behavioral traits, but it only mentions generation with reference-image guidance. It omits important behavior such as file-saving side effects (output_path), overwrite policy, API-key requirements, or what happens on failure.

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 sentences, no fluff, front-loads the core purpose and key differentiator (optional reference images). Every word contributes.

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 no output schema and no annotations, a 9-parameter generation tool needs more than a two-sentence description to be fully actionable. Missing return-value behavior, usage boundaries relative to edit_image, and side-effecting save behavior for output_path.

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 high (78%), so the description need not restate parameters; it does add one useful semantic link by saying reference images are optional guidance. Otherwise, it adds little beyond the schema's own 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?

Clearly states a specific action ('Generate') and resource ('one image'), identifies the model (gpt-image-2), and notes optional reference images; this distinguishes it from the sibling edit_image tool.

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?

Description implies the tool is for generating new images, not editing, but never explicitly tells the agent when to choose this over edit_image or any exclusion criteria. No alternative tool is named.

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/chanshawoh/imageforge-mcp'

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