Skip to main content
Glama

generate_image_from_image

Transform or edit an existing image by specifying its path and a prompt. Returns the file path of the generated image.

Instructions

Transform or edit an existing image using Gemini 2.5 Flash. Returns only the file path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesInstruction for how to transform or edit the image
input_image_pathYesPath to the input image file (supports ~/ expansion)
Behavior3/5

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

Without annotations, the description carries the full disclosure burden. It usefully states that the tool 'returns only the file path', giving a clear output expectation. However, it does not clarify whether the input image is overwritten or a new file is created, nor does it mention input format or size constraints, leaving important behavioral gaps.

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 sentences, front-loaded with the purpose and then the return type. Every word is useful, and there is no redundancy or filler.

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?

For a tool with only two parameters and no output schema, the description covers the essential aspects: what it does and what it returns. Some behavioral details (e.g., side effects on the input file) are missing, but the tool is simple enough that the description is adequate.

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 has 100% coverage for both parameters, each having clear descriptions. The tool description adds no additional parameter-specific information, so it does not improve upon what the schema already provides. The baseline of 3 applies.

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 uses specific verbs ('Transform or edit') and clearly identifies the resource ('existing image'), while also naming the model (Gemini 2.5 Flash). This distinguishes it from the sibling generate_image_from_text tool by emphasizing editing existing images rather than generating from text.

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 phrase 'existing image' provides clear context for when to use this tool, implying it is for editing images you already have. However, it does not explicitly mention alternatives (e.g., generate_image_from_text) or state when not to use it, so it lacks explicit exclusions.

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/couhie/mcp-gemini-imggen'

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