Set Vendor Forecast Sharing
set_vendor_forecast_sharingDecide how much of the demand forecast suppliers see in the vendor portal. Without supplier it changes the tenant default: level and/or forecastHorizonMonths (1-12); an omitted one keeps its value. With supplier (id or exact name) it sets that supplier's own level, which wins over the default, or level=inherit to clear it so the supplier follows the default again. Levels: Off (nothing shared), Forecast (monthly demand history and forecast with its range, pattern and confidence for the house items it default-supplies; never cost, price, stock or customers), ForecastAndOrderTiming (adds the estimated next order date and quantity). The preview lists each supplier whose level changes with its portal users and forecast items. Requires an operator (unpinned) credential with Write + suppliers.execute and an Admin user.
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_vendor_forecast_sharing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Off, Forecast or ForecastAndOrderTiming; with supplier also inherit (clear its override). Omit to keep the tenant default's level and change only the horizon. | |
| 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. | |
| supplier | No | Optional supplier id (GUID) or exact name; omit to change the tenant default. | |
| 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. | |
| forecastHorizonMonths | No | Tenant default only: months ahead a shared forecast reaches (1-12); omit to keep it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| preview | No | ||
| settings | No | ||
| supplier | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |