Skip to main content
Glama
x402-data-mcp

x402-data-mcp

Latest or historic ECB reference exchange rates with optional amount conversion ($0.003)

get_exchange_rates

Retrieve European Central Bank reference exchange rates for a current or historical date since 1999, with optional base currency, target symbols, and amount conversion.

Instructions

European Central Bank reference rates: latest or any date since 1999-01-04, any base, optional symbols list and amount to convert. About 30 currencies, published once per working day. Returns the publication date actually used. Not charged on bad input, no data for the date, or upstream failure. No API key. Price: $0.003 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).

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

Input Schema

NameRequiredDescriptionDefault
baseNoBase currency code (default USD)
dateNoYYYY-MM-DD, 1999-01-04 or later (default latest)
amountNoAmount of the base currency to convert
symbolsNoComma list of target codes, e.g. EUR,JPY (default all)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations are sparse and partly counter-intuitive (readOnlyHint=false on a pure lookup), but the description supplies the missing context: ~30 currencies, published once per working day, the actually-used publication date is returned, and no charge on bad input/no data/upstream failure. It also discloses the auth/payment path (no API key, $0.003 USDC over x402 on Base from X402_PRIVATE_KEY), which explains the non-read-only hint as a wallet-spending operation rather than a contradiction. It stops short of describing the response payload shape.

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 core capability is front-loaded in the first sentence, followed by behavior and then pricing. Slight waste: the no-charge-on-failure rule is stated twice ('Not charged on bad input...' and '(not charged when the call fails)'), making the second half repetitive.

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 4-parameter, no-output-schema tool the definition covers scope, data freshness, date limits, payment mechanics, and failure billing. The main residual gap is return-value shape (e.g., a rates map keyed by target code) which, with no output schema, is left to inference.

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 four parameters including patterns and defaults. The prose adds only marginal meaning ('About 30 currencies' clarifies what symbols defaults to, and 'any base' restates base); no examples or edge-case semantics (e.g., historical weekend dates resolving to the prior publication day) are added.

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 source (European Central Bank reference rates) plus full scope: latest or any date since 1999-01-04, any base, optional symbol list and amount conversion. That is enough to distinguish it from the sibling price/market tools like get_crypto_prices or get_gas_prices without opening the schema.

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?

Usage is implied by the scope statement (you want an ECB rate for the latest or a historic date, optionally converted), and the historic-range constraint tells the agent the tool's applicability window. However, it never names an alternative or states when not to use it (e.g., crypto pairs, non-ECB currencies), so the agent must infer routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.