Skip to main content
Glama

Genesis tools

ECB Currency Exchange Rates API (per-call)

ecb_currency_exchange_rates
Read-only

Official European Central Bank euro foreign exchange reference rates as clean JSON, per call. Send a base currency and a list of target currency codes and receive the current cross-rate for each target plus the ECB reference date and source. Data comes from the ECB's public daily euro reference rate feed (eurofxref-daily.xml), published by the ECB for reuse. Built for AI agents and developers that need a trustworthy, dated FX rate in one call without scraping or maintaining a currency table. Errors (unknown currency code, unreachable source) are returned as a clear JSON error message, never as silent empty fields. Example input: {"base": "EUR", "symbols": ["USD", "GBP"]}. Uses one call of your free daily calls or prepaid key; x402 clients pay $0.001 per call in USDC. Only successful calls count.

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

Input Schema

NameRequiredDescriptionDefault
baseNo
symbolsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly/openWorld/non-destructive, so the description's added value is the error contract ('returned as a clear JSON error message, never as silent empty fields'), the upstream source (eurofxref-daily.xml) and the billing behavior. It does not explain rate staleness/freshness beyond 'ECB reference date', caching, or response shape, so the added behavioral context is real but partial.

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 core statement and the example input early; most sentences carry information. The billing tail ('x402 clients pay $0.001 per call in USDC. Only successful calls count.') is somewhat commercial padding but still actionable for an agent weighing cost.

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 only two parameters, no output schema and safety already covered by annotations, the description covers what the tool returns (cross-rate per target plus reference date and source) and how failures surface. It leaves the exact response field names and optional-parameter defaults unspecified, which is the main remaining gap.

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 coverage is 0%, so the description must compensate; it does describe both parameters (a base currency and a list of target codes) and supplies an example input {"base":"EUR","symbols":["USD","GBP"]}. However neither parameter is required, and the description never states defaults for an omitted base or symbols, nor code-case/format rules beyond implying ISO codes — meaningful gaps at zero schema coverage.

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 resource and scope: official ECB euro foreign exchange reference rates, converted from a base currency to a list of targets. The domain (official fiat reference rates) makes it unmistakable against crypto/price siblings like token_price or bitcoin_balance_lookup.

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?

Gives clear context for use ('AI agents and developers that need a trustworthy, dated FX rate in one call without scraping or maintaining a currency table') and notes the per-call cost model. It offers no explicit when-not conditions or named alternatives, so it stops short of a 5.

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