Daily Report
report_dailyRetrieve a daily operational report for a store, including orders, revenue, top products, customer metrics, low stock alerts, and anomaly count.
Instructions
Daily operational report: orders, revenue, top products, new vs returning customers, low stock alerts, and anomaly count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store_id | Yes | UUID of a connected store (returned by store_connect with action="connect" or visible in store_connect with action="list" / the store_overview resource) | |
| date | No | Calendar date for the report in YYYY-MM-DD (e.g. "2026-04-25"). Defaults to today (UTC). The report is computed against orders whose created_at falls within that calendar day. |
Implementation Reference
- src/models/store.ts:205-226 (schema)DailyReportSchema and DailyReport type defining the output shape: store_id, date, total_orders, total_revenue, avg_order_value, new_customers, returning_customers, top_products, low_stock_alerts, anomaly_count, and summary.
export const DailyReportSchema = z.object({ store_id: z.string().uuid(), date: z.string(), total_orders: z.number().int(), total_revenue: z.number(), avg_order_value: z.number(), new_customers: z.number().int(), returning_customers: z.number().int(), top_products: z.array(z.object({ title: z.string(), units: z.number().int(), revenue: z.number(), })), low_stock_alerts: z.array(z.object({ title: z.string(), current_stock: z.number().int(), days_left: z.number().nullable(), })), anomaly_count: z.number().int(), summary: z.string(), }); export type DailyReport = z.infer<typeof DailyReportSchema>;