simulate_scenario
Use this when the user asks what a currency move would do to their profit, for example 'What happens if GBP/EUR moves 3% before Q3 close?' or 'What is our worst case?'. Models the P&L impact of exchange rate moves on the user's current net exposure (invoices + cash) and existing hedges. Do not use for rate forecasts or for advice on whether to hedge: the tool measures a stated move and predicts nothing. Four modes: (1) supply explicit scenarios for a linear what-if on named pairs; (2) set worst_case: true (scenarios optional) to revalue each currency at its OWN worst adverse 30-day historical move, the same worst-case the Monitor dashboard shows; (3) adverse_pct for one uniform move against every position; (4) base_move_pct for the base currency moving against all foreign currencies (negative = base weaker). Every mode measures the whole book (every open invoice and every open forward, as the dashboard does) unless horizon_days is given. Worst-case is a historical realised downside, not a forecast or a recommendation. Cross-currency pairs (neither leg is the reporting currency) are shocked base-neutrally.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "simulate_scenario"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenarios | No | Rate shocks to apply (required unless worst_case is true). Multiple entries are applied simultaneously (correlated move). | |
| worst_case | No | When true, ignore linear shocks and apply each currency's own worst adverse 30-day historical move (adverse-aligned, always a loss). Matches the Monitor worst-case KPI when every exposed currency receives a move; partial coverage is reported in worst_case.coverage and worst_case.coverage_complete, and a partial gross_impact_base covers only the currencies listed in by_currency. scenarios becomes optional. | |
| adverse_pct | No | Uniform adverse move: each currency moves this percentage against its own net position after open forwards (a net receivable currency weakens, a net payable currency strengthens), so every row is a loss. Use for 'a 10% adverse move' or 'everything moves 10% against me'. scenarios becomes optional. | |
| horizon_days | No | Forward-looking window in days. An open invoice due after it and an open forward maturing after it are left out. With no horizon_days, in every mode, no horizon applies: every open invoice and every open forward counts, the same book the Monitor worst-case card and the Model tab Stress Test measure, and the response carries horizon_days null. Pass it only when the user names a period. | |
| base_move_pct | No | The base currency moves this percentage against every foreign currency. Negative = base WEAKER (e.g. 'ZAR 10% weaker' on a ZAR book is -10), positive = base stronger. Use this instead of composing pairs for a base-currency move. scenarios becomes optional. | |
| include_hedges | No | Apply offsetting effect of existing hedges. Set false to see gross (unhedged) impact. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tool-specific payload. Null when connection_status.state is 'setup_required'. | |
| connection_status | Yes |