Skip to main content
Glama

mcp-google-sheets

cancel-booking.ts677 B
import { createAction } from '@activepieces/pieces-framework'; import { simplybookAuth, makeJsonRpcCall, SimplybookAuth, bookingDropdown } from '../common'; export const cancelBooking = createAction({ auth: simplybookAuth, name: 'cancel_booking', displayName: 'Cancel Booking', description: 'Cancel an existing booking. Returns true on success.', props: { bookingId: bookingDropdown }, async run(context) { const auth = context.auth as SimplybookAuth; const { bookingId } = context.propsValue; const params = [bookingId]; const result = await makeJsonRpcCall<boolean>(auth, 'cancelBooking', params); return { success: result }; } });

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/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server