cancelReservations
Cancel specific reservations on the Mews MCP server by providing reservation IDs, cancellation reason, notes, and fee charging preference.
Instructions
Cancels specified reservations
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| CancellationReason | No | Reason for cancellation | |
| ChargeCancellationFee | No | Whether to charge cancellation fee | |
| Notes | No | Cancellation notes | |
| ReservationIds | Yes | Array of reservation IDs to cancel |
Implementation Reference
- The async execute method implements the tool logic by making an HTTP request to the Mews API endpoint '/api/connector/v1/reservations/cancel' with the input arguments and returning the 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/reservations/cancel', requestData); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- Input schema defining the parameters for cancelling reservations: required array of ReservationIds (up to 1000), optional CancellationReason, Notes, and ChargeCancellationFee.inputSchema: { type: 'object', properties: { ReservationIds: { type: 'array', items: { type: 'string' }, description: 'Array of reservation IDs to cancel', maxItems: 1000 }, CancellationReason: { type: 'string', description: 'Reason for cancellation' }, Notes: { type: 'string', description: 'Cancellation notes' }, ChargeCancellationFee: { type: 'boolean', description: 'Whether to charge cancellation fee' } }, required: ['ReservationIds'], additionalProperties: false },
- src/tools/index.ts:109-109 (registration)The cancelReservationsTool is registered by being included in the allTools array, which is used for MCP server tool definitions and execution lookup.cancelReservationsTool,