Basket and free-shipping threshold
get_basketWhat an online order holds, and the free-shipping threshold the store's own orders show: avgSubtotal and percentiles of the CART SUBTOTAL (after discounts, before returns, tax as the store shows prices — the figure a free-shipping rate is checked against; NOT net revenue, so never call it AOV: for AOV on net revenue use get_summary), itemsPerOrder (shares of orders with 1, 2, 3, 4+ units and the mean), freeShippingShare, and threshold: the lowest round subtotal from which orders stopped paying shipping, with how cleanly the orders split (freeAboveShare, paidBelowShare) and near — the orders within 20% under it, their mean gap and the shipping they paid. The threshold is READ FROM THE ORDERS, not from the store's settings: say "your orders show free shipping from about €X", never "your threshold is". thresholdReason says why there is none (always_free, never_free, no_clear_threshold, too_few_orders). Online orders in the store's currency only. Without dates it reads the last 60 days, the span stated in window. Use for questions about basket size, units per order, free shipping, or how many orders fall just short of it. It never estimates what changing the threshold would earn: Nuira has no figure for how shoppers would react. Optional from and to (inclusive YYYY-MM-DD, both or neither, never after today) read another span instead of the last 60 days; a named month or two dates the operator gave MUST be sent here.
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_basket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days. | |
| from | No | First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days. |