Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MEDIA_GEN_CONFIGNoPath to the config file. Overrides the default location.
MEDIA_GEN_API_KEYNoRequired API key. Never printed by any tool.
MEDIA_GEN_BASE_URLNoOverrides the preset's API URL.
MEDIA_GEN_PROVIDERNoWhich provider preset to use. Default `ark`.ark
MEDIA_GEN_IMAGE_SIZENoDefault image size, in WxH format.
MEDIA_GEN_OUTPUT_DIRNoOverrides both default output directories for images and videos. `~` is expanded.
MEDIA_GEN_IMAGE_MODELNoDefault model for image generation.
MEDIA_GEN_VIDEO_MODELNoDefault model for video generation.
MEDIA_GEN_IMAGE_TIMEOUT_MSNoMilliseconds one image call may take. Default `180000`.180000
MEDIA_GEN_VIDEO_TIMEOUT_MSNoMilliseconds the whole video flow may take. Default `720000`.720000

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": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_imageA

Generate an image from a text prompt and save it to disk. Call this when the user asks to draw, create, render, illustrate or generate a picture, photo or artwork. Returns the absolute paths of the saved files; pass one to read_image to view it. Each call costs real money, so call it once per explicit user request.

generate_videoA

Generate a short video from a text prompt and save it to disk. Asynchronous: the provider renders in the background and this call waits, typically one to three minutes. Call it only when the user explicitly asks for a video — reference images and videos are not supported. Returns the absolute path of the saved file, the task id and how long it waited.

get_configA

Report the current configuration: provider, base URL, the image and video models in use, their defaults, the output directory, whether an API key is present (never its value), and the catalogue of known models with their constraints. Call this before changing settings, or when the user asks which model is in use.

set_configA

Change settings and persist them to the config file. Call this when the user asks to switch a model, change a default size, output directory or timeout, or change provider. Only the fields passed are changed and everything else is preserved. Changes take effect on the next call with no restart.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 4 tools

Disambiguation5/5

Each tool targets a distinct operation: image generation, video generation, config retrieval, and config modification. No overlap exists, making selection unambiguous.

Naming Consistency5/5

All tools follow the verb_noun pattern: generate_image, generate_video, get_config, set_config. The naming is consistent and predictable.

Tool Count5/5

With 4 tools, the server is well-scoped for its purpose—media generation plus configuration management. Each tool is essential and there are no redundant or missing core operations.

Completeness4/5

The core generation and configuration workflows are covered, but the reference to a read_image tool in generate_image's description suggests a potential gap for viewing outputs. No explicit file listing or deletion tools are present, though these may be outside the server's intended scope.

Maintenance

ActivityMaintained
ResponsivenessNo issues