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
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the webhook to delete |
Implementation Reference
- src/tools/webhooks.js:79-91 (handler)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 }; } },
- src/tools/webhooks.js:76-78 (schema)Zod input schema requiring a webhook ID string.{ id: z.string().describe("ID of the webhook to delete") },
- src/tools/webhooks.js:74-93 (registration)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" } );