Skip to main content
Glama
PaddleHQ
by PaddleHQ

list_subscriptions

Retrieve and filter subscriptions from your Paddle account with pagination, sorting, and parameters like customer ID, price ID, status, and scheduled changes. Manage subscription data efficiently.

Instructions

This tool will list subscriptions from your Paddle account.

Use the maximum perPage by default (200) to ensure comprehensive results. Filter subscriptions by address ID, customer ID, price ID, collection mode, scheduled change action, and status as needed. Results are paginated - use the 'after' parameter with the last ID from previous results to get the next page. Sort results using orderBy parameter. Amounts are in the smallest currency unit (e.g., cents).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressIdNoReturn entities related to the specified address.
afterNoReturn entities after the specified Paddle ID when working with paginated endpoints.
collectionModeNoReturn entities that match the specified collection mode.
customerIdNoReturn entities related to the specified customer.
idNoReturn only the IDs specified.
orderByNoOrder returned entities by field and direction.
perPageNoSet how many entities are returned per page. Default: 50; Maximum: 200.
priceIdNoReturn entities related to the specified price.
scheduledChangeActionNoReturn subscriptions that have a scheduled change.
statusNoReturn entities that match the specified status.

Implementation Reference

  • The main handler function for the 'list_subscriptions' tool. It takes a Paddle instance and parameters, lists subscriptions using paddle.subscriptions.list(params), fetches the first page with next(), computes pagination data, and returns paginated subscriptions or an error.
    export const listSubscriptions = async ( paddle: Paddle, params: z.infer<typeof Parameters.listSubscriptionsParameters>, ) => { try { const collection = paddle.subscriptions.list(params); const subscriptions = await collection.next(); const pagination = paginationData(collection); return { pagination, subscriptions }; } catch (error) { return error; } };
  • Tool schema definition for 'list_subscriptions', including method name, human-readable name, prompt description, Zod parameters schema reference, and required permissions/actions.
    method: "list_subscriptions", name: "List subscriptions", description: prompts.listSubscriptionsPrompt, parameters: params.listSubscriptionsParameters, actions: { subscriptions: { read: true, list: true, }, }, },
  • src/api.ts:77-77 (registration)
    Registration of the listSubscriptions handler function in the toolMap under the LIST_SUBSCRIPTIONS key, mapping method name to the executor.
    [TOOL_METHODS.LIST_SUBSCRIPTIONS]: funcs.listSubscriptions,
  • Constant definition for the tool method name 'list_subscriptions' used across the codebase for consistency.
    LIST_SUBSCRIPTIONS: "list_subscriptions",

Other Tools

Related 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