Skip to main content
Glama

fxapi Exchange Rates MCP Server

How rates changed between two dates

getFluctuation

Returns, for every requested currency, its rate at the end of date_from and of date_to and how much it changed in between, in absolute terms and in percent. Both days are UTC days back to 1999-01-01; the newest allowed is yesterday.

The JSON response also has the high, low and average of the daily closes from date_from to date_to (null when the two days are more than 1830 days apart or the span has no data). The CSV keeps its columns.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "date_from": "<date_from>",
      "date_to": "<date_to>"
    },
    "name": "getFluctuation"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoFilter the returned currencies by type.
formatNo`json` (default), `csv` or `xlsx`. CSV has a header line and one row per currency (and point in time), values without exponent notation. `xlsx` is the same table as an Excel workbook (one sheet, bold frozen header row, numbers as numbers), sent as a download named after the endpoint, e.g. `latest.xlsx`.
date_toYesLast day (`YYYY-MM-DD`), on or after `date_from`.
date_fromYesFirst day (`YYYY-MM-DD`).
currenciesNoComma-separated list of currency codes to include (e.g. `EUR,USD,CAD`). The array form `currencies[]=EUR&currencies[]=USD` is also accepted. By default all supported currencies are returned.
base_currencyNoThe base currency that all returned values are relative to. Defaults to `USD`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / base_currency / enum
      Previous value: -[
      -  "AED",
      -  "AFN",
      -  "ALL",
      -  "AMD",
      -  "ANG",
      -  "AOA",
      -  "ARS",
      -  "AUD",
      -  "AWG",
      -  "AZN",
      -  "BAM",
      -  "BBD",
      -  "BDT",
      -  "BGN",
      -  "BHD",
      -  "BIF",
      -  "BMD",
      -  "BND",
      -  "BOB",
      -  "BRL",
      -  "BSD",
      -  "BTN",
      -  "BWP",
      -  "BYN",
      -  "BYR",
      -  "BZD",
      -  "CAD",
      -  "CDF",
      -  "CHF",
      -  "CLF",
      -  "CLP",
      -  "CNY",
      -  "COP",
      -  "CRC",
      -  "CUC",
      -  "CUP",
      -  "CVE",
      -  "CZK",
      -  "DJF",
      -  "DKK",
      -  "DOP",
      -  "DZD",
      -  "EGP",
      -  "ERN",
      -  "ETB",
      -  "EUR",
      -  "FJD",
      -  "FKP",
      -  "GBP",
      -  "GEL",
      -  "GGP",
      -  "GHS",
      -  "GIP",
      -  "GMD",
      -  "GNF",
      -  "GTQ",
      -  "GYD",
      -  "HKD",
      -  "HNL",
      -  "HRK",
      -  "HTG",
      -  "HUF",
      -  "IDR",
      -  "ILS",
      -  "IMP",
      -  "INR",
      -  "IQD",
      -  "IRR",
      -  "ISK",
      -  "JEP",
      -  "JMD",
      -  "JOD",
      -  "JPY",
      -  "KES",
      -  "KGS",
      -  "KHR",
      -  "KMF",
      -  "KPW",
      -  "KRW",
      -  "KWD",
      -  "KYD",
      -  "KZT",
      -  "LAK",
      -  "LBP",
      -  "LKR",
      -  "LRD",
      -  "LSL",
      -  "LTL",
      -  "LVL",
      -  "LYD",
      -  "MAD",
      -  "MDL",
      -  "MGA",
      -  "MKD",
      -  "MMK",
      -  "MNT",
      -  "MOP",
      -  "MRO",
      -  "MUR",
      -  "MVR",
      -  "MWK",
      -  "MXN",
      -  "MYR",
      -  "MZN",
      -  "NAD",
      -  "NGN",
      -  "NIO",
      -  "NOK",
      -  "NPR",
      -  "NZD",
      -  "OMR",
      -  "PAB",
      -  "PEN",
      -  "PGK",
      -  "PHP",
      -  "PKR",
      -  "PLN",
      -  "PYG",
      -  "QAR",
      -  "RON",
      -  "RSD",
      -  "RUB",
      -  "RWF",
      -  "SAR",
      -  "SBD",
      -  "SCR",
      -  "SDG",
      -  "SEK",
      -  "SGD",
      -  "SHP",
      -  "SLL",
      -  "SOS",
      -  "SRD",
      -  "STD",
      -  "SVC",
      -  "SYP",
      -  "SZL",
      -  "THB",
      -  "TJS",
      -  "TMT",
      -  "TND",
      -  "TOP",
      -  "TRY",
      -  "TTD",
      -  "TWD",
      -  "TZS",
      -  "UAH",
      -  "UGX",
      -  "USD",
      -  "UYU",
      -  "UZS",
      -  "VEF",
      -  "VND",
      -  "VUV",
      -  "WST",
      -  "XAF",
      -  "XAG",
      -  "XAU",
      -  "XCD",
      -  "XDR",
      -  "XOF",
      -  "XPF",
      -  "YER",
      -  "ZAR",
      -  "ZMK",
      -  "ZMW",
      -  "ZWL",
      -  "XPT",
      -  "XPD",
      -  "BTC",
      -  "ETH",
      -  "BNB",
      -  "XRP",
      -  "SOL",
      -  "DOT",
      -  "AVAX",
      -  "MATIC",
      -  "LTC",
      -  "ADA",
      -  "USDT",
      -  "USDC",
      -  "DAI",
      -  "ARB",
      -  "OP",
      -  "TRX",
      -  "VES",
      -  "STN",
      -  "MRU",
      -  "ZWG",
      -  "SLE",
      -  "XCG"
      -]New value: +[
      +  "AED",
      +  "AFN",
      +  "ALL",
      +  "AMD",
      +  "ANG",
      +  "AOA",
      +  "ARS",
      +  "AUD",
      +  "AWG",
      +  "AZN",
      +  "BAM",
      +  "BBD",
      +  "BDT",
      +  "BGN",
      +  "BHD",
      +  "BIF",
      +  "BMD",
      +  "BND",
      +  "BOB",
      +  "BRL",
      +  "BSD",
      +  "BTN",
      +  "BWP",
      +  "BYN",
      +  "BYR",
      +  "BZD",
      +  "CAD",
      +  "CDF",
      +  "CHF",
      +  "CLF",
      +  "CLP",
      +  "CNH",
      +  "CNY",
      +  "COP",
      +  "CRC",
      +  "CUC",
      +  "CUP",
      +  "CVE",
      +  "CZK",
      +  "DJF",
      +  "DKK",
      +  "DOP",
      +  "DZD",
      +  "EGP",
      +  "ERN",
      +  "ETB",
      +  "EUR",
      +  "FJD",
      +  "FKP",
      +  "GBP",
      +  "GEL",
      +  "GGP",
      +  "GHS",
      +  "GIP",
      +  "GMD",
      +  "GNF",
      +  "GTQ",
      +  "GYD",
      +  "HKD",
      +  "HNL",
      +  "HRK",
      +  "HTG",
      +  "HUF",
      +  "IDR",
      +  "ILS",
      +  "IMP",
      +  "INR",
      +  "IQD",
      +  "IRR",
      +  "ISK",
      +  "JEP",
      +  "JMD",
      +  "JOD",
      +  "JPY",
      +  "KES",
      +  "KGS",
      +  "KHR",
      +  "KMF",
      +  "KPW",
      +  "KRW",
      +  "KWD",
      +  "KYD",
      +  "KZT",
      +  "LAK",
      +  "LBP",
      +  "LKR",
      +  "LRD",
      +  "LSL",
      +  "LTL",
      +  "LVL",
      +  "LYD",
      +  "MAD",
      +  "MDL",
      +  "MGA",
      +  "MKD",
      +  "MMK",
      +  "MNT",
      +  "MOP",
      +  "MRO",
      +  "MUR",
      +  "MVR",
      +  "MWK",
      +  "MXN",
      +  "MYR",
      +  "MZN",
      +  "NAD",
      +  "NGN",
      +  "NIO",
      +  "NOK",
      +  "NPR",
      +  "NZD",
      +  "OMR",
      +  "PAB",
      +  "PEN",
      +  "PGK",
      +  "PHP",
      +  "PKR",
      +  "PLN",
      +  "PYG",
      +  "QAR",
      +  "RON",
      +  "RSD",
      +  "RUB",
      +  "RWF",
      +  "SAR",
      +  "SBD",
      +  "SCR",
      +  "SDG",
      +  "SEK",
      +  "SGD",
      +  "SHP",
      +  "SLL",
      +  "SOS",
      +  "SRD",
      +  "STD",
      +  "SVC",
      +  "SYP",
      +  "SZL",
      +  "THB",
      +  "TJS",
      +  "TMT",
      +  "TND",
      +  "TOP",
      +  "TRY",
      +  "TTD",
      +  "TWD",
      +  "TZS",
      +  "UAH",
      +  "UGX",
      +  "USD",
      +  "UYU",
      +  "UZS",
      +  "VEF",
      +  "VND",
      +  "VUV",
      +  "WST",
      +  "XAF",
      +  "XAG",
      +  "XAU",
      +  "XCD",
      +  "XDR",
      +  "XOF",
      +  "XPF",
      +  "YER",
      +  "ZAR",
      +  "ZMK",
      +  "ZMW",
      +  "ZWL",
      +  "XPT",
      +  "XPD",
      +  "BTC",
      +  "ETH",
      +  "BNB",
      +  "XRP",
      +  "SOL",
      +  "DOT",
      +  "AVAX",
      +  "MATIC",
      +  "LTC",
      +  "ADA",
      +  "USDT",
      +  "USDC",
      +  "DAI",
      +  "ARB",
      +  "OP",
      +  "TRX",
      +  "VES",
      +  "STN",
      +  "MRU",
      +  "ZWG",
      +  "SLE",
      +  "XCG"
      +]
    • changedInput schema / properties / currencies / items / enum
      Previous value: -[
      -  "AED",
      -  "AFN",
      -  "ALL",
      -  "AMD",
      -  "ANG",
      -  "AOA",
      -  "ARS",
      -  "AUD",
      -  "AWG",
      -  "AZN",
      -  "BAM",
      -  "BBD",
      -  "BDT",
      -  "BGN",
      -  "BHD",
      -  "BIF",
      -  "BMD",
      -  "BND",
      -  "BOB",
      -  "BRL",
      -  "BSD",
      -  "BTN",
      -  "BWP",
      -  "BYN",
      -  "BYR",
      -  "BZD",
      -  "CAD",
      -  "CDF",
      -  "CHF",
      -  "CLF",
      -  "CLP",
      -  "CNY",
      -  "COP",
      -  "CRC",
      -  "CUC",
      -  "CUP",
      -  "CVE",
      -  "CZK",
      -  "DJF",
      -  "DKK",
      -  "DOP",
      -  "DZD",
      -  "EGP",
      -  "ERN",
      -  "ETB",
      -  "EUR",
      -  "FJD",
      -  "FKP",
      -  "GBP",
      -  "GEL",
      -  "GGP",
      -  "GHS",
      -  "GIP",
      -  "GMD",
      -  "GNF",
      -  "GTQ",
      -  "GYD",
      -  "HKD",
      -  "HNL",
      -  "HRK",
      -  "HTG",
      -  "HUF",
      -  "IDR",
      -  "ILS",
      -  "IMP",
      -  "INR",
      -  "IQD",
      -  "IRR",
      -  "ISK",
      -  "JEP",
      -  "JMD",
      -  "JOD",
      -  "JPY",
      -  "KES",
      -  "KGS",
      -  "KHR",
      -  "KMF",
      -  "KPW",
      -  "KRW",
      -  "KWD",
      -  "KYD",
      -  "KZT",
      -  "LAK",
      -  "LBP",
      -  "LKR",
      -  "LRD",
      -  "LSL",
      -  "LTL",
      -  "LVL",
      -  "LYD",
      -  "MAD",
      -  "MDL",
      -  "MGA",
      -  "MKD",
      -  "MMK",
      -  "MNT",
      -  "MOP",
      -  "MRO",
      -  "MUR",
      -  "MVR",
      -  "MWK",
      -  "MXN",
      -  "MYR",
      -  "MZN",
      -  "NAD",
      -  "NGN",
      -  "NIO",
      -  "NOK",
      -  "NPR",
      -  "NZD",
      -  "OMR",
      -  "PAB",
      -  "PEN",
      -  "PGK",
      -  "PHP",
      -  "PKR",
      -  "PLN",
      -  "PYG",
      -  "QAR",
      -  "RON",
      -  "RSD",
      -  "RUB",
      -  "RWF",
      -  "SAR",
      -  "SBD",
      -  "SCR",
      -  "SDG",
      -  "SEK",
      -  "SGD",
      -  "SHP",
      -  "SLL",
      -  "SOS",
      -  "SRD",
      -  "STD",
      -  "SVC",
      -  "SYP",
      -  "SZL",
      -  "THB",
      -  "TJS",
      -  "TMT",
      -  "TND",
      -  "TOP",
      -  "TRY",
      -  "TTD",
      -  "TWD",
      -  "TZS",
      -  "UAH",
      -  "UGX",
      -  "USD",
      -  "UYU",
      -  "UZS",
      -  "VEF",
      -  "VND",
      -  "VUV",
      -  "WST",
      -  "XAF",
      -  "XAG",
      -  "XAU",
      -  "XCD",
      -  "XDR",
      -  "XOF",
      -  "XPF",
      -  "YER",
      -  "ZAR",
      -  "ZMK",
      -  "ZMW",
      -  "ZWL",
      -  "XPT",
      -  "XPD",
      -  "BTC",
      -  "ETH",
      -  "BNB",
      -  "XRP",
      -  "SOL",
      -  "DOT",
      -  "AVAX",
      -  "MATIC",
      -  "LTC",
      -  "ADA",
      -  "USDT",
      -  "USDC",
      -  "DAI",
      -  "ARB",
      -  "OP",
      -  "TRX",
      -  "VES",
      -  "STN",
      -  "MRU",
      -  "ZWG",
      -  "SLE",
      -  "XCG"
      -]New value: +[
      +  "AED",
      +  "AFN",
      +  "ALL",
      +  "AMD",
      +  "ANG",
      +  "AOA",
      +  "ARS",
      +  "AUD",
      +  "AWG",
      +  "AZN",
      +  "BAM",
      +  "BBD",
      +  "BDT",
      +  "BGN",
      +  "BHD",
      +  "BIF",
      +  "BMD",
      +  "BND",
      +  "BOB",
      +  "BRL",
      +  "BSD",
      +  "BTN",
      +  "BWP",
      +  "BYN",
      +  "BYR",
      +  "BZD",
      +  "CAD",
      +  "CDF",
      +  "CHF",
      +  "CLF",
      +  "CLP",
      +  "CNH",
      +  "CNY",
      +  "COP",
      +  "CRC",
      +  "CUC",
      +  "CUP",
      +  "CVE",
      +  "CZK",
      +  "DJF",
      +  "DKK",
      +  "DOP",
      +  "DZD",
      +  "EGP",
      +  "ERN",
      +  "ETB",
      +  "EUR",
      +  "FJD",
      +  "FKP",
      +  "GBP",
      +  "GEL",
      +  "GGP",
      +  "GHS",
      +  "GIP",
      +  "GMD",
      +  "GNF",
      +  "GTQ",
      +  "GYD",
      +  "HKD",
      +  "HNL",
      +  "HRK",
      +  "HTG",
      +  "HUF",
      +  "IDR",
      +  "ILS",
      +  "IMP",
      +  "INR",
      +  "IQD",
      +  "IRR",
      +  "ISK",
      +  "JEP",
      +  "JMD",
      +  "JOD",
      +  "JPY",
      +  "KES",
      +  "KGS",
      +  "KHR",
      +  "KMF",
      +  "KPW",
      +  "KRW",
      +  "KWD",
      +  "KYD",
      +  "KZT",
      +  "LAK",
      +  "LBP",
      +  "LKR",
      +  "LRD",
      +  "LSL",
      +  "LTL",
      +  "LVL",
      +  "LYD",
      +  "MAD",
      +  "MDL",
      +  "MGA",
      +  "MKD",
      +  "MMK",
      +  "MNT",
      +  "MOP",
      +  "MRO",
      +  "MUR",
      +  "MVR",
      +  "MWK",
      +  "MXN",
      +  "MYR",
      +  "MZN",
      +  "NAD",
      +  "NGN",
      +  "NIO",
      +  "NOK",
      +  "NPR",
      +  "NZD",
      +  "OMR",
      +  "PAB",
      +  "PEN",
      +  "PGK",
      +  "PHP",
      +  "PKR",
      +  "PLN",
      +  "PYG",
      +  "QAR",
      +  "RON",
      +  "RSD",
      +  "RUB",
      +  "RWF",
      +  "SAR",
      +  "SBD",
      +  "SCR",
      +  "SDG",
      +  "SEK",
      +  "SGD",
      +  "SHP",
      +  "SLL",
      +  "SOS",
      +  "SRD",
      +  "STD",
      +  "SVC",
      +  "SYP",
      +  "SZL",
      +  "THB",
      +  "TJS",
      +  "TMT",
      +  "TND",
      +  "TOP",
      +  "TRY",
      +  "TTD",
      +  "TWD",
      +  "TZS",
      +  "UAH",
      +  "UGX",
      +  "USD",
      +  "UYU",
      +  "UZS",
      +  "VEF",
      +  "VND",
      +  "VUV",
      +  "WST",
      +  "XAF",
      +  "XAG",
      +  "XAU",
      +  "XCD",
      +  "XDR",
      +  "XOF",
      +  "XPF",
      +  "YER",
      +  "ZAR",
      +  "ZMK",
      +  "ZMW",
      +  "ZWL",
      +  "XPT",
      +  "XPD",
      +  "BTC",
      +  "ETH",
      +  "BNB",
      +  "XRP",
      +  "SOL",
      +  "DOT",
      +  "AVAX",
      +  "MATIC",
      +  "LTC",
      +  "ADA",
      +  "USDT",
      +  "USDC",
      +  "DAI",
      +  "ARB",
      +  "OP",
      +  "TRX",
      +  "VES",
      +  "STN",
      +  "MRU",
      +  "ZWG",
      +  "SLE",
      +  "XCG"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / format / description
      Previous value: -"`json` (default) or `csv`. CSV has a header line and one row per currency (and point in time), values without exponent notation."New value: +"`json` (default), `csv` or `xlsx`. CSV has a header line and one row per currency (and point in time), values without exponent notation. `xlsx` is the same table as an Excel workbook (one sheet, bold frozen header row, numbers as numbers), sent as a download named after the endpoint, e.g. `latest.xlsx`."
    • changedInput schema / properties / format / enum
      Previous value: -[
      -  "json",
      -  "csv"
      -]New value: +[
      +  "json",
      +  "csv",
      +  "xlsx"
      +]
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Only a title annotation is supplied, so the description carries the burden and does well: it discloses the extra high/low/average aggregates, states they become null beyond 1830 days or with no data, and notes the CSV keeps its columns. It stops short of describing error behavior for invalid ranges or the exact response envelope.

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?

Two short paragraphs, front-loaded with the core computation and followed by the response caveats; little wasted wording. The trailing 'The CSV keeps its columns' is terse to the point of ambiguity and could be tightened or dropped.

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?

With six parameters and no output schema, the description usefully covers return shape (per-currency start/end/absolute/percent change, plus high/low/average) and the null conditions. Remaining gaps—error cases and default date span behavior—are minor for a read-style rate tool.

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 schema already documents currencies, base_currency, type and format. The description adds meaning the schema lacks for the two required dates: UTC-day interpretation, the 1999-01-01 lower bound and the 'yesterday' upper bound, which directly affects how an agent fills date_to.

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

Purpose4/5

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

The opening sentence names a specific computation (rate at date_from and date_to plus absolute and percent change per requested currency), which is far more precise than the title alone. It does not explicitly contrast itself with getLatest, getHistorical or getRange, so an agent must infer the distinction from the two-date framing.

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?

Usage is implied by the input shape (two dates → fluctuation) and the description supplies hard boundaries (UTC days, back to 1999-01-01, newest allowed is yesterday). It never states when to prefer this over sibling tools such as getRange or getHistorical, so the guidance is contextual rather than directive.

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