Skip to main content
Glama

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
NameRequiredDescriptionDefault
CancellationReasonNoReason for cancellation
ChargeCancellationFeeNoWhether to charge cancellation fee
NotesNoCancellation notes
ReservationIdsYesArray 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 },
  • The cancelReservationsTool is registered by being included in the allTools array, which is used for MCP server tool definitions and execution lookup.
    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