Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
XAI_API_KEYYesYour xAI API key
LOG_REQUESTSNoLogs tool/xAI request metadata to stderrfalse
GROK_CHAT_MODELNoDefault model for ask_grok, grok_consensus, and grok_validategrok-4.3
XAI_MAX_RETRIESNoNumber of retries for transient errors2
GROK_IMAGE_MODELNoDefault model for generate_imagegrok-imagine-image-quality
SAFE_WRITE_BASE_DIRNoBase directory for image writesprocess.cwd()
LOG_REQUEST_PAYLOADSNoIncludes full request payloads in logs (use carefully)false
XAI_REQUEST_TIMEOUT_MSNoTimeout per xAI API request in milliseconds30000
XAI_RETRY_BASE_DELAY_MSNoBase delay for exponential retry backoff500

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
ask_grokB

Ask Grok a question and get a response. Default model: grok-4.3. Supports system prompts and sampling parameters (temperature, max_tokens, top_p). Run list_models to see all available model options.

generate_imageB

Generate an image using Grok's Aurora image model and save it to a local file. Default model: grok-imagine-image-quality. Use the optional 'model' parameter to use a different image model.

list_modelsA

List all xAI models available to your account, including their IDs and capabilities. Use this to discover which models you can pass to ask_grok or generate_image. You can also filter by type: 'chat' for language models or 'image' for image generation.

grok_consensusA

Runs a full iterative Consensus Validation Protocol (CVP) between Claude and Grok. Returns a structured final summary. Default 3-5 rounds. Supports custom round count via the 'rounds' argument.

grok_validateA

Runs a rigorous Validation Protocol on any artifact (code, plan, research, prompt, PR, architecture, etc.). Produces a scored scorecard, identifies weaknesses, and returns an improved version. Use this as your mandatory quality gate before shipping complex work. Default model: grok-4.3.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: Q&A, image generation, consensus validation, artifact validation, and model listing. No overlap or ambiguity.

Naming Consistency4/5

All names use lowercase with underscores, but there is a slight inconsistency: most tools follow verb_noun (ask_grok, generate_image, list_models) while two start with the product prefix 'grok_' (grok_consensus, grok_validate), breaking the verb-first pattern.

Tool Count5/5

5 tools is well-scoped for a server that wraps Grok API functionality—enough to cover key interactions without bloat.

Completeness5/5

The tool surface covers core Grok capabilities: query, image generation, consensus, validation, and model discovery. No obvious missing operations for the intended scope.

Maintenance

ActivityMaintained
ResponsivenessNo issues