Litelead-mcp

createCustomer

Create a new customer in the system.

Description

Creates a new customer document with transactional ID generation. It assigns a unique numeric customerId based on the account’s counters.

Input Schema

{
  "type": "object",
  "properties": {
    "name": { "type": "string", "minLength": 1, "description": "Company Name" },
    "address": { "type": "string", "minLength": 1 },
    "country": { "type": "string", "minLength": 1 },
    "city": { "type": "string", "minLength": 1 },
    "zip": { "type": "string", "minLength": 1 },
    "metadata": { "type": "object", "description": "Additional key-value pairs", "default": {} }
  },
  "required": ["name", "address", "country", "city", "zip"]
}

Output Schema

{
  "type": "object",
  "properties": {
    "success": { "type": "boolean" },
    "customerId": { "type": "number" },
    "id": { "type": "string" },
    "path": { "type": "string" }
  }
}

Example Usage

const result = await client.createCustomer({
  name: "Acme Corp",
  address: "123 Business Rd",
  city: "New York",
  zip: "10001",
  country: "USA",
  metadata: { "sector": "Technology" }
});