Skip to main content
Glama
PaddleHQ

Paddle MCP Server

Official
by PaddleHQ

list_notification_logs

Read-only

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",
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations provide readOnlyHint=true, and the description aligns with this by describing a listing/log examination function. The description adds valuable behavioral context beyond annotations: explains pagination behavior, default usage of maximum perPage (200), and what details to check for debugging. It doesn't mention rate limits or authentication requirements, but adds useful operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and appropriately sized. It starts with the core purpose, provides context about what notification logs are, then gives usage guidance and debugging details. Some sentences could be more concise (e.g., the debugging details section is quite detailed), but overall it's efficient and front-loaded with essential information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only listing tool with 3 parameters and no output schema, the description provides good completeness. It explains what the tool returns (notification logs with specific fields), how to use pagination, and debugging context. The main gap is lack of output format details since there's no output schema, but the description compensates reasonably by listing key response fields to examine.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so parameters are well-documented in the schema. The description adds some semantic context: explains that 'after' should use the last ID from previous results for pagination, and that perPage maximum is 200. However, it doesn't provide additional meaning for notificationId beyond what's in the schema. Baseline 3 is appropriate given high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'list notification logs in Paddle' with specific context about what notification logs are (delivery attempt records). It distinguishes from sibling tools like 'list_notifications' by focusing specifically on logs rather than notifications themselves, and from 'replay_notification' by being read-only versus action-oriented.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool: to examine delivery attempts and debug issues. It mentions using maximum perPage by default and pagination with 'after' parameter. However, it doesn't explicitly state when NOT to use it or name specific alternatives among siblings, though the context implies it's for logs rather than notifications.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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