Skip to main content
Glama
PaddleHQ
by PaddleHQ

list_notification_logs

Retrieve delivery attempt logs for Paddle notifications to monitor webhook responses, debug failures, and track delivery status.

Instructions

This tool will list notification logs in Paddle.

When Paddle sends a notification to a webhook endpoint or email address, it records information about each delivery attempt as a log against the notification.

Every delivered notification has at least one log with information about the response that Paddle received on delivery.

Where a notification isn't delivered successfully, Paddle tries to deliver the notification again. Each delivery attempt is logged against a notification.

Use the maximum perPage by default (200) to ensure comprehensive results. Results are paginated - use the 'after' parameter with the last ID from previous results to get the next page.

Check the following details to understand the success or failure of each delivery attempt and debug issues:

  • responseCode: HTTP code sent by the responding server.

  • responseContentType: Content-Type sent by the responding server.

  • responseBody: Response body sent by the responding server. Typically empty for success responses.

  • attemptedAt: RFC 3339 datetime string of when Paddle attempted to deliver the related notification.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
notificationIdYesPaddle ID of the notification.
afterYesReturn entities after the specified Paddle ID when working with paginated endpoints.
perPageYesSet how many entities are returned per page. Returns the maximum number of results if a number greater than the maximum is requested.

Implementation Reference

  • The main handler function implementing the list_notification_logs tool. It takes Paddle instance and parameters, fetches notification logs with pagination using paddle.notifications.getLogs, and returns paginated notifications or error.
    export const listNotificationLogs = async ( paddle: Paddle, params: z.infer<typeof Parameters.listNotificationLogsParameters>, ) => { try { const { notificationId, ...queryParams } = params; const collection = paddle.notifications.getLogs(notificationId, queryParams); const notifications = await collection.next(); const pagination = paginationData(collection); return { pagination, notifications }; } catch (error) { return error; } };
  • The MCP tool schema definition for list_notification_logs, including method name, description prompt reference, input parameters schema reference, and required permission actions.
    method: "list_notification_logs", name: "List logs for a notification", description: prompts.listNotificationLogsPrompt, parameters: params.listNotificationLogsParameters, actions: { notificationLogs: { read: true, list: true, }, }, },
  • src/api.ts:53-53 (registration)
    Registration of the listNotificationLogs handler function in the toolMap under the LIST_NOTIFICATION_LOGS key for runtime execution.
    [TOOL_METHODS.LIST_NOTIFICATION_LOGS]: funcs.listNotificationLogs,
  • Constant definition for the tool method name string used across the codebase for registration and mapping.
    LIST_NOTIFICATION_LOGS: "list_notification_logs",

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/PaddleHQ/paddle-mcp-server'

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