Skip to main content
Glama

ECB exchange rates

Convert between currencies at the ECB rate

convert
Read-onlyIdempotent

An amount converted between any two currencies the ECB lists, at its fixing in force on a day, computed exactly and rounded once. The euro to a currency is amount x rate, a currency to the euro is amount / rate, and two currencies go through the euro as amount x rate(to) / rate(from), both rates from the same fixing; no rate is rounded on the way. Answers the result with the rate or rates used and the fixing's date, and a sentence stating the rule, so the conversion can be quoted and checked. The ECB's rates are reference rates, not rates a bank or card will give.

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

Input Schema

NameRequiredDescriptionDefault
toYesThe currency wanted, or EUR. ISO 4217; case ignored.
dateNoThe day of the conversion, YYYY-MM-DD in Frankfurt (an invoice's date, a payment's); default today.
fromYesThe amount's currency, or EUR. ISO 4217; case ignored.
amountYesThe amount, as a decimal string: "1250.50", "-75". Never a number.
placesNoDigits after the point in the result.
roundingNoHow the result is rounded, once: half-up (halves away from zero, as invoices round) or half-even (banker's).half-up

Output Schema

NameRequiredDescriptionDefault
okYes
toYes
dateYesThe day asked for
fromYes
noteNo
ratesYesThe rate of each non-euro currency in the conversion, units per 1 EUR, from the one fixing: one for a euro conversion, two for a cross rate
amountYesThe amount converted, as given
placesYes
resultYesThe converted amount, computed exactly and rounded once
sourceYes
meaningYes
roundingYes
fixing_dateYesThe date of the ECB fixing the conversion used

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the exact calculation rules, that no intermediate rate is rounded, the rounding-once behavior, and the shape of the answer including rates, fixing date, and explanatory sentence. It also warns that ECB rates are reference rates rather than bank or card rates. The annotations already cover read-only, idempotent, open-world, and non-destructive behavior, so this additional computation and output context is substantial.

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?

The description is front-loaded with the core purpose and then supplies useful calculation, output, and caveat details. It is slightly long but every sentence contributes to correct use or interpretation, with no obvious filler.

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?

For a six-parameter conversion tool with an output schema and safety annotations, the description is largely complete: it explains the computation, rounding, output content, and the reference-rate caveat. Minor gaps remain around unsupported currencies or missing fixings on non-business days, but those are not essential for the core call.

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 schema already documents all six parameters in detail. The description adds the conversion formulas and the same-fixing constraint, but it does not provide meaningful additional semantics for individual parameters such as amount, places, or rounding beyond what the schema already states.

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 description states a specific verb and resource: converting an amount between any two ECB-listed currencies at a fixing. It is clear what the tool does and how it differs from raw rate retrieval, but it does not explicitly name or contrast with the sibling tools rate, rates, or health.

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 implies the tool is for currency conversion at ECB reference rates, but it gives no explicit when-to-use or when-not-to-use guidance relative to the sibling rate tools. The caveat that ECB rates are reference rates, not bank rates, is useful context but not an alternative-selection rule.

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.