Skip to main content
Glama

chat_with_assistant

Send messages to a specific AI assistant through chat threads, with optional audio responses for voice-based interactions.

Instructions

Chat with a specific assistant

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assistant_idYesAssistant ID
messageYesMessage to send
thread_idYesChat/Thread ID
audioNoEnable audio response

Implementation Reference

  • Handler logic for the 'chat_with_assistant' tool. Sets up a POST request to the backend API `/assistants/{assistant_id}/chat` endpoint, passing message, thread_id, and optional audio flag.
    case 'chat_with_assistant': url = `${this.baseUrl}/assistants/${args.assistant_id}/chat?audio=${args.audio || false}`; method = 'POST'; body = { message: args.message, thread_id: args.thread_id }; break;
  • Input schema definition for the 'chat_with_assistant' tool, specifying parameters: assistant_id, message, thread_id (required), and optional audio.
    inputSchema: { type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, message: { type: 'string', description: 'Message to send' }, thread_id: { type: 'string', description: 'Chat/Thread ID' }, audio: { type: 'boolean', description: 'Enable audio response', default: false } }, required: ['assistant_id', 'message', 'thread_id'] }
  • index.js:298-311 (registration)
    Registration of the 'chat_with_assistant' tool in the list of available tools returned by ListToolsRequestHandler.
    { name: 'chat_with_assistant', description: 'Chat with a specific assistant', inputSchema: { type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, message: { type: 'string', description: 'Message to send' }, thread_id: { type: 'string', description: 'Chat/Thread ID' }, audio: { type: 'boolean', description: 'Enable audio response', default: false } }, required: ['assistant_id', 'message', 'thread_id'] } },

Latest Blog Posts

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/Business-On-Steroids/MCP-VoiceAI-WhiteLabel'

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