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
| Name | Required | Description | Default |
|---|---|---|---|
| LoyaltyTierIds | Yes | Unique 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 },
- src/tools/index.ts:84-84 (registration)Import statement for the deleteLoyaltyTiersTool.import { deleteLoyaltyTiersTool } from './loyalty/deleteLoyaltyTiers.js';
- src/tools/index.ts:169-169 (registration)Inclusion of deleteLoyaltyTiersTool in the exported allTools array for tool registration.deleteLoyaltyTiersTool,