Skip to main content
Glama
PaddleHQ
by PaddleHQ

create_address

Add a billing address to a customer's Paddle account, enabling them to complete purchases and meet tax and compliance requirements.

Instructions

This tool will create a new address for a customer in Paddle.

Address entities hold billing address information for a customer. Customers must have an address to make a purchase. A transaction can be created without an address, but it can't go past a status of draft until an address is added.

To make buying as frictionless as possible, Paddle only requires a country. For tax calculation, fraud prevention, and compliance purposes, postalCode is required when creating addresses for some countries, like ZIP codes in the USA and postcodes in the UK.

Ensure you have all the information needed before making the call. Don't fabricate, imagine, or infer details and parameter values unless explicitly asked to. If anything is ambiguous, unknown, or unclear, ask the user for clarification or details before you proceed.

If successful, the response includes a copy of the new address entity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customerIdYesPaddle ID of the customer.
descriptionNoMemorable description for this address.
firstLineNoFirst line of this address.
secondLineNoSecond line of this address.
cityNoCity of this address.
postalCodeNoZIP or postal code of this address. Required for some countries.
regionNoState, county, or region of this address.
countryCodeYesTwo-letter ISO 3166-1 alpha-2 country code.
customDataNoAny structured custom key-value data needed outside of Paddle's standard fields. Occasionally used by third-parties.

Implementation Reference

  • The core handler function that executes the create_address tool logic by destructuring customerId and address data from params and calling paddle.addresses.create.
    export const createAddress = async (paddle: Paddle, params: z.infer<typeof Parameters.createAddressParameters>) => { try { const { customerId, ...updateData } = params; const address = await paddle.addresses.create(customerId, updateData); return address; } catch (error) { return error; } };
  • Tool definition including the method name, description, parameters schema reference (params.createAddressParameters), and required actions for the create_address tool.
    { method: "create_address", name: "Create an address for a customer", description: prompts.createAddressPrompt, parameters: params.createAddressParameters, actions: { addresses: { write: true, create: true, }, },
  • src/api.ts:34-34 (registration)
    Registers the createAddress handler function under the TOOL_METHODS.CREATE_ADDRESS key in the toolMap for tool invocation.
    [TOOL_METHODS.CREATE_ADDRESS]: funcs.createAddress,
  • Defines the string constant for the create_address tool method name.
    CREATE_ADDRESS: "create_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