update_white_label
Modify white label settings, including name, description, domain, and color, to customize branding for VoiceAI-MCP-VAVicky integrations.
Instructions
Update White Label details: name, description, domain and color
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| whitelabel_color | No | White label color (hex code) | |
| whitelabel_description | No | White label description | |
| whitelabel_domain | No | White label domain | |
| whitelabel_name | No | White label name |
Implementation Reference
- index.js:497-506 (handler)Specific handler case for the 'update_white_label' tool within the executeTool method. It sets up a PATCH request to the '/user' endpoint with the whitelabel parameters from the input arguments.case 'update_white_label': url = `${this.baseUrl}/user`; method = 'PATCH'; body = { whitelabel_name: args.whitelabel_name, whitelabel_description: args.whitelabel_description, whitelabel_domain: args.whitelabel_domain, whitelabel_color: args.whitelabel_color }; break;
- index.js:50-62 (schema)Tool registration and schema definition in the listTools response, including input schema for the four whitelabel parameters.{ name: 'update_white_label', description: 'Update White Label details: name, description, domain and color', inputSchema: { type: 'object', properties: { whitelabel_name: { type: 'string', description: 'White label name' }, whitelabel_description: { type: 'string', description: 'White label description' }, whitelabel_domain: { type: 'string', description: 'White label domain' }, whitelabel_color: { type: 'string', description: 'White label color (hex code)' } }, required: [] }
- index.js:460-484 (registration)Registration of the CallToolRequestSchema handler, which dispatches to executeTool based on tool name, enabling execution of 'update_white_label'.this.server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; if (!this.apiKey) { throw new McpError( ErrorCode.InvalidRequest, 'VAVICKY_API_KEY environment variable is required' ); } try { const result = await this.executeTool(name, args || {}); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2) } ] }; } catch (error) { throw new McpError( ErrorCode.InternalError, `Tool execution failed: ${error.message}` ); } });