Skip to main content
Glama
olegfour3

Gemini Image Generator MCP Server

by olegfour3

transform_image_from_encoded

Transform an existing image based on a text prompt. Provide a base64 encoded image and description; returns the path to the transformed image file.

Instructions

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

Args: encoded_image: Base64 encoded image data with header. Must be in format: "data:image/[format];base64,[data]" Where [format] can be: png, jpeg, jpg, gif, webp, etc. prompt: Text prompt describing the desired transformation or modifications output_image_path: Optional path to save the transformed image. If not provided, uses default path.

Returns: Path to the transformed image file saved on the server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes
encoded_imageYes
output_image_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses the use of Gemini model and that the output is saved to a server path. However, it does not mention any side effects, authentication requirements, rate limits, or error handling behavior. While the tool is likely non-destructive (creates a new file), more transparency about API calls and limitations would strengthen this dimension.

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 concise and well-structured. The first sentence immediately states the purpose, followed by a bullet-style list of arguments with clear explanations. Every sentence adds value, and there is no redundant or extraneous text.

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 the tool has 3 parameters, no output schema, and no annotations, the description provides solid coverage of inputs and the return value (path to transformed image). It could be slightly improved by mentioning default output path location or error scenarios, but overall it is sufficiently complete for an agent to understand and invoke the tool correctly.

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?

The input schema has no descriptions (0% coverage), but the description compensates by detailing the required format for 'encoded_image' (data:image/[format];base64,[data]), explaining 'prompt' as describing desired transformations, and noting that 'output_image_path' is optional with a default. This adds significant meaning beyond the schema types and titles.

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 tool transforms an existing image using a text prompt via Google's Gemini model. It identifies the specific input format (base64 encoded) and distinguishes from siblings: 'generate_image_from_text' creates images from text, while 'transform_image_from_file' uses a file path. The verb 'transform' and resource 'image' are precise.

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

Usage Guidelines3/5

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

The description implicitly indicates usage when an encoded image is available, but it lacks explicit guidance on when to use this tool versus alternatives like 'transform_image_from_file' or 'generate_image_from_text'. No exclusions or scenarios are provided. Context from sibling names helps, but the description itself does not offer clear when-to or when-not-to guidance.

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