جهّز طلب مقاضي — Prepare a shopping-list order
prepare_grocery_orderTurn a shopping list into a ready order for one grocery from find_groceries (pass its id, e.g. «d:82» or «b:abc12»). Returns the cleaned list and an order_url: Dukkani's order page with that grocery chosen and the list already written, so the customer only checks it and sends it on WhatsApp. This tool sends nothing by itself.
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": {
"grocery_id": "<grocery_id>",
"items": "<items>"
},
"name": "prepare_grocery_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional note to the grocery (delivery time, «بدون سكر»…) | |
| items | Yes | List lines, e.g. «2 حليب المراعي 1 لتر», «رز 5 كيلو», «كرتون بيض» | |
| grocery_id | Yes | The id returned by find_groceries (d:<number> or b:<code>) |