Skip to main content
Glama

delete_webhook

Remove a webhook from the Klaviyo MCP Server by specifying its ID to stop receiving automated notifications from Klaviyo's marketing platform.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID of the webhook to delete

Implementation Reference

  • Handler function that executes the deletion of a webhook by ID using the Klaviyo client, returning success or error response.
    async (params) => { try { await klaviyoClient.del(`/webhooks/${params.id}/`); return { content: [{ type: "text", text: "Webhook deleted successfully" }] }; } catch (error) { return { content: [{ type: "text", text: `Error deleting webhook: ${error.message}` }], isError: true }; } },
  • Zod input schema requiring a webhook ID string.
    { id: z.string().describe("ID of the webhook to delete") },
  • Tool registration call for 'delete_webhook' with schema, handler, and description.
    server.tool( "delete_webhook", { id: z.string().describe("ID of the webhook to delete") }, async (params) => { try { await klaviyoClient.del(`/webhooks/${params.id}/`); return { content: [{ type: "text", text: "Webhook deleted successfully" }] }; } catch (error) { return { content: [{ type: "text", text: `Error deleting webhook: ${error.message}` }], isError: true }; } }, { description: "Delete a webhook from Klaviyo" } );

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/ivan-rivera-projects/Klaviyo-MCP-Server-Enhanced'

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