get_notification_setting
Retrieve notification settings and webhook verification details from Paddle by ID to manage webhook destinations securely.
Instructions
This tool will retrieve a notification setting (notification destination) from Paddle by its ID.
The endpointSecretKey is returned for webhook signature verification, but is a secure value and should never be shared, never be made publicly-accessible, and should only be stored securely.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notificationSettingId | Yes | Paddle ID of the notification setting (destination). |
Implementation Reference
- src/functions.ts:462-473 (handler)The handler function that executes the tool logic: retrieves a notification setting by ID using the Paddle SDK's notificationSettings.get method.export const getNotificationSetting = async ( paddle: Paddle, params: z.infer<typeof Parameters.getNotificationSettingParameters>, ) => { try { const { notificationSettingId } = params; const notificationSetting = await paddle.notificationSettings.get(notificationSettingId); return notificationSetting; } catch (error) { return error; } };
- src/tools.ts:709-720 (registration)Tool definition and registration in the tools array, including method name, description from prompts, parameters schema, and required actions for notificationSettings.{ method: "get_notification_setting", name: "Get a notification setting", description: prompts.getNotificationSettingPrompt, parameters: params.getNotificationSettingParameters, actions: { notificationSettings: { read: true, get: true, }, }, },
- src/api.ts:47-47 (registration)Mapping of the tool method constant to the handler function in the toolMap for execution.[TOOL_METHODS.GET_NOTIFICATION_SETTING]: funcs.getNotificationSetting,
- src/constants.ts:39-39 (helper)Constant definition for the tool method name used in registrations.GET_NOTIFICATION_SETTING: "get_notification_setting",
- src/tools.ts:713-713 (schema)Reference to the Zod schema for input parameters (getNotificationSettingParameters). Note: Actual schema definition not found in searchable files.parameters: params.getNotificationSettingParameters,