Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PGPASSWORDNoPassword for the PostgreSQL database. The password travels apart from the URL, so it may contain any characters.
XAI_API_KEYYesYour xAI API key from console.x.ai.
DATABASE_URLYesPostgreSQL connection URL, e.g. postgresql://grok@127.0.0.1:5432/context_cache. Required.
MCP_AUTH_TOKENNoBearer token for HTTP transport authentication. Must be at least 32 characters with no whitespace. Required for non-loopback binds.
GROK_MODELS_TTLNoSeconds to cache the live xAI model catalog.86400
GROK_LOG_CONTENTNoLog content policy: "metadata" (default) or "full".metadata
GROK_MAX_COST_USDNoRun cost budget in USD for agent calls. Ceiling; a call may lower it with max_cost_usd.2.5
GROK_SHELL_TIMEOUTNoSeconds per shell command (agent tool and shell()).240
GROK_MAX_ITERATIONSNoMaximum model rounds in the agent tool loop. Ceiling; a call may lower it with max_iterations.100
GROK_MAX_READ_BYTESNoMaximum size in bytes for files loaded by the server.20971520
GROK_CHARS_PER_TOKENNoEstimate for text the API has not counted yet.3
GROK_INPUT_MAX_RATIONoprompt + file_paths + images above this share of the model's window are rejected up front.0.6
GROK_JOB_MAX_SECONDSNoRun time budget in seconds for agent calls. Ceiling; a call may lower it with max_seconds.1800
GROK_CONTEXT_MAX_RATIONoConversation ceiling: old results trimmed once, then new ones refused, then stopped: "context".0.8
GROK_FOREGROUND_TIMEOUTNoA foreground agent call still running after this many seconds is moved to a background job and returns {job_id}.60
GROK_READ_ALLOWED_PATHSNoPaths where read, file_paths, image and audio inputs are allowed. When unset, no read restrictions apply.
GROK_RETENTION_CHAT_DAYSNoDays to keep chat history messages. 0 keeps forever.30
GROK_RETENTION_JOBS_DAYSNoDays to keep job metadata (status, model, token usage, timing). 0 keeps forever.365
GROK_WRITE_ALLOWED_PATHSNoPaths where write, generate_image and text_to_speech outputs are allowed. Empty means write is denied everywhere.
GROK_TOOL_RESULT_MAX_RATIONoA single tool result above this share is replaced by "read a range / grep" instructions.0.15
GROK_RETENTION_PROJECTS_DAYSNoDays to keep project discovery data since last refresh. 0 keeps forever.90
GROK_RETENTION_JOB_CONTENT_DAYSNoDays to keep background job result and error text after the job ends. 0 keeps forever.7

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

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources