Skip to main content
Glama

Currency conversion (ECB): amount from one currency into up to 10, any date since 1999

fx_convert
Read-onlyIdempotent

Use when you need to convert an amount between currencies (USD↔KRW, EUR→JPY, ...) at the official ECB reference rate, today or on a past date. Input: from, to (1–10 comma-separated), amount (default 1), optional date (YYYY-MM-DD since 1999-01-04; weekends use the prior fixing). Output: JSON per target rate, inverse rate and converted result, the fixing date used. Source: ECB statistics; reference only. Use instead: fx_rates for every ECB rate for one fixing with % change vs the prior fixing; fx_history for a date range. Example: ?from=USD&to=KRW,JPY&amount=250 Price: $0.002 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "fx_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes1–10 comma-separated target currencies. Supported: EUR,USD,JPY,KRW,CNY,GBP,AUD,BRL,CAD,CHF,CZK,DKK,HKD,HUF,IDR,ILS,INR,ISK,MXN,MYR,NOK,NZD,PHP,PLN,RON,SEK,SGD,THB,TRY,ZAR
dateNoFixing date YYYY-MM-DD from 1999-01-04 (default latest)
fromYesSource currency, ISO 4217 (one of the 30 ECB reference currencies)
amountNoAmount in the source currency (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world and non-destructive, yet the description still adds real value: weekend dates fall back to the prior fixing, the source is ECB reference data, the rate is 'reference only', and the call costs $0.002 paid in USDC via x402. That payment/rate-source disclosure is behavior an agent cannot get from structured fields.

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?

Front-loaded with the use case, then Input/Output/Source/Alternatives/Example in a compact block — every element is functional. It is dense in a single paragraph and the pricing sentence sits at the tail rather than being signposted, which costs a point on structure but not on content.

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?

With no output schema, the description still specifies the return shape (per-target rate, inverse rate, converted result, fixing date used), and it covers the date fallback rule and the sibling boundary. Nothing an agent needs to call this correctly or interpret the response is missing.

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 baseline is 3, but the description adds meaning beyond it: amount defaults to 1, date must be since 1999-01-04 with weekend handling, and a concrete example (?from=USD&to=KRW,JPY&amount=250) demonstrates the multi-target syntax. Slight duplication of the schema's enum list would have been the only way to go higher, and that would be redundant.

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 — convert an amount between currencies at the official ECB reference rate — plus scope (today or any past date). It explicitly names the two adjacent siblings (fx_rates, fx_history) and what they do differently, so an agent can route without opening schemas.

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

Usage Guidelines5/5

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

Opens with an explicit 'Use when' trigger and closes with 'Use instead: fx_rates for every ECB rate for one fixing...; fx_history for a date range.' Both alternatives and the condition that selects them are spelled out, leaving nothing 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