Skip to main content
Glama
Gemini Image MCP Server

Gemini Image MCP Server

by amineew-cell

generate_image

Generate original images from text prompts with Google Gemini AI and optional reference images for style guidance. Use it to create new visuals; modify existing assets with the edit tool.

Instructions

Create a new image using Google Gemini AI from a text description, optionally providing reference images to guide the result. Use the edit_image tool when you need to modify an existing asset.

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>"
    },
    "name": "generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
styleNoAdditional style for the image (optional). Examples: "minimalist", "colorful", "professional", "artistic"
imagesNoOptional array of image file paths to use as visual context (absolute or relative).
imageSizeNoOutput image size (longest dimension). 512 is Flash models only. Must be uppercase K (1K, 2K, 4K).1K
outputPathNoPath where to save the image (optional). If not specified, saves in current directory. Can be a folder or complete path with filename.
aspectRatioNoOutput aspect ratio. 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.1:1
descriptionYesDetailed description of the image to generate. For better social media results, include details about colors, style and composition.
watermarkPathNoPath to watermark image file to overlay in a corner (optional)
watermarkPositionNoOptional watermark position when using `watermarkPath`.bottom-right

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It discloses that output comes from an external Gemini model and that reference images can steer results, but says nothing about cost, latency, non-determinism, or that the tool writes files to disk (implied only by the outputPath parameter). Adequate but leaves meaningful behavioral gaps for a paid generative write operation.

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 sentences, front-loaded with the primary action, with no wasted wording. The second sentence is a pure routing hint that earns its place, though the first sentence packs engine name and optionality a bit densely.

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 9-parameter tool where every parameter is fully documented in the schema and no output schema exists, the description covers purpose and routing adequately. The remaining gap is that it never states what the caller gets back or where the result lands, though outputPath partially compensates.

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%, including model options, size enum constraints, aspect ratios, and watermark placement, so the schema already does the heavy lifting. The description only adds that images are 'reference images to guide the result', which is marginal beyond what the schema states. Baseline 3 is appropriate.

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?

States a specific verb and resource ('Create a new image'), names the backing engine (Google Gemini AI), and notes the optional reference images. It also explicitly distinguishes itself from the sibling tool edit_image, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit exclusion rule: 'Use the edit_image tool when you need to modify an existing asset,' which cleanly delineates creation from modification. The when-to-use condition for this tool (producing a fresh image from a text prompt) is directly implied by that contrast.

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