Skip to main content
Glama

Ecb Exchange Rate

ecb_exchange_rate
Read-onlyIdempotent

AUTHORITATIVE euro foreign-exchange reference rate from the European Central Bank, the official daily EUR spot rate against a target currency (ISO 4217: USD, GBP, JPY, CHF, ...). Use for "current EUR/USD rate", "EURUSD spot", "what is the euro worth in dollars", and for historical FX series. Returns latest ({period, value}) for the current rate plus recent labeled observations; pass start_period/end_period (or last_n) for a longer history. This is the published mid-market reference rate, not a dealer or exchange quote, so there is no bid/ask spread.

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": {
      "currency": "USD"
    },
    "name": "ecb_exchange_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
last_nNoReturn only the last N observations. Defaults to 30 when no start_period is given.
currencyYesISO 4217 currency code (USD, GBP, JPY, ...)
frequencyNoObservation frequency, D (daily), M (monthly), Q (quarterly), A (annual). Default D.
end_periodNoEnd date (YYYY-MM-DD)
start_periodNoStart date (YYYY-MM-DD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / frequency / description
      Previous value: -"Observation frequency — D (daily), M (monthly), Q (quarterly), A (annual). Default D."New value: +"Observation frequency, D (daily), M (monthly), Q (quarterly), A (annual). Default D."
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "currency": "USD"
      +  },
      +  {
      +    "currency": "GBP",
      +    "end_period": "2023-12-31",
      +    "frequency": "M",
      +    "start_period": "2023-01-01"
      +  }
      +]
  3. Changed1 schema field changed
    • addedInput schema / properties / last_n
      Added value: +{
      +  "description": "Return only the last N observations. Defaults to 30 when no start_period is given.",
      +  "type": "number"
      +}
  4. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, open-world behavior, and the description adds real context beyond that: it is a published mid-market reference rate with no bid/ask spread, and it returns a `latest` object plus labeled observations. It does not cover publication timing or rate limits, which is the only remaining gap for a no-output-schema tool.

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?

It is front-loaded with the authoritative-source framing and the return-shape note, and every sentence carries information. It is dense but not padded; minor redundancy with the schema's last_n default is the only waste.

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 no output schema, the description correctly steps in to describe the `latest` {period, value} shape and the additional observations. Combined with fully documented parameters and annotations, an agent has enough to call it correctly; publication cadence is the one omission.

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 parameter meaning is already carried by the schema, including the last_n default of 30 and the D/M/Q/A frequency options. The description restates the start_period/end_period/last_n relationship and currency examples without adding new syntax or constraints, so the baseline 3 applies.

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 names a specific verb and resource: the ECB's authoritative daily EUR foreign-exchange reference rate against a target ISO 4217 currency. It distinguishes this from dealer/exchange quotes and is clearly separable from siblings such as ecb_policy_rate or ecb_hicp_inflation.

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 gives concrete trigger phrasings ("current EUR/USD rate", "EURUSD spot", "what is the euro worth in dollars") and states the historical-series case, plus how to request longer history via start_period/end_period or last_n. It stops short of naming an alternative tool or an explicit when-not-to-use condition.

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.