get_orders_summary
Retrieve an order summary for a date range, including exact total order count, revenue, average order value, and status distribution from RetailCRM.
Instructions
Period-scoped order summary: exact totalCount for the date range plus revenue, average order value, and status distribution aggregated over up to max_pages×100 orders (partial:true if the window exceeds that).
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": {
"date_from": "<date_from>",
"date_to": "<date_to>"
},
"name": "get_orders_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | Yes | End date for the summary period (YYYY-MM-DD) | |
| date_from | Yes | Start date for the summary period (YYYY-MM-DD) | |
| max_pages | No | Pages of 100 orders to aggregate (revenue/status are computed over this window; the count is always exact) | |
| filter_status | No | Restrict the summary to a single status code |