Compare Run Plan Sources
compare_run_plan_sourcesCompare EVERY eligible supplier source for one item using forecast-derived run cadences, realized selling price, setup cost, carrying cost, payback, return on spend, and return on capital. Preferred/default supplier is reported as policy context and breaks only economic ties; it never bypasses the comparison. Returns decision=Abstain with no recommendedOptionIndex when all scenarios lose money/capital or demand is insufficient. Pure read: does not create a proposal, quote, purchase order, or any other record.
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": {
"itemSku": "<itemSku>"
},
"name": "compare_run_plan_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemSku | Yes | The item SKU to plan. Matching is case-insensitive. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| itemId | No | ||
| itemSku | No | ||
| sources | No | ||
| clientId | No | ||
| decision | No | ||
| itemName | No | ||
| sourceErrors | No | ||
| feedFreshness | No | ||
| feedLastSyncAt | No | ||
| economicVerdict | No | ||
| preferredSourceLabel | No | ||
| diagnosticOptionIndex | No | ||
| economicVerdictReason | No | ||
| recommendedOptionIndex | No | ||
| recommendedSourceLabel | No |