Skip to main content
Glama

deleteLoyaltyPrograms

Remove loyalty programs from the Mews hospitality platform by specifying their unique identifiers. This tool helps manage customer loyalty offerings by deleting outdated or inactive programs.

Instructions

Deletes loyalty programs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
LoyaltyProgramIdsYesUnique identifier of the loyalty programs to be deleted

Implementation Reference

  • The execute function that handles the tool logic by making an HTTP request to the Mews API endpoint '/api/connector/v1/loyaltyPrograms/delete' and returning the result as JSON.
    async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const result = await mewsRequest(config, '/api/connector/v1/loyaltyPrograms/delete', args); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema defining the required 'LoyaltyProgramIds' as an array of strings (up to 1000 items).
    inputSchema: { type: 'object', properties: { LoyaltyProgramIds: { type: 'array', items: { type: 'string' }, description: 'Unique identifier of the loyalty programs to be deleted', maxItems: 1000 } }, required: ['LoyaltyProgramIds'], additionalProperties: false },
  • Registers deleteLoyaltyProgramsTool in the allTools array alongside other loyalty tools.
    updateLoyaltyProgramsTool, deleteLoyaltyProgramsTool,
  • Imports the deleteLoyaltyProgramsTool for registration.
    import { deleteLoyaltyProgramsTool } from './loyalty/deleteLoyaltyPrograms.js';

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