Get order count
get_order_countCount WooCommerce orders in an inclusive date range, optionally filtered by status and grouped by day, month, or year to summarize sales activity.
Instructions
Count orders created in a date range, optionally broken down by day, month or year. Both dates are optional and inclusive (store's timezone). Breakdowns include periods with 0 orders and are limited to 400 periods. To see the orders themselves, use list_orders.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_order_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Count orders created on/before this date (YYYY-MM-DD). Default: today. | |
| from | No | Count orders created on/after this date (YYYY-MM-DD). Default: first order. | |
| status | No | Only count orders with this status. Default 'any' = every status. E.g. completed, processing, on-hold, cancelled, refunded. | any |
| group_by | No | Also return a count per day, month or year. 'none' returns just the total. | none |