Skip to main content
Glama

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
NameRequiredDescriptionDefault
webhook_idYesID of the webhook to delete

Implementation Reference

  • 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,
      };
    }
  • 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),
          },
        ],
      };
    }
  • 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'],
      },
    },

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/lightningfaucet/lightning-wallet-mcp'

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