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.
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": "analyze_sales_trend"
}
}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 |