Create an order
create_orderPlace an order for one product. Generate one random idempotencyKey per user request and reuse the same key if you retry after an error or timeout; the shop returns the original order instead of creating a duplicate. Confirm product and quantity with the user before calling. Returns the order with its id, status and total.
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": {
"productId": "<productId>",
"quantity": "<quantity>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | Yes | Units to order, 1 to 10. | |
| productId | Yes | Product id from search_products or get_product. | |
| idempotencyKey | Yes | A unique key you generate for this order attempt and reuse on retry. |