Skip to main content
Glama

generate_image

Destructive

Generate AI images across MeiGen, ComfyUI, and OpenAI-compatible platforms. Upload reference images for style guidance and customize prompts, models, aspect ratios, and quality settings for precise visual outputs.

Instructions

Generate an image using AI. Supports MeiGen platform, local ComfyUI, or OpenAI-compatible APIs. Tip: get prompts from get_inspiration() or enhance_prompt(), and use gallery image URLs as referenceImages for style guidance. Note: Midjourney Niji 7 is for anime/illustration ONLY — do not use it for photorealistic content. When enhancing prompts for Niji 7, always use enhance_prompt with style "anime".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesThe image generation prompt
modelNoModel name. For OpenAI-compatible providers: any model your API supports (e.g., gpt-image-1.5, dall-e-3, flux, etc.). For MeiGen: use model IDs from list_models.
sizeNoImage size for OpenAI-compatible providers: "1024x1024", "1536x1024", "auto". MeiGen/ComfyUI: use aspectRatio instead.
aspectRatioNoAspect ratio: "1:1", "3:4", "4:3", "16:9", "9:16". For MeiGen provider. ComfyUI: use comfyui_workflow modify to adjust dimensions before generating.
qualityNoImage quality for OpenAI-compatible providers: "low", "medium", "high"
referenceImagesNoImage references for style/content guidance. Accepts both public URLs (http/https) and local file paths. Local files are automatically compressed and uploaded when needed. For ComfyUI: local files are passed directly to the workflow (requires LoadImage node). Sources: gallery URLs from search_gallery/get_inspiration, URLs from previous generate_image results, or local file paths.
providerNoWhich provider to use. Auto-detected from configuration if not specified.
workflowNoComfyUI workflow name to use (from comfyui_workflow list). Uses default workflow if not specified.
negativePromptNoNegative prompt for OpenAI-compatible providers. ComfyUI: use comfyui_workflow modify to set negative prompt in the workflow before generating.
Behavior1/5

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

The annotations declare destructiveHint: true, implying the tool destroys or deletes data, but the description frames the tool as purely creative ('Generate an image'). The description fails to explain any destructive behavior (such as overwriting existing files) or reconcile this contradiction, despite providing other behavioral details like automatic file compression.

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?

Four sentences with zero waste: sentence 1 states purpose and scope, sentence 2 provides workflow tips linking to siblings, sentence 3 states a critical model restriction, and sentence 4 gives specific instruction for prompt enhancement. Information is front-loaded and every sentence earns its place.

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?

Given the high complexity (9 parameters, 3 providers with different behaviors), the description comprehensively covers provider-specific behaviors, file handling for references, and model constraints. It lacks only a description of the return value (image data/URL), which would be helpful given 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.

Parameters4/5

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

With 100% schema coverage, the baseline is 3. The description adds valuable workflow context beyond the schema: it links the prompt parameter to get_inspiration/enhance_prompt, clarifies referenceImages accepts gallery URLs, and provides model-specific constraints (Niji 7 limitations) that inform the model parameter selection.

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 a specific verb-noun pair ('Generate an image') and immediately clarifies the supported platforms (MeiGen, ComfyUI, OpenAI-compatible), distinguishing it from sibling tools like comfyui_workflow which manages workflows rather than generating images.

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

Usage Guidelines5/5

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

Provides explicit workflow guidance: recommends using get_inspiration() or enhance_prompt() for prompts, specifies using gallery URLs for referenceImages, and includes a clear when-not-to-use constraint ('Midjourney Niji 7 is for anime/illustration ONLY'). Also specifies the correct style parameter for enhance_prompt when using Niji 7.

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/jau123/MeiGen-AI-Design-MCP'

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