Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IMGATE_CONFIGNoPath to the config.toml file if you keep the config elsewhere.
IMGATE_PROFILENoSets the default profile, alongside default_profile in the config.
OPENROUTER_API_KEYNoAPI key for OpenRouter, read from the environment variable named by the OpenRouter profile. Keys come from environment variables named by the profile, never from the config file.

Instructions

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

Image generation. Before generating from a vague, very short or negation-heavy prompt, or when the user asks for prompt help, call check_prompt (free) and prompt_guide for best practices. Rewrite negations as positive statements, keep the user's wording and intent, mark anything you add as a suggestion, and tell the user what you changed. Ask at most three questions (purpose and aspect ratio, style, exact text). Confirm before costly settings (n above 1, 4K). Use the default profile unless the user names another. A profile that bills money (OpenRouter) is only for a request that names it. After generating, report the file path, final prompt, profile, model, seed and cost. Never replace a failed raster request with an SVG or HTML drawing.

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_imageA

Generate image(s) via OpenRouter or a self-hosted OpenAI-compatible server. Saves files plus a JSON sidecar (full request, seed, cost) and returns paths and a preview.

list_image_modelsB

List models for a profile. For OpenRouter this is image models with supported parameters; for OpenAI-style servers it is everything the server lists.

check_promptA

Review an image prompt before generating (no API call, no cost): negation warnings and hints about missing style, framing, lighting or unquoted text. Heuristic only.

prompt_guideA

Return the image-prompting best-practices guide (spec fields, negation handling, text, edits, vendor notes for FLUX.2, Gemini, GPT Image). Use it to coach the user. Optionally pass a section keyword such as 'negations' or 'edits'.

list_profilesB

List configured endpoint profiles (no secrets).

list_presetsB

List configured presets.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 6 tools

Disambiguation4/5

Each tool targets a distinct object: generating images, reviewing prompts, reading a guide, and listing models/profiles/presets. The only mild overlap is prompt_guide (best-practices documentation) versus check_prompt (heuristic validation of a specific prompt), but the descriptions make the split clear enough. The three list_* tools are separated by resource type, so misselection risk is low.

Naming Consistency4/5

Five of six tools follow a verb_noun pattern (generate_image, list_image_models, check_prompt, list_profiles, list_presets), all in snake_case. prompt_guide breaks the pattern as a noun phrase, but it reads naturally and is unambiguous. Minor deviation only.

Tool Count5/5

Six tools is tightly scoped for an image-generation helper: one action tool, one validation tool, one documentation tool, and three discovery/list tools. Each earns its place with no filler or redundancy.

Completeness3/5

Core generation plus prompt assistance and discovery are covered, but the surface is read-only for configuration: profiles and presets can be listed but not created, updated, or deleted. There is also no image-edit or history/inspect tool, even though the guide discusses edits, leaving notable gaps.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues