Skip to main content
Glama
PaddleHQ

Paddle MCP Server

Official
by PaddleHQ

create_notification_setting

Create notification destinations in Paddle to receive webhook or email alerts for billing events like transactions, subscriptions, and customer updates.

Instructions

This tool will create a new notification setting (notification destination) in Paddle.

Create notification destinations to get notifications, like webhooks, for events that happen in Paddle. Paddle recommends handling the storage and provisioning of access after purchase and subscription using webhooks.

The type describes how and where the event should be sent:

  • email: Deliver to an email address. Add the email address to the destination parameter.

  • url: Deliver to a webhook endpoint. Add the full URL including the path to the destination parameter.

The destination URL must be publicly accessible. localhost is not a valid address. For local development, use a tunnelling service like ngrok or Hookdeck to generate a public URL.

Pass an array of event type names to subscribedEvents to say which events should be subscribed to. Paddle responds with the full event type object for each event type.

Provide the trafficSource to define if the notification destination should be sent real events and/or simulated test events:

  • platform: Deliver real platform events. These are sent when real events which are subscribed to take place.

  • simulation: Deliver simulated events. These are sent when simulations are run to test single events or scenarios, usually to verify implementations of Paddle.

  • all: Deliver both platform (real) and simulation (test) events.

Create notification destinations as many as needed, but only 10 can be active as per the active boolean parameter. Prompt users to toggle in the dashboard. Alternatively, use the list_notification_setting tool, verify which should be active, and use the update_notification_setting tool to toggle the boolean accordingly.

If successful, the response includes a copy of the new notification setting entity. 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
NameRequiredDescriptionDefault
descriptionYesShort description for this notification destination. Shown in the Paddle Dashboard.
typeYesWhere notifications should be sent for this destination.
destinationYesWebhook endpoint URL or email address.
apiVersionNoMust be `1` as the only current valid Paddle API version. If omitted, defaults to `1`.
includeSensitiveFieldsNoWhether potentially sensitive fields should be sent to this notification destination. If omitted, defaults to `false`.
subscribedEventsYesSubscribed events for this notification destination. When creating or updating a notification destination, pass an array of event type names only.
trafficSourceNoWhether Paddle should deliver real platform events, simulation events or both to this notification destination. If omitted, defaults to `platform`.

Implementation Reference

  • The core handler function that executes the tool logic by calling the Paddle SDK's notificationSettings.create method with validated input parameters.
    export const createNotificationSetting = async (
      paddle: Paddle,
      params: z.infer<typeof Parameters.createNotificationSettingParameters>,
    ) => {
      try {
        const notificationSetting = await paddle.notificationSettings.create(params);
        return notificationSetting;
      } catch (error) {
        return error;
      }
    };
  • src/tools.ts:698-708 (registration)
    Registers the MCP tool including method name, human-readable name, description prompt, Zod input schema reference, and required permissions/actions.
      method: "create_notification_setting",
      name: "Create a notification setting",
      description: prompts.createNotificationSettingPrompt,
      parameters: params.createNotificationSettingParameters,
      actions: {
        notificationSettings: {
          write: true,
          create: true,
        },
      },
    },
  • References the Zod schema for input validation (createNotificationSettingParameters). The actual schema definition is imported from parameters.js.
    parameters: params.createNotificationSettingParameters,
  • src/api.ts:46-46 (registration)
    Maps the tool method constant to the exported handler function in the central toolMap used by the PaddleAPI.
    [TOOL_METHODS.CREATE_NOTIFICATION_SETTING]: funcs.createNotificationSetting,
  • src/constants.ts:38-38 (registration)
    Defines the string constant for the tool's method name used across registrations.
    CREATE_NOTIFICATION_SETTING: "create_notification_setting",
Behavior4/5

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

The description adds valuable behavioral context beyond the annotations (readOnlyHint=false, destructiveHint=false). It explains that only 10 destinations can be active, recommends handling storage and provisioning, warns about endpointSecretKey security, and details trafficSource options (platform, simulation, all). This enriches the agent's understanding without contradicting annotations.

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

Conciseness3/5

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

The description is front-loaded with the core purpose but becomes verbose with detailed explanations of parameters and edge cases. While informative, some sentences (e.g., about Paddle recommendations and local development) could be trimmed for conciseness. It's structured but not optimally efficient.

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?

Given the complexity (7 parameters, no output schema) and rich annotations, the description is largely complete: it covers purpose, usage, parameters, behavioral constraints (active limit, security), and response details. However, it lacks explicit error handling or rate limit information, which slightly reduces completeness for a creation tool.

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

Parameters4/5

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

With 100% schema description coverage, the baseline is 3, but the description adds meaningful semantics: it explains the 'type' parameter with email/url examples and destination requirements, clarifies 'subscribedEvents' returns full event type objects, details 'trafficSource' options with real vs. simulated events, and notes 'active' boolean limitations. This goes beyond the schema's enum and description fields.

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 'will create a new notification setting (notification destination) in Paddle' with specific details about what it creates. It distinguishes from siblings by focusing on notification settings rather than addresses, adjustments, customers, etc., and mentions related tools like list_notification_setting and update_notification_setting for context.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool: 'Create notification destinations to get notifications, like webhooks, for events that happen in Paddle.' It also mentions alternatives like using the dashboard or other tools (list_notification_setting, update_notification_setting) for toggling active status, and advises on local development with tunneling services.

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