Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default | 
|---|---|---|---|
| GROK_API_KEY | Yes | Your API key from x.ai (https://x.ai) | 
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description | 
|---|---|
| No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description | 
|---|---|
| No resources | |
Tools
Functions exposed to the LLM to take actions
| Name | Description | 
|---|---|
| list_models | List all models available for use with the Grok API | 
| get_model | Get details about a specific model | 
| create_chat_completion | Create a chat completion with the Grok API | 
| create_completion | Create a text completion with the Grok API | 
| create_embeddings | Create embeddings for text with the Grok API |