Set Inventory Health Settings
set_inventory_health_settingsChange the tenant's inventory health policy (see get_inventory_health_settings): health-score weights and days-of-supply bands, the health-degraded alert's drop threshold and lookback, and the target service level and ordering cost used for safety stock and order quantities. Only the fields you pass change; list field names in resetToDefault to put them back on their default. The same rules as the settings page apply (e.g. safe days must exceed critical days). The preview shows each setting before→after and what it moves. Requires an operator (unpinned) credential with Write + planning.execute and the Admin role.
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_inventory_health_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | The settings to change; omitted fields keep their current value. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. | |
| resetToDefault | No | Field names (as in input, e.g. "targetServiceLevel") to put back on their default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| preview | No | ||
| settings | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |