Skip to main content
Glama
PaddleHQ

Paddle MCP Server

Official
by PaddleHQ

list_transactions

Read-only

Retrieve and filter Paddle transaction records with pagination, sorting, and optional inclusion of related entities like customers, addresses, and adjustments.

Instructions

This tool will list transactions in Paddle.

Use the maximum perPage by default (30) to ensure comprehensive results. Filter transactions by billedAt, collectionMode, createdAt, customerId, id, invoiceNumber, origin, status, subscriptionId, and updatedAt as needed. Results are paginated - use the 'after' parameter with the last ID from previous results to get the next page. Sort and order results using the orderBy parameter. Amounts are in the smallest currency unit (e.g., cents).

Use the include parameter to include related entities in the response:

  • address: An object for the address entity related to this transaction. Only returned if an address is set against the transaction.

  • adjustments: An array of adjustment entities related to this transaction. Only returned if adjustments have been created against the transaction.

  • adjustments_totals: An object containing totals for all adjustments on a transaction. Only returned if adjustments have been created against the transaction.

  • available_payment_methods: An array of payment methods that are available to use for this transaction.

  • business: An object for the business entity related to this transaction. Only returned if a business is set against the transaction.

  • customer: An object for the customer entity related to this transaction. Only returned if a customer is set against the transaction.

  • discount: An object for the discount entity related to this transaction. Only returned if a discount is set against the transaction.

Transactions have a collectionMode that determines how Paddle tries to collect for payment:

  • automatic: Payment is collected automatically using a checkout initially, then using a payment method on file.

  • manual: Payment is collected manually. Customers are sent an invoice with payment terms and can make a payment offline or using a checkout. Requires billingDetails.

Transactions have a status that determines the current state of the transaction:

  • draft: Transaction is missing required fields. Typically the first stage of a checkout before customer details are captured.

  • ready: Transaction has all of the required fields to be marked as billed or completed.

  • billed: Transaction has been updated to billed. Billed transactions get an invoice number and are considered a legal record. They can't be changed. Typically used as part of an invoice workflow.

  • paid: Transaction is fully paid, but has not yet been processed internally.

  • completed: Transaction is fully paid and processed.

  • canceled: Transaction has been updated to canceled. If an invoice, it's no longer due.

  • past_due: Transaction is past due. Occurs for automatically-collected transactions when the related subscription is in dunning, and for manually-collected transactions when payment terms have elapsed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoReturn entities after the specified Paddle ID when working with paginated endpoints.
billedAtNoReturn entities billed at this exact time. Pass an RFC 3339 datetime string.
billedAtLTNoReturn entities billed before this time. Pass an RFC 3339 datetime string.
billedAtLTENoReturn entities billed at or before this time. Pass an RFC 3339 datetime string.
billedAtGTNoReturn entities billed after this time. Pass an RFC 3339 datetime string.
billedAtGTENoReturn entities billed at or after this time. Pass an RFC 3339 datetime string.
collectionModeNoReturn entities that match the specified collection mode.
createdAtNoReturn entities created at this exact time. Pass an RFC 3339 datetime string.
createdAtLTNoReturn entities created before this time. Pass an RFC 3339 datetime string.
createdAtLTENoReturn entities created at or before this time. Pass an RFC 3339 datetime string.
createdAtGTNoReturn entities created after this time. Pass an RFC 3339 datetime string.
createdAtGTENoReturn entities created at or after this time. Pass an RFC 3339 datetime string.
customerIdNoReturn entities related to the specified customer. Use a comma-separated list to specify multiple customer IDs.
idNoReturn only the IDs specified. Use a comma-separated list to get multiple entities.
includeNoInclude related entities in the response. Use a comma-separated list to specify multiple entities.
invoiceNumberNoReturn entities that match the invoice number. Use a comma-separated list to specify multiple invoice numbers.
originNoReturn entities related to the specified origin. Use a comma-separated list to specify multiple origins.
orderByNoOrder returned entities by the specified field and direction.
statusNoReturn entities that match the specified status. Use a comma-separated list to specify multiple status values.
subscriptionIdNoReturn entities related to the specified subscription. Use a comma-separated list to specify multiple subscription IDs. Pass `null` to return entities that aren't related to any subscription.
perPageNoSet how many entities are returned per page.
updatedAtNoReturn entities updated at this exact time. Pass an RFC 3339 datetime string.
updatedAtLTNoReturn entities updated before this time. Pass an RFC 3339 datetime string.
updatedAtLTENoReturn entities updated at or before this time. Pass an RFC 3339 datetime string.
updatedAtGTNoReturn entities updated after this time. Pass an RFC 3339 datetime string.
updatedAtGTENoReturn entities updated at or after this time. Pass an RFC 3339 datetime string.

Implementation Reference

  • The handler function that executes the list_transactions tool. It transforms input parameters using transformParams, calls paddle.transactions.list, fetches the first page with next(), computes pagination info, and returns paginated transactions or error.
    export const listTransactions = async (
      paddle: Paddle,
      params: z.infer<typeof Parameters.listTransactionsParameters>,
    ) => {
      try {
        const transformedParams = transformParams(params);
        const collection = paddle.transactions.list(transformedParams);
        const transactions = await collection.next();
        const pagination = paginationData(collection);
        return { pagination, transactions };
      } catch (error) {
        return error;
      }
    };
  • Defines the tool schema for list_transactions, including method name, human-readable name, description prompt, Zod input parameters schema, and required actions (read/list on transactions).
      method: "list_transactions",
      name: "List transactions",
      description: prompts.listTransactionsPrompt,
      parameters: params.listTransactionsParameters,
      actions: {
        transactions: {
          read: true,
          list: true,
        },
      },
    },
  • src/api.ts:18-18 (registration)
    Registers the listTransactions handler function to the TOOL_METHODS.LIST_TRANSACTIONS key in the toolMap used by PaddleAPI to execute tools.
    [TOOL_METHODS.LIST_TRANSACTIONS]: funcs.listTransactions,
  • Helper utility to transform query parameters from underscore notation (e.g., 'created_at_lt') to Paddle API bracket notation (e.g., 'created_at[LT]'), specifically used in listTransactions.
    // Example: created_at_lt becomes created_at[LT], updated_at_gte becomes updated_at[GTE]
    // Other parameters like customer_id, collection_mode are left unchanged
    const transformParams = (params: Record<string, unknown>) => {
      const operators = ["lt", "lte", "gt", "gte"];
      
      return Object.entries(params).reduce(
        (acc, [key, value]) => {
          const parts = key.split("_");
          const lastPart = parts[parts.length - 1];
          
          if (parts.length >= 2 && operators.includes(lastPart)) {
            const operator = parts.pop()!;
            const base = parts.join("_");
            acc[`${base}[${operator.toUpperCase()}]`] = value;
          } else {
            acc[key] = value;
          }
          return acc;
        },
        {} as Record<string, unknown>,
      );
    };
  • Helper to extract pagination metadata (hasMore, estimatedTotal) from Paddle paginated collection, used in listTransactions response.
    const paginationData = (collection: PaginatedCollection) => ({
      hasMore: collection.hasMore,
      estimatedTotal: collection.estimatedTotal,
    });
Behavior5/5

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

The description adds substantial behavioral context beyond the readOnlyHint annotation. It explains pagination mechanics ('use the 'after' parameter with the last ID'), data format details ('amounts are in the smallest currency unit'), collectionMode behaviors (automatic vs manual), and status definitions with workflow implications. This provides rich operational context that annotations alone don't cover.

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 comprehensive but verbose at 22 sentences. While information is valuable, it could be more front-loaded with critical details. The lengthy explanations of collectionMode and status could be condensed, though they do earn their place by providing important behavioral context.

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

Completeness5/5

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

Given the tool's complexity (26 parameters, no output schema), the description provides excellent completeness. It covers pagination, filtering, sorting, data formats, include options, and detailed explanations of collectionMode and status - essentially everything needed to use the tool effectively despite the lack of output schema.

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. The description adds meaningful context about parameter usage: it explains the 'include' parameter's purpose and what each option returns, clarifies that amounts use smallest currency units, and provides guidance on default pagination behavior. However, it doesn't fully explain all 26 parameters' interactions or edge cases.

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 explicitly states 'list transactions in Paddle' - a specific verb ('list') and resource ('transactions') with clear scope ('in Paddle'). It distinguishes from sibling tools like 'get_transaction' (singular retrieval) and 'create_transaction' (creation operation).

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 usage context with pagination guidance ('use the maximum perPage by default'), filtering capabilities, and include parameter usage. However, it doesn't explicitly state when to use this tool versus alternatives like 'get_transaction' for single transactions or other list_* tools for different resources.

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