get_pnl_attribution
Use this when the user asks how much their company gained or lost on currency moves, which currencies are hurting them, what their total FX impact is this period, or wants P&L by currency. Returns FX P&L broken down by currency with top contributor, unrealised mark-to-market (open invoices, booking rate vs current spot), and realised gain/loss from settled invoices where the accounting system provides it. Do not use for tax or accounting advice, or for live exchange rates. All amounts are in base currency. Sorts by absolute total P&L so the biggest contributors appear first. Also returns the Scout-aligned P&L family: dashboard_hero (the Monitor Total FX Impact exactly as the dashboard published it), totals.bank_pnl_base and totals.hedge_mtm_base, the four contributor families (top_unrealised_contributors, top_realised_contributors, bank_contributors, hedge_contributors), materiality (FX as % of profit and revenue, margin before/after FX on the operating basis only), fy_windows (realised by settlement date for the current FY, previous FY and all-time) and provider_fx_ledger. Every aligned block is the figure the in-app Scout assistant quotes.
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": "get_pnl_attribution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | No | Filter to a specific entity. Omit for consolidated group. | |
| include_chart | No | When true, the tool response includes an image/png content block containing a horizontal bar chart of P&L by currency (green = gain, red = loss). Uses the same data as the text response. | |
| include_realised | No | Include realised P&L from settled invoices where the accounting system provides the FX gain/loss. Default true. | |
| include_unrealised | No | Include unrealised P&L from open invoices (booking rate vs current spot). Default true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tool-specific payload. Null when connection_status.state is 'setup_required'. | |
| connection_status | Yes |