wafle_analytics_by_period
Retrieve revenue and order totals grouped by day, week, or month to compare periods like the last 30 days against previous 30 days for trend analysis.
Instructions
Time-series breakdown of analytics: revenue + orders bucketed by day/week/month.
Use for charts and 'compare last 30d to previous 30d' workflows.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>"
},
"name": "wafle_analytics_by_period"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Wafle store slug, e.g. 'gamerland' or 'lensitive'. | |
| range | No | Predefined window or 'custom' (then provide from_ts/to_ts). | 30d |
| to_ts | No | ||
| bucket | No | day | |
| from_ts | No |