Skip to main content
Glama

generate_image

Generate an image from a text prompt. Control size, ratio, and optionally use reference images for style or character consistency. Returns and saves the PNG to a specified path.

Instructions

Generate an image from a text prompt. Returns the image itself.

HOW MANY reference_images you pass decides whether the model obeys you. This matters more than prompt wording:

0 refs -> art style and composition instructions are followed exactly. The look of any character must be described in words. 1 ref -> keeps the referenced character's likeness AND follows pose instructions, BUT the art style will follow the reference, not your prompt. Use for expression sets / same character, new pose. 3+ refs -> the model starts copying instead of creating. Pose and style instructions stop working; it reproduces the reference, including its background props and artifacts. Avoid.

Style control and likeness control cannot both be had in one call. Decide which one this image needs. To get both: generate once with 0 refs to fix the style, then use that output as the single ref for follow-ups.

Hard limit: 6 reference images, more returns HTTP 400.

Args: prompt: what to draw. Put the full art-style description here. reference_images: local file paths or public https URLs. Read the rule above. size: e.g. "1024x1024", or a tier like "1K" / "2K". ratio: e.g. "1:1", "16:9". save_path: where to write the png. Defaults to a temp file; the path is always reported so the user can find the file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNo1024x1024
ratioNo1:1
promptYes
save_pathNo
reference_imagesNo
Behavior5/5

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

With no annotations, the description carries full responsibility and excels: it reveals how reference image count changes behavior, states a hard limit of 6 images returning HTTP 400, explains that style follows the reference when 1 ref is used, and discloses the default save_path behavior and that the path is always reported. This is highly transparent.

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 information-dense and organized with clear sections, front-loaded with the core purpose before diving into details. It is somewhat long, but each sentence earns its place by conveying necessary behavioral nuance and parameter guidance. The structure follows a logical flow from purpose to reference-image rules to argument definitions.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity, lack of schema descriptions, and absent annotations, this description is remarkably complete. It covers usage, edge cases (3+ refs), error conditions (HTTP 400), return behavior ('returns the image itself' and path reporting), and parameter semantics. It leaves few gaps for an agent to misinterpret.

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

Parameters5/5

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

Schema coverage is 0%, but the description meticulously explains every parameter: prompt ('full art-style description'), reference_images ('local file paths or public https URLs' plus the critical rule), size with examples ('1024x1024' or '1K'), ratio with examples, and save_path ('where to write the png' and default). It fully compensates for the sparse schema.

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 clearly states the tool's function: 'Generate an image from a text prompt.' It distinguishes itself from sibling tools like describe_image by specifying it generates rather than analyzes imagery, and the detailed behavior around reference images further clarifies its unique purpose.

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?

The description gives explicit guidance on when to use 0, 1, or 3+ reference images, and explains the tradeoff between style and likeness control, including a practical workaround for both. It does not explicitly mention sibling alternatives, but the content strongly implies when this tool is appropriate for image generation tasks.

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/hskelp9527-pixel/agnes-image-mcp'

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