Skip to main content
Glama
PaddleHQ
by PaddleHQ

create_business

Create a new business entity for a customer in Paddle to manage business information when working with companies rather than individuals.

Instructions

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

Business entities hold business information for a customer when working with a business rather than an individual. Customers do not need to have a business to make a purchase, but should if working with a business.

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 business entity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customerIdYesPaddle ID of the customer.
nameYesFull name.
companyNumberNoCompany number for this business.
taxIdentifierNoTax or VAT Number for this business.
contactsNoList of contacts related to this business, typically used for sending invoices.
customDataNoAny structured custom key-value data needed outside of Paddle's standard fields. Occasionally used by third-parties.

Implementation Reference

  • The handler function that executes the create_business tool by calling paddle.businesses.create with the provided customerId and business data.
    export const createBusiness = async (paddle: Paddle, params: z.infer<typeof Parameters.createBusinessParameters>) => { try { const { customerId, ...updateData } = params; const business = await paddle.businesses.create(customerId, updateData); return business; } catch (error) { return error; } };
  • src/tools.ts:336-347 (registration)
    Tool registration object defining the 'create_business' method, its name, description prompt, parameters schema, and required actions for the MCP tool.
    { method: "create_business", name: "Create a business for a customer", description: prompts.createBusinessPrompt, parameters: params.createBusinessParameters, actions: { businesses: { write: true, create: true, }, }, },
  • src/api.ts:38-38 (registration)
    Maps the CREATE_BUSINESS constant to the createBusiness handler function in the PaddleAPI toolMap for execution.
    [TOOL_METHODS.CREATE_BUSINESS]: funcs.createBusiness,
  • src/constants.ts:30-30 (registration)
    Defines the TOOL_METHODS.CREATE_BUSINESS constant string used in tool registrations and mappings.
    CREATE_BUSINESS: "create_business",
  • Prompt providing guidance and description for the create_business tool usage.
    export const createBusinessPrompt = ` This tool will create a new business for a customer in Paddle. Business entities hold business information for a customer when working with a business rather than an individual. Customers do not need to have a business to make a purchase, but should if working with a business. ${additionalDetailsWarning} If successful, the response includes a copy of the new business entity. `;

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