Skip to main content
Glama

cancelReservations

Cancel hotel reservations in Mews by providing reservation IDs, specifying reasons, notes, and fee options.

Instructions

Cancels specified reservations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ReservationIdsYesArray of reservation IDs to cancel
CancellationReasonNoReason for cancellation
NotesNoCancellation notes
ChargeCancellationFeeNoWhether to charge cancellation fee

Implementation Reference

  • Executes the tool by parsing input args, sending a request to Mews API /api/connector/v1/reservations/cancel, 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 canceling reservations, with ReservationIds required.
    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 },
  • Import statement bringing the cancelReservationsTool into the central tools index.
    import { cancelReservationsTool } from './reservations/cancelReservations.js';
  • Includes the cancelReservationsTool in the allTools array for global tool registry and lookup via toolMap.
    cancelReservationsTool,

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