set_stock_count
Preview stock-count changes before applying them. Validate adjustments with dry-run mode to prevent incorrect inventory updates.
Instructions
Preview-first replacement for the deprecated immediate stock-count write. Apply remains unavailable until its domain adapter and canary are complete.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_stock_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | patch | |
| dryRun | No | ||
| values | No | ||
| previewToken | No | ||
| stockCountId | No | ||
| idempotencyKey | No | ||
| expectedDesiredHash | No | ||
| expectedSemanticHash | No | ||
| expectedWriteShapeHash | No | ||
| expectedEntityTimestamp | No |