sales_summary
Generate order counts, revenue, refunds, average order value, and best-selling products between two dates. Aggregates WooCommerce sales data by filtering orders on the statuses you choose.
Instructions
Order count, revenue, refunds, average order value and the best-selling products between two dates (YYYY-MM-DD, inclusive). Counts orders in the given statuses. Walks every matching order, so a wide range takes several requests.
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>",
"before": "<before>"
},
"name": "sales_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| after | Yes | ||
| before | Yes | ||
| status | No | completed,processing |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||