analyze_sales_trend
Calculate revenue, order counts, and growth percentages for monthly or quarterly periods within a date range.
Instructions
Analyze sales trends over time with period-over-period growth rates.
Returns revenue, order count, and growth percentage for each period.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period_end | No | End date YYYY-MM-DD | 2025-06-30 |
| granularity | No | Time grouping: 'month' or 'quarter' | month |
| period_start | No | Start date YYYY-MM-DD | 2024-01-01 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trend | Yes | ||
| granularity | Yes | Time grouping: 'month' or 'quarter' | |
| peak_period | Yes | Best performing period | |
| overall_growth_pct | Yes | First-to-last period growth |