askgrokmcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| XAI_API_KEY | Yes | Your xAI API key | |
| LOG_REQUESTS | No | Logs tool/xAI request metadata to stderr | false |
| GROK_CHAT_MODEL | No | Default model for ask_grok, grok_consensus, and grok_validate | grok-4.3 |
| XAI_MAX_RETRIES | No | Number of retries for transient errors | 2 |
| GROK_IMAGE_MODEL | No | Default model for generate_image | grok-imagine-image-quality |
| SAFE_WRITE_BASE_DIR | No | Base directory for image writes | process.cwd() |
| LOG_REQUEST_PAYLOADS | No | Includes full request payloads in logs (use carefully) | false |
| XAI_REQUEST_TIMEOUT_MS | No | Timeout per xAI API request in milliseconds | 30000 |
| XAI_RETRY_BASE_DELAY_MS | No | Base delay for exponential retry backoff | 500 |
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
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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_consensusB | Runs a full iterative Consensus Validation Protocol (CVP) between Claude and Grok. Returns a structured final summary. Default 3 rounds, maximum 10. 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
The three Grok-query tools (ask_grok, grok_consensus, grok_validate) all ultimately call Grok, but their descriptions carve out distinct roles: single question, multi-round consensus, and scored validation scorecard. The boundary between ask_grok with a review-style prompt and grok_validate is the only real point of confusion, and generate_image/list_models are unambiguous.
Most names are verb_noun snake_case (generate_image, ask_grok, list_models), but grok_consensus and grok_validate invert the pattern with a resource prefix, and the 'grok_' prefix is applied inconsistently. Readable overall, but the convention is mixed.
Five tools is a tight, well-scoped surface for a Grok API wrapper: chat, image generation, model discovery, and two higher-level workflow tools. Each tool has a clear reason to exist and nothing feels padded or missing at the count level.
Core lifecycle for the domain is covered: discover models, ask questions, generate images, and run validation/consensus workflows. Minor gaps remain — no multi-turn conversation continuation, no image/vision input, no streaming or token/usage inspection — but agents can work around these.