Skip to main content
Glama

generate_image

Generate or edit AI images using text descriptions or existing images. Downloads the result locally and returns the file path.

Instructions

Generate or edit an AI image — text-to-image (文生图/AI画图) or image-to-image (图生图, pass images) — via free models (Agnes AI default, or Zhipu). Use this for photographic or illustrated subjects (写实图/插画/概念图/Logo 设计图). Output downloads locally and the path is returned. No local rendering libs needed; this calls the AI model for you. Multilingual triggers: 画像 · imagen · image · Bild · изображение · imagem (ja/es/fr/de/ru/pt).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNo
sizeNoe.g. 1024x1024 (provider may snap to nearest preset).
modelNoOptional; omit to use the provider default. Call list_models to see options.
imagesNoImage-to-image inputs (public URL or data URI). Omit for text-to-image.
outDirNo产物落盘目录,省略用默认(会话目录/output)。
promptYesImage description.
downloadNo
providerNoagnes
Behavior3/5

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

Annotations are absent, so description carries full burden. It mentions local download, no rendering libs needed, and that it calls an AI model. However, it lacks details on destructive behavior, authentication, rate limits, or error handling.

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?

Description is concise (~100 words) with front-loaded purpose. Includes multilingual triggers which may be extraneous but do not hinder clarity. No redundant sentences.

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

Completeness3/5

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

Given 8 parameters and no output schema, the description explains the return value (path) and basic behavior. However, it omits details like cost, rate limits, error responses, and parameter constraints like size formats. Adequate but with gaps.

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 63%, and description adds context for 'model' (free models, defaults) and 'images' (image-to-image). But it does not explain 'n', 'size', 'outDir', 'download', or 'provider' beyond what schema already provides. Some added value but not comprehensive.

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 generates or edits AI images via text-to-image or image-to-image. It specifies the resource ('AI image') and actions. Sibling tools like generate_icon or generate_chart are for different output types, so this is well distinguished.

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?

Provides explicit use cases ('photographic or illustrated subjects, logo design') and lists multilingual triggers. It implies this is for free models but does not explicitly contrast with alternatives like generate_icon or describe when not to use.

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

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