Run scenario sweep
run_scenario_sweepSweep one or more input cells across ranges/value-lists in a SINGLE call: the workbook is recalculated server-side for every variation (no per-variation model calls) and the full input→output result grid is returned for you to analyze. Intended two-step pattern: (1) call this once to define + run the sweep, then (2) analyze the returned grid in your next turn — how each input moves each output, sensitivity, and any thresholds/break-even points. mode 'independent' (default) varies each parameter one at a time from its current baseline (clean one-at-a-time sensitivity / tornado data); 'cartesian' runs every combination of all parameters (captures interactions, but the variation count multiplies fast — keep steps small). Each parameter takes either an explicit {values:[...]} list or a linear {min,max,steps} range. Caps: ≤8 parameters, ≤200 total variations (≤50 for Excel Online workbooks, which replay each variation over a live session). Does not mutate the real workbook and does not create saved scenario rows.
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": {
"workbookId": "<workbookId>",
"params": "<params>",
"outputCells": "<outputCells>",
"mode": "<mode>"
},
"name": "run_scenario_sweep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | independent | |
| params | Yes | ||
| workbookId | Yes | ||
| outputCells | Yes |