get_weekly_trends
Get weekly revenue, orders, and items sold as a time series. Data is aggregated live from the Shopify Order table. Returns { rows, charts, presentation }. rows is the table — each row: weekOf, revenue (formatted), orders, itemsSold. charts is an array of three ready-to-render chart specs (revenue, orders, items — separate charts because units differ) in long/tidy format with metadata. DEFAULT TO RENDERING THE CHART when the user asks about trends, weekly patterns, seasonality, or uses 'show me' / 'how is' / 'pattern' phrasing. Fall back to numbers from rows only when the user asks for a single specific week.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weeks | No | Number of weeks (default: 12) | |
| _offset | No | Pagination offset. If a response includes _pagination.hasMore=true, use _offset to fetch the next page. |