Skip to main content
Glama
PaddleHQ

Paddle MCP Server

Official
by PaddleHQ

get_address

Retrieve a customer's address from Paddle Billing using customer ID and address ID to access shipping or billing information.

Instructions

This tool will retrieve an address for a customer from Paddle using its ID and related customer ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customerIdYesPaddle ID of the customer.
addressIdYesPaddle ID of the address.

Implementation Reference

  • The handler function that implements the core logic of the 'get_address' tool by calling paddle.addresses.get(customerId, addressId) to retrieve the address.
    export const getAddress = async (paddle: Paddle, params: z.infer<typeof Parameters.getAddressParameters>) => {
      try {
        const { customerId, addressId } = params;
        const address = await paddle.addresses.get(customerId, addressId);
        return address;
      } catch (error) {
        return error;
      }
    };
  • src/tools.ts:300-311 (registration)
    Registers the 'get_address' tool in the MCP tools array, including method name, description, parameters schema reference, and required actions.
    {
      method: "get_address",
      name: "Get an address for a customer",
      description: prompts.getAddressPrompt,
      parameters: params.getAddressParameters,
      actions: {
        addresses: {
          read: true,
          get: true,
        },
      },
    },
  • src/api.ts:35-35 (registration)
    Maps the TOOL_METHODS.GET_ADDRESS constant to the getAddress handler function in the toolMap for execution.
    [TOOL_METHODS.GET_ADDRESS]: funcs.getAddress,
  • Defines the constant TOOL_METHODS.GET_ADDRESS as the string 'get_address' used across the codebase for the tool identifier.
    GET_ADDRESS: "get_address",

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