Customers
get_customersCustomer figures for the current period: total, new and returning customers (returningCustomers is Shopify's unit, ORDERS placed by repeat buyers; returningBuyers is the headcount behind it), repeatPurchaseRate (a ratio 0..1), avgLtv (lifetime revenue per customer) and marginLtv (the same after product costs), blended CAC (all ad spend ÷ new customers) and paidCac (each ad platform's spend ÷ the new customers whose first paid touch was that platform; paidGaps names platforms left out and why), the lifetime-value spread (ltvBands), new vs returning per day (growth), acquisition per channel with new customers, first order value and CAC (acquisition.acquisition), customers back after 180+ days away (acquisition.reactivated of acquisition.lapsedAtStart), and support tickets (support null = no helpdesk connected). Each tile has previous, the prior period's value. Use for any question about customers, LTV, CAC, repeat purchase, acquisition by channel or LTV ÷ CAC — divide nothing yourself: marginLtv and paidCac are both here. When suppressed is true, under half of revenue carries a customer id: say the customer figures are withheld instead of quoting any. A null CAC means no spend or too few new customers (under 10) — never zero. Optional from and to (inclusive YYYY-MM-DD, both or neither, never after today) read another span instead of the default period. A named month, a week or two dates the operator gave MUST be sent here: without them this reads the default period (the one on the operator's screen, else the last 30 days), which is not that month. When the operator names no period, send neither.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_customers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days. | |
| from | No | First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days. |