Skip to main content
Glama
mikeroussell

Nano Banana MCP Server

by mikeroussell

Compose Multiple Images with Nano Banana Pro

nanobanana_compose_images
Read-only

Combine multiple reference images to create new compositions, transfer styles between images, maintain character consistency, or merge objects from different sources using AI-powered image composition.

Instructions

Compose new images using multiple reference images with Nano Banana Pro.

Use up to 14 reference images to:

  • Create group compositions

  • Transfer styles between images

  • Maintain character consistency across scenes

  • Combine objects from different images

Limits:

  • Up to 6 images of objects for high-fidelity inclusion

  • Up to 5 images of humans for character consistency

  • Total maximum: 14 images

Args:

  • prompt (string, required): Description of how to compose the images

  • images (array, required): Array of image objects with:

    • base64 (string): Base64-encoded image data

    • mime_type (string): Image MIME type

  • model (string): Must be Nano Banana Pro (gemini-3-pro-image-preview)

  • aspect_ratio (string): Output aspect ratio

  • resolution (string): Output resolution (1K, 2K, 4K)

Returns:

  • success (boolean): Whether composition succeeded

  • imageData (string): Base64-encoded composed image

  • mimeType (string): Image MIME type

  • text (string): Any accompanying text

  • error (string): Error message if failed

Examples:

  • "Create a group photo of these 5 people at a beach"

  • "Apply the style of the first image to the subject in the second"

  • "Combine these product images into a catalog layout"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesText description of how to compose/combine the images. Describe the desired scene, style transfer, or composition.
imagesYesArray of images to use as references. Up to 14 images total: 6 objects and 5 humans for character consistency. Each image needs base64 data and mime_type.
modelNoModel to use. Multi-image composition requires Nano Banana Pro (gemini-3-pro-image-preview).gemini-3-pro-image-preview
aspect_ratioNoAspect ratio of the generated image. Options: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9. Default: varies by prompt
resolutionNoResolution of the generated image (Nano Banana Pro only). Options: 1K, 2K, 4K. Note: Must use uppercase 'K'. Default: 1K
Behavior4/5

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

Annotations already provide readOnlyHint=true and destructiveHint=false, indicating a safe read operation. The description adds valuable behavioral context beyond annotations by specifying image limits (up to 14 total, with breakdowns for objects and humans), which helps the agent understand constraints. It doesn't mention rate limits, authentication needs, or processing time, but adds meaningful operational context.

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 well-structured with clear sections (purpose, use cases, limits, args, returns, examples) and front-loaded key information. It's appropriately sized for a complex tool, though the 'Args' and 'Returns' sections could be more concise since they largely repeat schema information.

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's complexity (5 parameters, image processing), the description provides good context with use cases, limits, and examples. While there's no output schema, the 'Returns' section adequately documents the response structure. The description could benefit from more guidance on prompt engineering or error handling, but covers most essential aspects.

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%, so the schema already documents all parameters thoroughly. The description adds minimal value beyond the schema by briefly mentioning the 'images' array structure and model requirement, but doesn't provide additional semantic context or usage examples for parameters beyond what's in the schema descriptions.

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's purpose with specific verbs ('compose new images', 'transfer styles', 'maintain character consistency', 'combine objects') and resources ('multiple reference images', 'Nano Banana Pro'). It distinguishes from sibling tools by focusing on multi-image composition rather than editing single images, generating from scratch, or listing models.

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 provides clear context for when to use this tool through the bullet points of use cases (group compositions, style transfer, character consistency, object combination) and the limits section specifying image type constraints. However, it doesn't explicitly state when NOT to use it or name specific alternatives among the sibling tools.

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/mikeroussell/nano-banana-mcp'

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