Skip to main content
Glama

FX reference rates

get_fx_rates
Read-onlyIdempotent

Use when an agent needs official daily exchange rates. Returns the ECB euro foreign exchange reference rates for about 30 currencies, as published or as crosses for another base, plus Hyperliquid HIP-3 FX and commodity marks. The ECB rates are available free of charge on the ECB's website; they are for information only, not for transactions. Costs 0.002 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseNobase currency, 3 letters, default EUR; other bases are crosses computed from the ECB rates

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesthe get_fx_rates payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_fx_rates
toolYesthe tool that produced this payload

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, open-world, non-destructive. The description adds substantial context beyond them: the exact cost (0.002 USDC per call via x402), supported payment chains, and the licensing/disclaimer that ECB rates are free-of-charge and informational only. This goes well past what the annotations declare.

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-loads the usage trigger and content scope efficiently. Most sentences earn their place, though the ECB-website availability note is somewhat extraneous marketing/flavor that could be trimmed without losing agent-relevant information.

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?

With an output schema present, the description need not explain return values. It covers the essential agent-facing facts: what data is returned, the base/cross behavior, cost, payment methods, and the informational-only limitation. Nothing needed to call it correctly is missing.

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 100% and the single 'base' parameter is fully documented in the schema. The description's mention of 'as published or as crosses for another base' largely restates the schema rather than adding new syntax or format detail, so the baseline of 3 is appropriate.

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 verb and resource: returns ECB euro FX reference rates for ~30 currencies, in published form or as crosses, plus Hyperliquid HIP-3 FX/commodity marks. This clearly distinguishes it from the many crypto price siblings (get_btc_price, get_eth_price, get_sol_price) since it is fiat reference-rate focused.

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?

Opens with an explicit trigger: 'Use when an agent needs official daily exchange rates.' It also gives the important caveat that the rates are for information only, not for transactions, which guides appropriate use. It does not, however, name a sibling alternative (e.g. get_convert) or state when NOT to use it.

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.