Skip to main content
Glama

generate_image

Destructive

Generate images from text prompts using UGCmind, ComfyUI, or OpenAI-compatible APIs. Choose provider, size, model, and quality for flexible image creation.

Instructions

Generate an image. Supports UGCmind App Runtime, local ComfyUI workflows, or OpenAI-compatible image APIs. UGCmind remains the default when UGCMIND_API_KEY is configured.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoImage size for OpenAI-compatible providers, for example "1024x1024", "1536x1024", or "auto".
modelNoModel id. For UGCmind, use list_models or App UI. For OpenAI-compatible providers, use any model your endpoint supports.
promptYesThe image generation prompt.
qualityNoProvider-specific quality hint passed through to the selected runtime.
fileNameNoDesired UGCmind artifact filename. Defaults to generated-image.png.
providerNoGeneration provider. Defaults to UGCmind when UGCMIND_API_KEY is configured; otherwise ComfyUI workflow, then OpenAI-compatible.
workflowNoComfyUI workflow name to use. Manage workflows with the comfyui_workflow tool.
resolutionNoProvider-specific resolution hint passed through to the selected runtime.
aspectRatioNoAspect ratio for UGCmind App Runtime, for example "1:1", "16:9", "9:16", "4:3", or "auto".
modelOptionIdNoUGCmind Tool Runtime model option id. Omit to use the App/project default.
referenceImagesNoReference images. UGCmind/OpenAI-compatible providers accept public URLs. ComfyUI accepts public URLs or local file paths when the workflow has LoadImage nodes.
Behavior3/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false, and the description does not contradict these. It adds useful behavioral context about provider support and default selection, but does not disclose potential side effects like file overwriting, output location, or cost implications, which would be relevant given the destructive hint.

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?

The description is exactly two sentences, front-loaded with 'Generate an image.' The second sentence adds key provider information. There is zero waste, and it is easy to scan.

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?

Despite having 11 parameters and no output schema, the description is very brief. It does not explain what the tool returns (e.g., an image URL or file path), whether it saves files, or any provider-specific nuances beyond defaults. Given the tool's complexity, the description is insufficient for the agent to fully understand invocation results and side effects.

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?

The schema covers 100% of parameters with descriptions, so the baseline is 3. The tool description does not add additional parameter-level meaning beyond what is already in the schema; it only restates the provider default, which is also in the provider parameter description.

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 'Generate an image,' a specific verb+resource pair that clearly identifies the tool's function. It also distinguishes it from sibling tools like video_generation and speech_generation by focusing solely on image generation, and the mention of three supported providers adds specificity.

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 provides clear context about when to use the tool (when generating images) and describes provider selection behavior (UGCMind default when configured). However, it does not explicitly state when not to use it or compare alternatives, such as if another tool would be better for a different image-related task.

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/keenocean/ugcmind-mcp'

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