Skip to main content
Glama

generate_image

Create images from text descriptions using Google Gemini. Specify aspect ratio and output path as needed.

Instructions

Generate an image from a text description using Google Gemini. Returns the file path of the generated image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesA detailed description of the image you want to generate
outputPathNoOptional custom file path for saving the image. If not provided, uses auto-generated filename in output directory.
aspectRatioNoOptional aspect ratio for the generated image. If not provided, Gemini will auto-select based on the prompt. Options: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
Behavior2/5

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

No annotations exist, so description must cover behavioral traits. It mentions the model and return value but omits details like potential costs, rate limits, side effects (e.g., storage usage), or any safety/ethical considerations.

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?

Extremely concise single sentence. Every word adds value, and the most important information (action, model, output) is front-loaded.

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

Completeness4/5

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

Given no output schema, the description adequately states the return value (file path). For 3 parameters and a straightforward generation task, this is sufficient, though additional details like supported file formats could further improve completeness.

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 description coverage is 100%, so baseline is 3. The description adds no extra meaning beyond what the schema already provides for each parameter. The 'outputPath' and 'aspectRatio' are adequately described in the 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 action (generate), resource (image), input source (text description), model (Google Gemini), and output (file path). It implicitly distinguishes from siblings 'edit_image' and 'iterate_image' by focusing on generation from description.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives like 'edit_image' or 'iterate_image'. No context on prerequisites or scenarios where this tool is preferred.

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/mernorthzide/mrn-gemini-imagen-mcp'

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