call_grok
Send a prompt to Grok (xAI) and receive an AI-generated response. Configure model, tokens, and temperature for tailored answers.
Instructions
Call Grok (xAI) from Claude or any MCP client.
Phone-first: uses only requests. Set XAI_API_KEY (or GROK_API_KEY) in the environment before starting the server.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "call_grok"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | grok-3 | |
| prompt | Yes | ||
| system | No | ||
| max_tokens | No | ||
| temperature | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||