delete_webhook
Remove a webhook endpoint from the QR for Agent MCP server to stop event reception and delete associated delivery logs.
Instructions
Delete a webhook endpoint and all its delivery logs. The endpoint will stop receiving events immediately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| webhook_id | Yes | The ID of the webhook to delete. Use list_webhooks to find IDs. |
Implementation Reference
- packages/mcp/src/tools.ts:694-696 (handler)The tool handler for delete_webhook in the MCP tool definitions file. It makes a DELETE request to the /api/webhooks/{webhook_id} endpoint.
handler: async (input: { webhook_id: number }) => { return apiRequest(`/api/webhooks/${input.webhook_id}`, { method: "DELETE" }); }, - packages/mcp/src/tools.ts:686-696 (registration)The registration of the delete_webhook tool within the tools configuration object.
delete_webhook: { description: "Delete a webhook endpoint and all its delivery logs. The endpoint will stop receiving events immediately.", inputSchema: z.object({ webhook_id: z .number() .describe("The ID of the webhook to delete. Use list_webhooks to find IDs."), }), handler: async (input: { webhook_id: number }) => { return apiRequest(`/api/webhooks/${input.webhook_id}`, { method: "DELETE" }); },