Insert Order
insert_orderCreates a new delivery order for the current company and returns its orderId. Required: orderNumber, customer (name, address, phoneNumber, addressDetail), restaurant (addressDetail), and costInfo. addressDetail needs street, city, state, zip and country (unit is optional) for both the customer and the restaurant, in addition to the one-line address. Ask the user for any required value they have not given instead of guessing it. If the call fails with a message saying the order was not created, fix the problem and retry. If it says it could not confirm whether the order was created, do NOT retry straight away: call get_current_active_orders (and get_current_scheduled_orders for scheduled orders) to check whether the order exists first, because retrying could create a duplicate.
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": {
"orderInfo": "<orderInfo>"
},
"name": "insert_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderInfo | Yes | The order to create |