Skip to main content
Glama

deleteLoyaltyTiers

Remove loyalty tiers from the Mews hospitality platform by specifying their unique identifiers. This tool helps manage customer loyalty programs by deleting outdated or unnecessary tier levels.

Instructions

Deletes loyalty tiers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
LoyaltyTierIdsYesUnique identifier of the loyalty tiers to be deleted

Implementation Reference

  • Handler function that performs the HTTP request to the Mews API endpoint '/api/connector/v1/loyaltyTiers/delete' to delete specified loyalty tiers.
    async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const result = await mewsRequest(config, '/api/connector/v1/loyaltyTiers/delete', args); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema defining the required 'LoyaltyTierIds' array of strings (up to 1000 items) for the loyalty tiers to delete.
    inputSchema: { type: 'object', properties: { LoyaltyTierIds: { type: 'array', items: { type: 'string' }, description: 'Unique identifier of the loyalty tiers to be deleted', maxItems: 1000 } }, required: ['LoyaltyTierIds'], additionalProperties: false },
  • Import statement for the deleteLoyaltyTiersTool.
    import { deleteLoyaltyTiersTool } from './loyalty/deleteLoyaltyTiers.js';
  • Inclusion of deleteLoyaltyTiersTool in the exported allTools array for tool registration.
    deleteLoyaltyTiersTool,

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