Skip to content
TotalFinance

scenario · wire operation

Run a scenario set against targets

Revalue every target under every scenario of a Gate B scenario set against a Gate B market snapshot: a scenario-major cell grid with base values, per-cell P&L in local and reporting currency, and per-scenario aggregates. Targets are the serializable kinds — spot assets, Taylor (greeks) positions, and a portfolio bound through Taylor bindings. The result is runScenarios(...) verbatim.

totalfinance.scenario.run
MCP tool name
totalfinance_scenario_run
Pack / profiles
scenario / full, scenarios
Default discovery
Opt-in (select its pack or profile)
Required capabilities
None
Effects / authorization
none / none
Cost / cancellation
large / Do not assume inline interruption
Handle-eligible inputs
scenarioSet, market
Idempotency
not-applicable

Input schema

FieldTypeMeaning
scenarioSetRequiredobjectA Gate B scenario set (totalfinance.scenario-set)
marketRequiredobjectA Gate B market snapshot (totalfinance.market-snapshot); its interior is re-validated by the read door
targetsRequiredobject | object | object[]Wire targets: kind 'spot' (scenarioTarget.spot), 'taylor' (scenarioTarget.taylor), or 'portfolio' (scenarioTargetsFromPortfolio with Taylor bindings). A custom pricer target is SDK-only.
reportingCurrencyOptionalstring—
currencyConversionsOptionalobject[]—
optionsOptionalobjectExecution options; market resolvers and factor handlers are SDK-only callbacks
Complete JSON Schema

Loading…

Output schema

FieldTypeMeaning
layoutRequiredobjectscenario-major cell layout and the index formula
scenarioAxisRequiredobject[]—
targetAxisRequiredobject[]—
baseRequiredobject[]—
cellsRequiredobject[]—
aggregatesRequiredobject—
assumptionsRequiredobjectApplied conventions
diagnosticsRequiredobjectEngine, method, warnings
Complete JSON Schema

Loading…