List customers

Customers with type, group and territory, filtered by name.

MCP tool erpnext_read → list_customers

read

Returns customers in the order ERPNext lists them. Use the customer ID from each item in create_sales_invoice, list_sales_invoices and create_payment_entry. The search matches part of the Customer Name. Pages hold up to 100 customers; pass next_cursor back as cursor for the next page.

Parameters

Parameters: list_customers
NameTypeDescription
search string string Part of the Customer Name.
customer_group string string Customer Group name from your site.
territory string string Territory name from your site.
limit integer integer Records per page. Default: 20.
cursor string string Next page cursor from the previous call.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "erpnext_read",
    "arguments": {
      "operation": "list_customers",
      "arguments": {}
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "customers": [
      {
        "customer": "Northwind Studio",
        "customer_name": "Northwind Studio",
        "customer_type": "Company",
        "customer_group": "Commercial",
        "territory": "United States"
      },
      {
        "customer": "Lumen Dental",
        "customer_name": "Lumen Dental",
        "customer_type": "Company",
        "customer_group": "Commercial",
        "territory": "United States"
      }
    ],
    "next_cursor": null
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.