Skip to main content
Glama

Grok MCP Plugin

function_calling

Call functions using Grok AI based on user input by processing message arrays and tool definitions to execute specific actions.

Instructions

Use Grok AI to call functions based on user input

Input Schema

NameRequiredDescriptionDefault
messagesYesArray of message objects with role and content
modelNoGrok model to use (e.g., grok-2-latest, grok-3, grok-3-reasoner, grok-3-deepsearch, grok-3-mini-beta)grok-3-mini-beta
tool_choiceNoTool choice mode (auto, required, none)auto
toolsYesArray of tool objects with type, function name, description, and parameters

Input Schema (JSON Schema)

{ "properties": { "messages": { "description": "Array of message objects with role and content", "items": { "properties": { "content": { "description": "Content of the message", "type": "string" }, "role": { "description": "Role of the message sender (system, user, assistant, tool)", "enum": [ "system", "user", "assistant", "tool" ], "type": "string" }, "tool_call_id": { "description": "ID of the tool call (for tool messages)", "type": "string" } }, "required": [ "role", "content" ], "type": "object" }, "type": "array" }, "model": { "default": "grok-3-mini-beta", "description": "Grok model to use (e.g., grok-2-latest, grok-3, grok-3-reasoner, grok-3-deepsearch, grok-3-mini-beta)", "type": "string" }, "tool_choice": { "default": "auto", "description": "Tool choice mode (auto, required, none)", "enum": [ "auto", "required", "none" ], "type": "string" }, "tools": { "description": "Array of tool objects with type, function name, description, and parameters", "items": { "type": "object" }, "type": "array" } }, "required": [ "messages", "tools" ], "type": "object" }

Other Tools from Grok MCP Plugin

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/Bob-lance/grok-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server