delete_webhook
Remove a registered webhook from the Lightning Wallet MCP server to stop receiving notifications or updates.
Instructions
Delete a registered webhook. REQUIRES AGENT KEY.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| webhook_id | Yes | ID of the webhook to delete |
Implementation Reference
- src/lightning-faucet.ts:645-656 (handler)Actual implementation of the deleteWebhook tool in the LightningFaucetClient class.
async deleteWebhook(webhookId: number): Promise<{ message: string; rawResponse: ApiResponse; }> { const result = await this.request<ApiResponse & { message?: string }>('delete_webhook', { webhook_id: webhookId, }); return { message: result.message || 'Webhook deleted', rawResponse: result, }; } - src/index.ts:1195-1209 (handler)The MCP tool handler in index.ts that dispatches 'delete_webhook' calls to the client.
case 'delete_webhook': { const parsed = DeleteWebhookSchema.parse(args); const result = await session.requireClient().deleteWebhook(parsed.webhook_id); return { content: [ { type: 'text', text: JSON.stringify({ success: true, message: result.message || 'Webhook deleted successfully', }, null, 2), }, ], }; } - src/index.ts:171-173 (schema)Input validation schema for 'delete_webhook'.
const DeleteWebhookSchema = z.object({ webhook_id: z.number().int().positive().describe('ID of the webhook to delete'), }); - src/index.ts:509-518 (registration)Registration of the 'delete_webhook' tool in the MCP server.
name: 'delete_webhook', description: 'Delete a registered webhook. REQUIRES AGENT KEY.', inputSchema: { type: 'object', properties: { webhook_id: { type: 'integer', description: 'ID of the webhook to delete' }, }, required: ['webhook_id'], }, },