Skip to main content
Glama

updateCustomers

Modify personal details of existing customers, including names, contact info, birth data, citizenship, and occupation, via Mews MCP server's API integration.

Instructions

Updates personal information of existing customers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
CustomerUpdatesYesArray of customer update objects

Implementation Reference

  • The execute method implementing the tool logic: parses input, calls Mews API /api/connector/v1/customers/update, and returns JSON result.
    async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const inputArgs = args as Record<string, unknown>; const requestData = { ...inputArgs }; const result = await mewsRequest(config, '/api/connector/v1/customers/update', requestData); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema defining the required CustomerUpdates array of objects with customer fields to update, requiring CustomerId.
    inputSchema: { type: 'object', properties: { CustomerUpdates: { type: 'array', items: { type: 'object', properties: { CustomerId: { type: 'string', description: 'Unique identifier of the customer to update' }, FirstName: { type: 'string', description: 'Customer first name' }, LastName: { type: 'string', description: 'Customer last name' }, SecondLastName: { type: 'string', description: 'Customer second last name' }, Title: { type: 'string', description: 'Customer title (Mr, Ms, etc.)' }, Email: { type: 'string', description: 'Customer email address' }, Phone: { type: 'string', description: 'Customer phone number' }, BirthDate: { type: 'string', description: 'Customer birth date (ISO 8601)' }, BirthPlace: { type: 'string', description: 'Customer birth place' }, CitizenshipCountryCode: { type: 'string', description: 'ISO country code of citizenship' }, NationalityCountryCode: { type: 'string', description: 'ISO country code of nationality' }, GenderCode: { type: 'string', description: 'Gender code' }, LanguageCode: { type: 'string', description: 'Preferred language ISO code' }, LoyaltyCode: { type: 'string', description: 'Loyalty program code' }, Occupation: { type: 'string', description: 'Customer occupation' }, TaxIdentifier: { type: 'string', description: 'Tax identification number' } }, required: ['CustomerId'] }, description: 'Array of customer update objects' } }, required: ['CustomerUpdates'], additionalProperties: false },
  • Imports the updateCustomersTool for registration in the tools index.
    import { updateCustomersTool } from './customers/updateCustomers.js';
  • Registers updateCustomersTool in the allTools array used for tool registry and lookup.
    updateCustomersTool,

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/code-rabi/mews-mcp'

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