Campaign Stock Readiness
get_campaign_readinessStock readiness for a demand forecast plan (built for campaign plans; any plan type works): for each plan item at the Expected and the Optimistic scenario, the projected stock-out date and the plan day it falls on, days of cover at plan start, open purchase-order receipts landing before and during the plan window, the effective lead time, and whether a reorder placed today still lands before the stock-out (with the latest date to order). Dates are the tenant's local calendar; startsInDays counts from its today. Previews the plan with the same effect Apply would write and runs it through the item page's on-hand projection; nothing is applied or saved. A scenario the plan cannot preview (no assumption set, information-only, retired, already ended) comes back with available=false and the reason. Read-only.
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": {
"planId": "<planId>"
},
"name": "get_campaign_readiness"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| planId | Yes | Demand forecast plan id (GUID). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| today | No | ||
| endsOn | No | ||
| planId | No | ||
| planName | No | ||
| planType | No | ||
| startsOn | No | ||
| scenarios | No | ||
| hasStarted | No | ||
| planStatus | No | ||
| limitations | No | ||
| planVersion | No | ||
| startsInDays | No |