Skip to main content
Glama

Reference exchange rates (ECB, daily)

fx_rates
Read-onlyIdempotent

Use this to convert an amount between currencies or to read a daily reference exchange rate. The only source is the European Central Bank's euro foreign exchange reference rates, set once each working day around 14:15 CET. data.rates[X] is units of X for one unit of base; a rate between two currencies other than the euro is computed through the euro from the same day. date answers with the latest reference day on or before it (data.date says which), so weekends and holidays return the working day before. A currency with no rate that day is left out of rates and listed in not_served. These are reference rates for information, not tradable quotes: no bid, ask or intraday value. Name the ECB and the reference day when you quote one.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "base": "USD",
      "quotes": "EUR,GBP,JPY"
    },
    "name": "fx_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoISO 4217 code of the base currency; default USD.
dateNoLatest reference day on or before this date; default today (YYYY-MM-DD).
quotesNoComma-separated ISO 4217 codes to quote, for example EUR,GBP,JPY; default every currency published that day.

Output Schema

NameRequiredDescriptionDefault
dataNo{ base, date, requested_date, rates { <currency>: units of it for one unit of base }, not_served: [currency], source { id, name, url, attribution, licence }, method (ecb_reference_rate | cross_rate_through_eur), retrieved_at, as_of_note }
metaNoRequest metadata: request_id, as_of, company resolution, coverage, pipeline_version, licence, terms, proof_base.
errorNoPresent only on isError results: the API error code and message plus remedy hints.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only and idempotency, and the description adds substantial context beyond them: publication once per working day around 14:15 CET, weekend/holiday fallback to the prior working day, cross-rate computation through the euro, and omission of currencies listed in not_served. That is exactly the behavioral detail an agent needs before quoting a number.

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 dense but front-loaded, leading with purpose before the mechanics and the caveat. Nearly every sentence carries operational information, though it is long enough that a reader must parse several clauses to extract the quoting rule.

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?

For a three-parameter, zero-required tool with an output schema, the description covers source, timing, fallback behavior, missing-currency handling and the informational caveat. An agent can call it and interpret the result correctly without opening the schema.

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 meaning: data.rates[X] is units of X per one unit of base, and non-euro pairs are derived through the euro from the same day. It also clarifies that date resolves to the latest reference day on or before the given date. The remaining gap is minor – it does not restate the default for quotes, which the schema already covers.

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?

The description opens with two concrete use cases (converting an amount between currencies, reading a daily reference rate) and names the exact data source. It is unambiguous and separable from every sibling listed, none of which deal with FX rates. An agent knows immediately what this tool returns and what it does not.

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

Usage Guidelines4/5

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

It states clear conditions for use and an explicit exclusion: these are reference rates for information, not tradable quotes, with no bid, ask or intraday value. It also constrains the source to the ECB only. It does not name a sibling to use for live quotes, but no FX alternative exists among the siblings, so there is little left to route.

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