Skip to main content
Glama
olegfour3

Gemini Image Generator MCP Server

by olegfour3

generate_image_from_text

Generates images from user-provided text prompts using Google's Gemini model, turning written descriptions into visual content.

Instructions

Generate an image based on the given text prompt using Google's Gemini model.

Args: prompt: User's text prompt describing the desired image to generate output_image_path: Optional path to save the generated image. If not provided, uses default path.

Returns: Path to the generated image file using Gemini's image generation capabilities

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes
output_image_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description should disclose behavioral traits. It mentions using Gemini, but lacks details about side effects (e.g., file overwrite), required permissions, or error handling. For a tool without annotations, this is insufficient.

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 concise and well-structured with 'Args:' and 'Returns:' sections. It is front-loaded with the main action. No unnecessary words.

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 two parameters, no annotations, and 0% schema coverage, the description covers parameters and return value. However, it lacks prerequisites (e.g., API key) and error scenarios, making it adequately but not fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must explain parameters. It defines 'prompt' as the user's text prompt and 'output_image_path' as an optional save path with default behavior, adding substantial meaning beyond 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 verb 'generate' and the resource 'image from text prompt', and explicitly mentions using Google's Gemini model. Sibling tools like transform_image_from_encoded and transform_image_from_file are about image transformations, so this tool is distinct.

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 when an image needs to be generated from a text prompt. It does not explicitly state when not to use it, but the sibling tools are for different purposes, so the context is clear.

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/olegfour3/mcp-server-gemini-image-generator'

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