Skip to main content
Glama
PaddleHQ
by PaddleHQ

list_prices

Retrieve and filter prices from your Paddle catalog by product ID, status, or type. Supports pagination, sorting, and including related entities like products. Amounts are in the smallest currency unit (e.g., cents).

Instructions

This tool will list prices in your Paddle catalog.

Use the maximum perPage by default (200) to ensure comprehensive results. Filter prices by product ID, status, recurring, and type 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. Include related entities like products if needed. Amounts are in the smallest currency unit (e.g., cents).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoCursor for pagination. Returns results after the cursor position.
idNoFilter by a list of price IDs. Use this to retrieve multiple prices by ID.
includeNoRelated entities to include in the response.
orderByNoSort field and order.
perPageNoNumber of records to return per page. Default is 25, maximum is 50.
productIdNoFilter by a list of product IDs. Returns prices for the specified products.
statusNoFilter by price status. Returns prices with the specified statuses.

Implementation Reference

  • The main handler function for the 'list_prices' tool. It uses the Paddle SDK to list prices with the provided parameters, fetches the first page of results, computes pagination data, and returns the prices along with pagination info. Errors are caught and returned.
    export const listPrices = async (paddle: Paddle, params: z.infer<typeof Parameters.listPricesParameters>) => { try { const collection = paddle.prices.list(params); const prices = await collection.next(); const pagination = paginationData(collection); return { pagination, prices }; } catch (error) { return error; } };
  • Tool schema definition for 'list_prices' including method name, human-readable name, description prompt, input parameters schema (Zod), and required actions/permissions.
    { method: "list_prices", name: "List prices", description: prompts.listPricesPrompt, parameters: params.listPricesParameters, actions: { prices: { read: true, list: true, }, }, },
  • src/api.ts:14-14 (registration)
    Registration of the 'list_prices' handler in the central toolMap used by PaddleAPI to dispatch tool calls to the correct function.
    [TOOL_METHODS.LIST_PRICES]: funcs.listPrices,
  • Constant definition for the 'list_prices' tool method string, used across the codebase for consistency.
    LIST_PRICES: "list_prices",

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