Skip to main content
Glama

generate_image

Submits an asynchronous image generation task from a text prompt and automatically downloads the resulting images to a local directory.

Instructions

提交异步生图任务,后台 Worker 会自动轮询远程服务器并下载图片到本地。图片保存到 projectDir/outputSubdir/ 目录下(默认 mclans-image 子文件夹,可通过 outputSubdir 参数自定义)。任务提交后立即返回,生图通常需要 5-10 分钟。请询问用户:是需要我持续跟踪任务进度直到完成,还是提交后由系统自动处理、后续按需查询?

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes图片描述
projectDirYes必填:当前项目根目录的绝对路径。请先执行 pwd 或 echo %cd% 获取当前工作目录,然后将结果填入此参数。图片将保存到该路径下的输出子文件夹中
fileNameYes必填:保存的文件名(不含扩展名),请根据图片内容取一个简短有意义的英文名,如 cute-cat、sunset-beach 等。多张图片时自动加后缀,如 cute-cat-1、cute-cat-2
countNo生成图片数量,默认 4 张。多张图片时文件名自动加序号后缀,如 fileName-1、fileName-2
outputSubdirNo输出子文件夹名称,默认为 mclans-image。图片将保存到 projectDir/outputSubdir/ 目录下。可根据项目需要自定义,如 images、assets、output 等
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the async nature, polling mechanism, save location, and typical generation time, which is sufficient for a generation tool.

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 fairly concise and well-structured, starting with the core function, then detailing saving directory, then typical duration, and ending with user interaction. The user question could be omitted for brevity, but it adds clarity for usage.

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?

While the description covers the save path, naming, and async behavior, it does not mention the return value (likely a task ID) or error handling. Given no output schema, this is a gap that reduces completeness.

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 100%, but the description adds significant value beyond schema descriptions: it explains how to obtain projectDir, naming conventions, auto-suffix for multiple images, and subdirectory customization. This meets the high bar.

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 it submits an async image generation task and specifies where images are saved. It is distinct from siblings like check_task and generate_video, as it focuses on 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 Guidelines4/5

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

The description explains that the task is async and returns immediately, and advises asking the user about progress tracking. It does not explicitly state when not to use this tool, but provides good context for decision-making.

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/YupegLV/mclans-create-image-mcp'

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