Build Replenishment Plan
build_replenishment_planBuild an Inventory Mission Control replenishment plan from Spark's canonical reorder detection. Returns grouped buy, transfer, manufacture and defer decisions with known-vs-unknown spend, MOQ adjustments, source freshness, blockers and stable fingerprints. Tenant, optional 3PL client pin, currency and owner come only from the connected credential. Requires Write scope. This is non-destructive: it persists only derived credential-owned session state for later get/reprice/commit and does not change inventory or create any order document. Draft evidence is short-lived (30 minutes by default; server configuration is authoritative).
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": {
"request": "<request>"
},
"name": "build_replenishment_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes | Bounded mission constraints: 1-180 day horizon; optional warehouse, vendor and exact SKU filters; optional maxKnownSpend; forecast and unknown-cost policy; allowed actions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issues | No | ||
| planId | No | ||
| status | No | ||
| summary | No | ||
| revision | No | ||
| createdAt | No | ||
| expiresAt | No | ||
| revisionId | No | ||
| constraints | No | ||
| schemaVersion | No | ||
| decisionGroups | No | ||
| sourceObservedAt | No | ||
| sourceFingerprint | No | ||
| allowedNextActions | No |