get_top_customers
Identify top customers by total spending or order count, excluding cancelled orders. Choose ranking by spending or orders to answer who spent or ordered the most.
Instructions
Get the top customers ranked by total amount spent or by number of orders placed. Cancelled orders are excluded from totals. Use this instead of query for 'who spent the most' / 'who ordered the most' questions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | ||
| limit | No |