reserve_item
Hold a SKU for a customer for a limited time, ensuring stock availability. Fails if insufficient inventory; requires salesperson confirmation before writing.
Instructions
Hold units of a SKU for a customer for a limited time. Fails if there is not enough available stock. This writes to the database; confirm with the salesperson first.
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": {
"sku": "<sku>",
"customer": "<customer>",
"idempotency_key": "<idempotency_key>"
},
"name": "reserve_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | ||
| customer | Yes | ||
| quantity | No | Default 1. | |
| ttl_minutes | No | How long to hold it. Default 120. | |
| idempotency_key | Yes | Unique key for this reservation attempt; repeating it returns the same reservation instead of double booking. |