Skip to main content
Glama

fxapi Exchange Rates MCP Server

Latest exchange rates

getLatest

Returns the latest exchange rates for a given base currency (default USD). The update interval of the returned data depends on your subscription plan (from daily down to minutely).

Optional representations, none of which changes the default response: shape=compact for plain values ("EUR": 0.918456), precision to round, inverse=true for the value of one unit of each currency in the base currency, include=change for the change since the previous day's close, and format=csv.

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

Input Schema

NameRequiredDescriptionDefault
typeNoFilter the returned currencies by type.
shapeNo`default`: every rate as `{"code": "EUR", "value": 0.918456}`. `compact`: plain values, `"EUR": 0.918456`.
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`.
includeNo`change` adds `change` and `change_pct` to every rate: the difference to the close of the day before `last_updated_at` (`meta.change_since`), computed like `/v1/fluctuation`. Null when that close has no rate for the currency. Not with `shape=compact`.
inverseNo`true` adds `inverse` to every rate: the value of one unit of the currency in the base currency (1 / value). Not with `shape=compact`.
precisionNoRound every value to this many decimals (0 to 10). By default values carry up to 10 decimals (10 significant digits below 0.1).
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. Changed1 schema field changed
    • changedInput schema / properties / precision / description
      Previous value: -"Round every value to this many decimals (0 to 10). By default values carry up to 10 decimals."New value: +"Round every value to this many decimals (0 to 10). By default values carry up to 10 decimals (10 significant digits below 0.1)."
  3. 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"
      +]
  4. Changed5 schema fields changed
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "`json` (default) or `csv`. CSV has a header line and one row per currency (and point in time), values without exponent notation.",
      +  "enum": [
      +    "json",
      +    "csv"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / include
      Added value: +{
      +  "description": "`change` adds `change` and `change_pct` to every rate: the difference to the close of the day before `last_updated_at` (`meta.change_since`), computed like `/v1/fluctuation`. Null when that close has no rate for the currency. Not with `shape=compact`.",
      +  "enum": [
      +    "change"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / inverse
      Added value: +{
      +  "description": "`true` adds `inverse` to every rate: the value of one unit of the currency in the base currency (1 / value). Not with `shape=compact`.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / precision
      Added value: +{
      +  "description": "Round every value to this many decimals (0 to 10). By default values carry up to 10 decimals.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / shape
      Added value: +{
      +  "description": "`default`: every rate as `{\"code\": \"EUR\", \"value\": 0.918456}`. `compact`: plain values, `\"EUR\": 0.918456`.",
      +  "enum": [
      +    "default",
      +    "compact"
      +  ],
      +  "type": "string"
      +}
  5. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations carry only a title, so the description bears the full disclosure burden. It usefully reveals that update interval is plan-dependent (daily down to minutely) and that the optional representations do not alter the default response, but it says nothing about authentication needs, rate limits, or caching behavior.

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 sentences, front-loaded with the core purpose and the freshness caveat before the option catalog. The second sentence is a dense run-on of five options, but each clause is short and scannable; nothing is padding.

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

Completeness3/5

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

With 8 parameters, no annotations beyond a title, and no output schema, the definition covers purpose, defaults, and options well but never describes the actual response envelope (metadata such as last-updated timestamp, envelope structure for csv/xlsx downloads). An agent knows how to call it but not precisely what comes back.

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 description coverage is 100%, so the parameters are already fully documented, including the shape=compact and include=change mutual exclusions. The description's parameter summary largely restates the schema, adding only the default base currency and a compact-shape example. Baseline 3 is appropriate.

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?

States a specific verb and resource — returns the latest exchange rates for a given base currency, with the USD default named. 'Latest' implicitly separates it from the historical/range/fluctuation siblings, but no sibling is explicitly named as the alternative for non-latest lookups.

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 nature of the call rather than stated: there is no explicit 'use this when you need current rates, use getHistorical for past dates' routing. The description does tell the agent that data freshness varies by subscription plan, which is useful context for judging whether the result is current.

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