Skip to main content
Glama

Hedgr FX Risk & Hedging

simulate_scenario

Read-only

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

NameRequiredDescriptionDefault
scenariosNoRate shocks to apply (required unless worst_case is true). Multiple entries are applied simultaneously (correlated move).
worst_caseNoWhen 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_pctNoUniform 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_daysNoForward-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_pctNoThe 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_hedgesNoApply offsetting effect of existing hedges. Set false to see gross (unhedged) impact.

Output Schema

NameRequiredDescriptionDefault
dataYesTool-specific payload. Null when connection_status.state is 'setup_required'.
connection_statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / horizon_days / default
      Removed value: -90
    • changedInput schema / properties / horizon_days / description
      Previous value: -"Forward-looking exposure window included in the simulation."New value: +"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."
  2. Changed2 schema fields changed
    • addedInput schema / properties / adverse_pct
      Added value: +{
      +  "description": "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.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 50,
      +  "type": "number"
      +}
    • addedInput schema / properties / base_move_pct
      Added value: +{
      +  "description": "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.",
      +  "maximum": 50,
      +  "minimum": -50,
      +  "type": "number"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered; the description still adds real behavioral context: worst-case is a historical realised downside rather than a forecast, cross-currency pairs are shocked base-neutrally, and partial worst-case coverage is surfaced in the response. It stops short of describing response shape, but an output schema exists to carry that.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the trigger and the exclusion before the mode enumeration, and every sentence carries information. It is dense and long, with some repetition of the 'whole book / Monitor dashboard' scope across the mode list and horizon_days discussion, but nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter, four-mode simulation tool with an output schema, the description covers trigger, exclusions, mode selection, default scope, and the semantics of the worst-case metric. Return values are correctly left to the output schema, so nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so per-parameter text is already supplied; the description's added value is the mode logic that the schema cannot express — which parameters make `scenarios` optional, that worst_case ignores linear shocks, and that negative base_move_pct means a weaker base. That is genuine meaning beyond the schema, though it largely restates the parameter descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Models the P&L impact of exchange rate moves on the user's current net exposure (invoices + cash) and existing hedges') and explicitly bounds it against adjacent capabilities ('Do not use for rate forecasts or for advice on whether to hedge'). An agent can distinguish this from get_fx_exposure or get_fx_guidance without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete trigger phrasing ('What happens if GBP/EUR moves 3% before Q3 close?'), explicit exclusions, and then enumerates four mutually exclusive modes with the parameter that selects each. It also states the default scope (whole book) and the condition that changes it (horizon_days given).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources