Skip to main content
Glama

Hedgr FX Risk & Hedging

get_fx_exposure

Read-only

Use this when the user asks how much foreign currency their company owes or expects to receive, what their currency risk is, or which currency is their largest exposure. Returns net FX exposure by currency pair, entity, and time bucket (overdue, 0-30d, 31-60d, 61-90d, 90d+, undated) from the user's connected accounting data. Do not use for live exchange rates, currency conversion, or placing a trade or payment: Hedgr is read-only. An invoice with no due date has no tenor, so it stays in net exposure and sits in the undated bucket. Each exposure line distinguishes confirmed (invoices and POs from the accounting system) from forecasted, and includes a source field citing provenance ('€2.3M from 47 Xero invoices'). On multi-entity books the exposure honours the workspace inter-company mode and the response carries an intercompany block naming that mode; realised P&L does not move with that mode, and it is reported as the accounting system recorded it, so settled inter-company invoices stay inside it. On an unscoped call also returns counterparty_concentration (per contact/currency/direction with share of gross exposure), risk_snapshot (top currency and share, signed and gross net position, breach and overdue counts, worst-case as published), sensitivity (impact of a 1% move per currency) and total_net_exposure_base, all lifted from the same context the in-app Scout assistant answers from.

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_fx_exposure"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyNoISO 4217 code to filter to one currency (e.g. 'EUR', 'USD'). Omit for all currencies.
entity_idNoSpecific entity ID from list_entities. Omit for consolidated group exposure.
horizon_daysNoForward-looking window in days.
include_chartNoWhen true, the tool response includes an image/png content block containing a horizontal bar chart of net exposure by currency (green = receivable, red = payable). Requires no additional API calls - uses the same data as the text response.
include_forecastedNoInclude forecasted exposure alongside confirmed accounting-system data.

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. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Well beyond the readOnly/openWorld annotations, it discloses how undated invoices are bucketed, that confirmed and forecasted lines are separated with a provenance source field, and how multi-entity inter-company mode affects exposure versus realised P&L. It also reveals that unscoped calls add counterparty_concentration, risk_snapshot, sensitivity and total_net_exposure_base. Some of that return-shape detail duplicates the output schema, which keeps it off a 5.

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

Conciseness5/5

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

Lead sentence front-loads the use case and the exclusion, then moves to output shape and edge cases in descending priority. It is dense, but each clause carries a distinct fact — bucketing, provenance, inter-company mode, unscoped extras — with no 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 five-parameter, output-schema-backed read tool with annotations, the definition covers triggers, exclusions, bucketing semantics, forecasted vs confirmed separation, and multi-entity behavior. Nothing an agent needs to call it correctly or interpret the result is missing.

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

Parameters3/5

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

Schema coverage is 100%, so currency, entity_id, horizon_days, include_chart and include_forecasted are already documented. The description adds one genuine behavioral note — that an 'unscoped call' unlocks the extra analytic blocks — but never ties that to which parameters must be omitted, so the added meaning is marginal.

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?

The description names a specific verb and resource ('Returns net FX exposure by currency pair, entity, and time bucket') and immediately disambiguates from adjacent concepts: 'Do not use for live exchange rates, currency conversion, or placing a trade or payment.' An agent can identify this as the exposure-reporting tool rather than a rates, hedging, or payments tool without reading the schema.

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

Usage Guidelines4/5

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

The opening clause gives concrete triggering conditions ('user asks how much foreign currency their company owes or expects to receive, what their currency risk is, or which currency is their largest exposure'), and the exclusion sentence states what it is not for. What is missing is routing to a named alternative — e.g. get_hedge_portfolio or get_fx_guidance — so the agent must infer where to go for hedging or rate questions.

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