Purchase history analysis
purchase_historyAggregate recent online orders into per-product stats—order count, total and typical quantity, last bought date, and spend per order—to reveal what you usually buy and rebuild a regular basket.
Instructions
Aggregate the last N online orders into per-product stats: how many orders included it, total quantity, typical quantity, last bought date, and spend per order. Great for 'what do I usually buy?' and for rebuilding a usual basket.
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": "purchase_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| max_orders | No |