Top Customers
top_customersRetrieve top revenue-generating customers for a date range, including order counts and last order dates, optionally filtered by customer segment.
Instructions
The customers who generated the most revenue in a period, with order count and last order date.
Optionally filter by segment (Consumer, SMB, Enterprise). Emails are only shown to roles with bella:pii.
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": "top_customers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many customers to return (1-50). | |
| segment | No | ||
| end_date | No | Inclusive date, YYYY-MM-DD. Omit for no limit. | |
| start_date | No | Inclusive date, YYYY-MM-DD. Omit for no limit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||