Skip to main content
Glama

Audit FX Transaction

audit_fx_transaction
Read-only

Audits one FX transaction against its UTC reference minute candle, or the 13:00–21:00 UTC hourly average when only a date is supplied. Returns FX Score 0-10, non-negative spread in bps and percent, estimated overpayment with currency, reference provider and UTC candle evidence. Weekend transactions use the last available candle and are flagged.

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": "audit_fx_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoAlias for transaction_date.
tauxNoFrench alias for bank_rate
timeNoAlias for transaction_time, UTC.
amountNoTransaction amount in currency_from (alias: montant)
montantNoFrench alias for amount
languageNoOptional output language. Auto-detected from input keys (montant/taux → fr) when omitted.
bank_rateNoRate the bank/broker actually charged (alias: taux)
currency_toNoISO 4217 target currency (alias: devise_cible)
devise_cibleNoFrench alias for currency_to
currency_fromNoISO 4217 source currency (alias: devise_source)
devise_sourceNoFrench alias for currency_from
transaction_dateNoTransaction date YYYY-MM-DD, or ISO timestamp with timezone.
transaction_timeNoOptional transaction time HH:mm[:ss], UTC.

Output Schema

NameRequiredDescriptionDefault
dateNo
colorNo
scoreNo
amountYes
ratingNo
verdictNo
currencyYes
fx_scoreYes
bank_rateNo
spread_bpsYes
spread_pctYes
currency_toYes
currency_fromYes
currency_pairYes
rate_providerYes
estimated_lossYes
amount_currencyNo
bank_rate_inputNo
mid_market_rateYes
overpaid_amountNo
reference_methodNo
transaction_timeNo
weekend_fallbackNo
cotation_inverseeNo
rate_timestamp_utcYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "amount": {
      +      "type": "number"
      +    },
      +    "amount_currency": {
      +      "type": "string"
      +    },
      +    "bank_rate": {
      +      "type": "number"
      +    },
      +    "bank_rate_input": {
      +      "type": "number"
      +    },
      +    "color": {
      +      "type": "string"
      +    },
      +    "cotation_inversee": {
      +      "type": "boolean"
      +    },
      +    "currency": {
      +      "type": "string"
      +    },
      +    "currency_from": {
      +      "type": "string"
      +    },
      +    "currency_pair": {
      +      "type": "string"
      +    },
      +    "currency_to": {
      +      "type": "string"
      +    },
      +    "date": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "estimated_loss": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "fx_score": {
      +      "maximum": 10,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "mid_market_rate": {
      +      "type": "number"
      +    },
      +    "overpaid_amount": {
      +      "type": "number"
      +    },
      +    "rate_provider": {
      +      "type": "string"
      +    },
      +    "rate_timestamp_utc": {
      +      "type": "string"
      +    },
      +    "rating": {
      +      "type": "string"
      +    },
      +    "reference_method": {
      +      "type": "string"
      +    },
      +    "score": {
      +      "maximum": 10,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "spread_bps": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "spread_pct": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "transaction_time": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "verdict": {
      +      "type": "string"
      +    },
      +    "weekend_fallback": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "fx_score",
      +    "currency_pair",
      +    "currency_from",
      +    "currency_to",
      +    "amount",
      +    "spread_pct",
      +    "spread_bps",
      +    "estimated_loss",
      +    "currency",
      +    "mid_market_rate",
      +    "rate_provider",
      +    "rate_timestamp_utc"
      +  ],
      +  "type": "object"
      +}
  2. Changed4 schema fields changed
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "Alias for transaction_date.",
      +  "type": "string"
      +}
    • addedInput schema / properties / time
      Added value: +{
      +  "description": "Alias for transaction_time, UTC.",
      +  "type": "string"
      +}
    • addedInput schema / properties / transaction_date
      Added value: +{
      +  "description": "Transaction date YYYY-MM-DD, or ISO timestamp with timezone.",
      +  "type": "string"
      +}
    • addedInput schema / properties / transaction_time
      Added value: +{
      +  "description": "Optional transaction time HH:mm[:ss], UTC.",
      +  "type": "string"
      +}
  3. Changed10 schema fields changed
    • changedInput schema / properties / amount / description
      Previous value: -"Transaction amount in currency_from"New value: +"Transaction amount in currency_from (alias: montant)"
    • changedInput schema / properties / bank_rate / description
      Previous value: -"The rate the bank/broker actually charged"New value: +"Rate the bank/broker actually charged (alias: taux)"
    • addedInput schema / properties / currency_from / description
      Added value: +"ISO 4217 source currency (alias: devise_source)"
    • addedInput schema / properties / currency_to / description
      Added value: +"ISO 4217 target currency (alias: devise_cible)"
    • addedInput schema / properties / devise_cible
      Added value: +{
      +  "description": "French alias for currency_to",
      +  "type": "string"
      +}
    • addedInput schema / properties / devise_source
      Added value: +{
      +  "description": "French alias for currency_from",
      +  "type": "string"
      +}
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "Optional output language. Auto-detected from input keys (montant/taux → fr) when omitted.",
      +  "enum": [
      +    "en",
      +    "fr"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / montant
      Added value: +{
      +  "description": "French alias for amount",
      +  "type": "number"
      +}
    • addedInput schema / properties / taux
      Added value: +{
      +  "description": "French alias for bank_rate",
      +  "type": "number"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "amount",
      -  "currency_from",
      -  "currency_to",
      -  "bank_rate"
      -]New value: +[]
  4. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, open-world, non-destructive behavior, and the description adds the important edge-case rule that weekend transactions fall back to the last available candle and are flagged, plus the identity of the returned evidence (score, spread, overpayment, provider). It does not mention rate limits, caching, or whether results are stable across repeat calls, which is notable given idempotentHint=false.

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?

Three tightly packed sentences with the core purpose front-loaded and no filler. The enumeration of returned fields (FX Score, bps and percent spread, overpayment, provider, candle evidence) is slightly redundant since an output schema exists, but it is compact rather than wasteful.

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

Completeness4/5

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

Return values need not be spelled out given the output schema, and the description still handles the two nontrivial behaviors an agent must know: the benchmark selection rule and the weekend fallback with flagging. It under-documents what constitutes a valid call (all 13 parameters are optional, yet an audit presumably needs currencies, amount, date and rate), which is the main remaining gap.

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 the baseline is 3, but the description adds real semantics the schema cannot: supplying only a date versus date plus time changes which reference benchmark is used, which directly affects interpretation of the output. It does not describe the required currency_from/currency_to/amount combination despite the schema declaring zero required fields, leaving a validity gap.

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 ('Audits one FX transaction') plus the exact reference it audits against, and the 'one' explicitly contrasts with the batch sibling audit_fx_batch. An agent can tell what it does and what it does not do without opening 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 Guidelines3/5

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

The description explains the internal mode split (intraday minute candle when a time is supplied, 13:00-21:00 UTC hourly average when only a date is given), which is genuinely useful. However, it never states when to prefer this over check_fx_mid_market_rate, compare_fx_sources, or full_forensic_fx_report, and gives no exclusions or prerequisites, so sibling routing is left to inference.

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