Sales summary
sales_summaryAggregate WooCommerce orders for a date range to calculate revenue, order count, average order value, status breakdown, and top products by revenue.
Instructions
Aggregate orders for a period: count, revenue, average order, orders by status and top products by revenue. Reads up to max_orders orders.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"after": "<after>"
},
"name": "sales_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| after | Yes | Period start, ISO 8601, e.g. 2026-11-01T00:00:00 | |
| before | No | Period end, ISO 8601; default now | |
| statuses | No | ||
| max_orders | No |