create_order
Place a sales order for a contact after checking stock; returns a priced preview by default, then commit to decrement inventory after user confirmation.
Instructions
Place a sales order for a contact. Checks stock first. dry_run=true (default) only returns a priced preview , confirm with the user, then call again with dry_run=false to commit and decrement inventory.
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": {
"contact_id": "<contact_id>",
"sku": "<sku>",
"qty": "<qty>"
},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | Yes | ||
| sku | Yes | ||
| dry_run | No | ||
| contact_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||