Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GROK_MODELNoDefault model for all tools.grok-4.7
XAI_API_KEYYesxAI API key (get one from the xAI console).
XAI_BASE_URLNoOverride for proxies or gateways.https://api.x.ai/v1

Instructions

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

Tools backed by Grok (xAI). Requires the XAI_API_KEY environment variable.

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
ask_grokB

Ask Grok (xAI) any question and get its answer. Useful for a second opinion, research or brainstorming.

grok_review_codeA

Have Grok review a code snippet for bugs, security issues, performance and readability.

grok_explain_errorA

Explain an error message or stack trace with Grok: likely root cause and step-by-step fix.

grok_summarizeC

Summarize long text (docs, logs, discussions) with Grok.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 4 tools

Disambiguation4/5

The specialized tools for code review, error explanation, and summarization are clearly distinct from each other. However, ask_grok is a general-purpose tool that overlaps with all three specialized tools, so an agent may sometimes be unsure whether to use the general or specialized variant.

Naming Consistency3/5

All names are snake_case and include the provider name, but the pattern is mixed: ask_grok starts with the action verb, while grok_review_code, grok_explain_error, and grok_summarize use a provider prefix followed by the action. The naming remains readable but is not fully consistent.

Tool Count5/5

Four tools is a well-scoped size for an LLM-provider wrapper. Each tool has a clear, non-redundant purpose and the count avoids both thinness and bloat.

Completeness4/5

The surface covers common Grok use cases: general Q&A, code review, error explanation, and summarization. Minor gaps exist around multi-turn conversation, custom system prompts, or file-based input, but the core workflows are represented.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues