Skip to main content
Glama

mergeCustomers

Combine two customer records into one by merging data from a source customer into a target customer within the Mews hospitality platform.

Instructions

Merges two customers together

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
SourceCustomerIdYesID of customer to merge from
TargetCustomerIdYesID of customer to merge into

Implementation Reference

  • The main handler function for the mergeCustomers tool, which makes an HTTP request to the Mews API endpoint '/api/connector/v1/customers/merge' to perform the customer merge.
    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/merge', requestData); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema defining the required parameters SourceCustomerId and TargetCustomerId for the mergeCustomers tool.
    inputSchema: { type: 'object', properties: { SourceCustomerId: { type: 'string', description: 'ID of customer to merge from' }, TargetCustomerId: { type: 'string', description: 'ID of customer to merge into' } }, required: ['SourceCustomerId', 'TargetCustomerId'], additionalProperties: false },
  • Import statement bringing the mergeCustomersTool into the central tools index.
    import { mergeCustomersTool } from './customers/mergeCustomers.js';
  • Inclusion of mergeCustomersTool in the allTools array, registering it for use.
    mergeCustomersTool,

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