process_order
Atomically create an order and decrement inventory using customer ID, SKU, quantity, and an idempotency key to prevent duplicates.
Instructions
Create an order atomically and decrement inventory. Requires order:write.
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": {
"customer_id": "<customer_id>",
"sku": "<sku>",
"quantity": "<quantity>",
"idempotency_key": "<idempotency_key>"
},
"name": "process_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | ||
| quantity | Yes | ||
| customer_id | Yes | ||
| idempotency_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||