Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP server port (default: 3000).3000
API_MODENoAPI mode: 'responses' (default, latest) or 'images' (legacy).responses
CACHE_DIRNoCache directory (default: .cache/images)..cache/images
CACHE_TTLNoCache TTL in seconds (default: 3600).3600
CORS_ORIGINNoCORS origin (default: *).*
CACHE_MAX_SIZENoMaximum cache size in MB (default: 100).100
OPENAI_API_KEYYesYour OpenAI API key with access to image generation models (required).
RESPONSES_MODELNoModel for the Responses API (default: gpt-4o).gpt-4o
ENABLE_STREAMINGNoEnable real-time streaming updates (default: true).true
ENABLE_OPTIMIZATIONNoEnable image optimization (default: true).true
ENABLE_CONVERSATION_CONTEXTNoEnable multi-turn conversation context support (default: true).true

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
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_imageC

Generate images using OpenAI GPT Image-1 model. Supports streaming with partial_images parameter.

edit_imageC

Edit existing images using OpenAI GPT Image-1 model

clear_cacheB

Clear the image generation cache

cache_statsC

Get cache statistics

list_conversationsC

List all conversation IDs

get_conversationC

Get conversation history by ID

clear_conversationC

Clear a specific conversation history

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.1/5.0

Scored across 7 tools

Disambiguation4/5

Each tool targets a distinct resource+action: image generation, image editing, cache management, and conversation history. The only mild overlap is generate_image vs edit_image, but their descriptions clearly separate creating new images from modifying existing ones. No two tools appear to do the same thing.

Naming Consistency4/5

Most tools follow a predictable verb_noun pattern (generate_image, edit_image, clear_cache, list_conversations, get_conversation, clear_conversation). The lone outlier is cache_stats, which is noun-first and breaks the verb convention, but it remains readable and unambiguous.

Tool Count5/5

Seven tools is well within the sweet spot and each one earns its place: two core image operations plus supporting cache and conversation management. Nothing feels padded or missing for the stated scope.

Completeness4/5

The core lifecycle (generate, edit) plus cache and conversation utilities is covered, including clearing and inspecting state. Minor gaps exist, such as no way to retrieve or save a previously generated image or delete individual cache entries, but agents can work around these.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues