sensitivity_analysis
Vary one or more input assumptions and show the impact on a target output metric (one-at-a-time sensitivity). Provide 'template', the input to sweep via 'variable' (or 'variables' array), and 'target_metric' (defaults to the template's primary output). Control the sweep with 'variation' (fractional +/- around the baseline, default 0.2), 'steps' (default 5), or explicit 'values' / 'min'+'max'. Returns per-variable sweeps, an elasticity estimate, the output range, and a ranking of the most influential inputs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Sweep upper bound (with 'min'). | |
| min | No | Sweep lower bound (with 'max'). | |
| steps | No | Number of sweep points per variable (2-200). | |
| inputs | No | Scenario assumptions as {name: value}. Which keys are valid depends on the template (call list_templates). Unlisted keys fall back to documented defaults; unknown keys are ignored and reported in notes. You may also pass assumptions at the top level. | |
| values | No | Explicit sweep values for a single 'variable'. | |
| horizon | No | Number of periods to project forward (1..1200). Default depends on template (usually 12). | |
| template | Yes | Pre-built scenario template id: saas_growth, pricing_change, churn_impact, cost_reduction, hiring_plan, cash_runway, unit_economics, marketing_funnel, compound_growth (aliases like 'saas','pricing','runway','ltv' also resolve). Omit (or use 'custom') to run a free-form 'metrics' projection. | |
| variable | No | A single input name to sweep. | |
| variables | No | Multiple inputs to sweep (one at a time). Each: {name, variation?|values?|min?+max?, steps?}. | |
| variation | No | Fractional sweep around the baseline (0<v<=1). 0.2 = +/-20%. | |
| period_label | No | Label for each period; also sets annualization (periods/year). | month |
| target_metric | No | Output metric to track (see a template's 'outputs' via list_templates). Defaults to the template's primary output. |