Compare revenue periods
Use the comparison already returned by Inttegro instead of assembling totals from order pages. A 30d request compares the selected 30 days with the 30 days immediately before them.
Compare the last 30 days of GHS gross sales with the previous 30 days. Show exact current and previous values and percentage changes for gross sales, paid orders, cancellations, and expirations. Explain when there is no prior baseline and do not estimate incomplete data.
The agent uses get_order_analytics. Each returned metric includes current, previous, and change_percent; a missing percentage means the previous value was zero, not that change was zero.
Sample response
Current period compared with the previous period
Gross sales and paid orders grew while cancellations fell.
| Metric | Current 30 days | Previous 30 days | Change |
|---|---|---|---|
| Gross sales | GHS 67,250.00 | GHS 58,400.00 | +15.15% |
| Paid orders | 184 | 161 | +14.29% |
| Cancelled orders | 9 | 13 | −30.77% |
| Expired orders | 6 | 5 | +20.00% |
Illustrative values. The exact presentation depends on the MCP client.
The comparison describes activity in each window. It does not explain causation and does not subtract refunds or payouts from gross sales.