Skip to main content
Glama

generate_image

Generates new images from text prompts or edits existing ones. Saves the result and returns the file.

Instructions

Generate a new image from a text prompt or edit an existing image using inputImagePath. Saves the result and returns a file resource.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesDescribe the image to generate or the edit to apply. Include the subject, context, and visual style; English is recommended for prompt enhancement.
purposeNoDescribe the image's intended use, such as a cookbook cover, social media post, or presentation slide, so prompt enhancement can adapt composition and detail.
qualityNoSet only when the user requests a quality level; otherwise omit to use the server default. fast prioritizes speed, balanced trades speed for detail, and quality prioritizes fidelity.
fileNameNoUse .png, .jpg, or .jpeg to request that output format from OpenAI or Seedream. Other or absent suffixes use the provider default; the saved filename is corrected to the actual image extension.
imageSizeNoSet the requested output size to 1K, 2K, or 4K. Omit to use the selected provider and quality preset's default. With Seedream, use 1K or 2K.
aspectRatioNoSet the requested output aspect ratio. Omit to use the provider default.
blendImagesNoEnable when the prompt combines multiple visual elements that need coherent spatial relationships, lighting, or composition.
inputImagePathNoProvide an absolute path to a source image when editing, creating a variation, or transferring style.
useGoogleSearchNoEnable when using Gemini and the image requires current or time-sensitive web information. With OpenAI or Seedream, omit this option or set it to false.
useWorldKnowledgeNoEnable when accurate real-world details matter, such as historical figures, landmarks, cultures, or factual settings.
maintainCharacterConsistencyNoEnable when the same character must retain a recognizable appearance across poses or scenes.
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that the tool 'Saves the result and returns a file resource,' which is a key side-effect. However, it does not clarify whether the original image is modified, mention any required permissions, rate limits, or provider-specific side effects. The schema provides some provider behavior, but the description adds limited transparency.

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 two concise sentences with no wasted words. It front-loads the purpose and then states the output/side-effect. Excellent structure for quick parsing.

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?

For a complex 11-parameter tool with no output schema, the description provides a high-level purpose and return type but omits prerequisites, error behavior, and provider differences. The extensive schema descriptions fill many gaps, making the description minimally complete for initial understanding, though more context would be beneficial.

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?

All 11 parameters have detailed descriptions in the schema (100% coverage), so the baseline is 3. The tool description itself adds minimal parameter-level meaning beyond referencing inputImagePath for editing. The rich schema descriptions carry the semantic load, and the description does not need to compensate.

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 explicitly states the tool 'Generate a new image from a text prompt or edit an existing image using inputImagePath' and 'Saves the result and returns a file resource.' This is a specific verb+resource with clear scope, distinguishing the two main operation modes. Though no sibling tools exist, the purpose is unambiguous.

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 implies usage: use this tool to generate from text or edit when an inputImagePath is provided. It clearly indicates the editing condition by referencing inputImagePath. However, it does not explicitly provide when-not-to-use guidance or name alternatives, though the schema descriptions further clarify parameter-specific usage.

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/shinpr/mcp-image'

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