Skip to main content
Glama

update_assistant

Modify and customize an existing AI assistant by updating its ID, name, API key, welcome message, prompt, AI model, and other parameters for enhanced functionality on the VoiceAI-MCP-VAVicky server.

Instructions

Update an existing assistant

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
activeNoWhether assistant is active
ai_platformNo
apiKeyNoOpenAI API Key
assistant_idYesAssistant ID
assistant_typeNo
booking_botNoIs booking bot
calendarNoCalendar ID
custom_fieldNoCustom field
locationNoGoHighLevel Location
nameNoAssistant name
openai_modelNoAI Model
openai_temperatureNoAI Temperature (0-2)
promptNoInstructions/Prompt
timezoneNoTimezone
welcome_messageNoWelcome message

Implementation Reference

  • Handler implementation for the 'update_assistant' tool. Constructs a PATCH request to the API endpoint `/assistants/{assistant_id}` using filtered arguments excluding the assistant_id.
    case 'update_assistant': url = `${this.baseUrl}/assistants/${args.assistant_id}`; method = 'PATCH'; const { assistant_id, ...updateData } = args; body = this.filterEmptyValues(updateData); break;
  • Input schema definition for the 'update_assistant' tool, specifying the parameters and their types, with 'assistant_id' as required.
    inputSchema: { type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, name: { type: 'string', description: 'Assistant name' }, apiKey: { type: 'string', description: 'OpenAI API Key' }, welcome_message: { type: 'string', description: 'Welcome message' }, prompt: { type: 'string', description: 'Instructions/Prompt' }, active: { type: 'boolean', description: 'Whether assistant is active' }, assistant_type: { type: 'string', enum: ['Text Only', 'Voice Only', 'Text & Voice', 'Voice & Text'] }, ai_platform: { type: 'string', enum: ['openai', 'gemini', 'openrouter', 'deepseek'] }, openai_model: { type: 'string', description: 'AI Model' }, openai_temperature: { type: 'number', description: 'AI Temperature (0-2)' }, booking_bot: { type: 'boolean', description: 'Is booking bot' }, location: { type: 'string', description: 'GoHighLevel Location' }, calendar: { type: 'string', description: 'Calendar ID' }, timezone: { type: 'string', description: 'Timezone' }, custom_field: { type: 'string', description: 'Custom field' } }, required: ['assistant_id']
  • index.js:205-228 (registration)
    Registration of the 'update_assistant' tool in the list of available tools returned by ListToolsRequestSchema handler.
    { name: 'update_assistant', description: 'Update an existing assistant', inputSchema: { type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, name: { type: 'string', description: 'Assistant name' }, apiKey: { type: 'string', description: 'OpenAI API Key' }, welcome_message: { type: 'string', description: 'Welcome message' }, prompt: { type: 'string', description: 'Instructions/Prompt' }, active: { type: 'boolean', description: 'Whether assistant is active' }, assistant_type: { type: 'string', enum: ['Text Only', 'Voice Only', 'Text & Voice', 'Voice & Text'] }, ai_platform: { type: 'string', enum: ['openai', 'gemini', 'openrouter', 'deepseek'] }, openai_model: { type: 'string', description: 'AI Model' }, openai_temperature: { type: 'number', description: 'AI Temperature (0-2)' }, booking_bot: { type: 'boolean', description: 'Is booking bot' }, location: { type: 'string', description: 'GoHighLevel Location' }, calendar: { type: 'string', description: 'Calendar ID' }, timezone: { type: 'string', description: 'Timezone' }, custom_field: { type: 'string', description: 'Custom field' } }, required: ['assistant_id'] }
  • Helper function used by update_assistant handler to remove empty values from the update data before sending the API request.
    filterEmptyValues(obj) { const cleaned = {}; for (const [key, value] of Object.entries(obj)) { if (value !== undefined && value !== null && value !== '') { cleaned[key] = value; } } return cleaned; }

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