Skip to main content
Glama

Fx rate

fx_rate
Read-onlyIdempotent

Currency exchange rate and conversion read on chain from Chainlink FX feeds on Ethereum: EUR, GBP, JPY, CHF, AUD, CAD, CNY, KRW, SGD, TRY, BRL, NZD, PHP, USD, gold (XAU) and silver (XAG); cross rates from two USD feeds. $0.001 per call over x402 (USDC on Arc, Base or Solana, or XNT on X1). Call once without payment for the terms, sign them with your own wallet, call again with payment.

Input Schema

NameRequiredDescriptionDefault
toNo3-letter code, default USD
fromYes3-letter code, e.g. EUR
amountNoamount to convert, default 1
paymentNoa signed x402 payment (the base64 payload you would put in PAYMENT-SIGNATURE). Pass it and the purchase completes inside this tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare read-only/idempotent/open-world; the description adds the material behavior they omit — a $0.001 per-call charge over x402 with three named payment rails and a two-step signed-payment handshake. It does not disclose rate freshness/staleness, rate limits, or failure behavior.

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?

Single dense paragraph with the capability and asset list front-loaded, followed by price and payment flow. Every clause carries information, though the currency enumeration is long and slightly crowds out other detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the payment workflow well, which is the hardest part of this tool. With no output schema, however, the description never indicates what a successful response looks like (rate value, decimals/scale, timestamp, converted amount), leaving a real gap for a conversion tool.

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%, so the schema already defines each parameter and its defaults. The description only indirectly enriches `from`/`to` by explaining that cross rates are computed from two USD feeds, and adds nothing about `amount` or `payment` beyond what the schema states.

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+resource (currency exchange rate and conversion) and names the exact data source (Chainlink FX feeds on Ethereum) plus the full supported asset list, which lets an agent separate it from the crypto-oriented siblings like crypto_price.

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 explicit operational sequencing: call once without `payment` to obtain terms, sign with your own wallet, call again with `payment`. It does not explicitly say when to prefer this over a sibling such as crypto_price, so the alternative-selection guidance is only implied.

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.