Skip to main content
Glama
Gemini Image MCP Server

Gemini Image MCP Server

by amineew-cell

edit_image

Modify an existing image with Google Gemini AI by providing its file path and a text instruction describing the changes to apply, such as adding, removing, or altering elements.

Instructions

Modify an existing image using Google Gemini AI based on a text instruction. Provide the path to the image you want to edit and describe the changes that should be applied.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "description": "<description>",
      "image": "<image>"
    },
    "name": "edit_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesPath to the image file that should be edited. Can be absolute or relative to the server.
modelNoGemini model ID. Options include gemini-3-pro-image-preview (complex/high-fidelity) and gemini-3.1-flash-image-preview (fast/cost-efficient). Default: gemini-3-pro-image-preview.
imageSizeNoOutput image size (longest dimension). 512 is Flash models only. Must be uppercase K (1K, 2K, 4K).
outputPathNoOptional path where the edited image should be saved. If omitted, saves in the current working directory using an auto-generated filename.
aspectRatioNoOutput aspect ratio. Use to change the aspect ratio of the edited image. Valid values: 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9.
descriptionYesDescribe the changes that should be applied to the provided image. Be specific about elements to add, remove, or modify.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it says nothing about whether the original file is mutated, what credentials/API access are needed, cost or latency of a Gemini call, or failure behavior for invalid paths. The non-destructive save-in-cwd behavior is documented only in the outputPath schema, not the description.

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?

Two tight sentences that front-load the action and follow with the required inputs; nothing is wasted, though the second sentence largely duplicates schema-level information.

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 6-parameter mutation tool with no annotations and no output schema, the description is thin: it never states what the tool returns (an image path? inline image data? confirmation message), which is exactly the gap an absent output schema creates. Parameter-level completeness is saved by the schema.

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% and every parameter (model, imageSize, aspectRatio, outputPath) has a rich schema description, so the baseline is 3. The description only restates the two required parameters in prose and adds no semantics beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Modify an existing image') plus the underlying engine (Google Gemini AI) and the input modality (text instruction). It distinguishes itself from generate_image by the word 'existing', though it never names that sibling explicitly.

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 second sentence tells the agent what to supply (image path + change description), which implies the usage context, but there is no explicit guidance on when to pick this over generate_image, no note that the source image must already exist, and no constraints or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools