Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GEMINI_API_KEYYesYour Gemini API key from Google AI Studio.
FIREBASE_PROJECT_IDNoFirebase project ID (alternative to key file).
FIREBASE_PRIVATE_KEYNoFirebase private key (alternative to key file).
FIREBASE_CLIENT_EMAILNoFirebase client email (alternative to key file).
FIREBASE_STORAGE_BUCKETNoFirebase storage bucket name (e.g., your-project.appspot.com).
SERVICE_ACCOUNT_KEY_PATHNoPath to Firebase service account JSON key file (alternative to individual fields).
FIREBASE_SIGNED_URL_MINUTESNoOptional: signed URL validity in minutes (default 60).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
set_modelA

Switch the Gemini image model used by generate_image and edit_image. Options: 'nano-banana-pro' (highest quality, ~$0.09/img), 'nano-banana-2' (newest Flash, 4K capable, ~$0.05/img), 'nano-banana' (original Flash, fastest, ~$0.04/img). You can also pass a raw Gemini model ID directly.

set_resolutionA

Set the source resolution the model generates at, for all subsequent generate/edit calls. The API supports '1K' (default), '2K', and '4K'. Note that images are always compressed to stay under the size limit regardless — higher values mainly affect source detail, not final file size.

set_url_lifetimeA

Set how long the download URLs returned by generate/edit stay valid, in minutes. Default is 30. Shorten it for tighter confidentiality (a leaked link expires sooner) or lengthen it if you need more time to fetch images. Applies to subsequent calls.

generate_imageA

Generate an image from a text prompt, upload it to Firebase Storage, and return a signed download URL. The image is compressed only if it exceeds the size limit. Nothing is written to local disk and the image is not returned inline.

generate_image_batchA

Generate multiple images from an array of prompts in a single call. Each image is uploaded to Firebase Storage (when configured) and a signed download URL is returned. Nothing is written to local disk and no inline previews are returned. Returns a text summary with one download URL per prompt.

edit_imageA

Edit an existing image using natural language instructions. Provide the URL of the source image (e.g. a URL returned by generate_image) and describe the changes. The edited image is uploaded to Firebase Storage and a signed URL is returned. Nothing touches local disk.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.2/5.0

Scored across 6 tools

Disambiguation5/5

Each tool has a clearly distinct role: three configuration setters (model, resolution, URL lifetime) and three distinct image operations (single generate, batch generate, edit). An agent can easily tell generate_image from generate_image_batch by the array-of-prompts semantics, and edit_image is clearly separated by requiring a source URL.

Naming Consistency5/5

All tool names use snake_case with a verb_noun structure (set_model, set_resolution, set_url_lifetime, generate_image, generate_image_batch, edit_image). The set_* vs generate_*/edit_* split cleanly reflects configuration versus action tools.

Tool Count5/5

Six tools is well-scoped for an image generation server: three configuration knobs and three generation/editing operations, with nothing redundant. Batch generation is the only adjacent tool, and it earns its place by avoiding repeated round trips.

Completeness4/5

The core lifecycle (generate, batch generate, edit, plus model/resolution/link-lifetime control) is covered and the returned signed URLs close the retrieval loop. Minor gaps remain: no getters to read back current model/resolution/lifetime settings, and no explicit aspect-ratio or other generation parameter control.