Skip to main content
Glama

Crypto & Web Data API for Agents

Currency conversion: fiat (ECB, NBU incl. UAH) and major crypto

fx
Read-only

Currency conversion: fiat (ECB, NBU incl. UAH) and major crypto. Converts an amount between ~60 fiat currencies (ECB reference rates plus National Bank of Ukraine rates) and major cryptocurrencies (Binance, vs USDT). Cached 30 min for fiat, 5 s for crypto. Price $0.005 per call (x402: USDC on Base or Solana).

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

Input Schema

NameRequiredDescriptionDefault
toNoEUR
txNoAlternative to the X-Payment-Tx header
fromNoUSD
amountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With readOnlyHint and openWorldHint already covering safety and scope, the description adds genuinely useful behavior: fiat cache TTL of 30 minutes versus 5 seconds for crypto, so the agent knows how stale a rate may be. It also discloses the $0.005 per-call cost and the x402 payment mechanism (USDC on Base or Solana), which is critical before invoking. It stops short of explaining failure modes when payment is missing or what format the conversion is returned in.

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?

Four short sentences that front-load the capability and then layer on sources, caching, and cost; almost nothing is wasted. The opening sentence largely restates the title, which is minor redundancy but not harmful.

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?

There is no output schema, so the description should ideally hint at the response shape, and it does not. Given a 4-parameter tool with low schema coverage, the omission of multi-target conversion and the tx/payment-header parameter leaves real gaps for correct invocation.

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 only 25%, so the description must compensate. It adds the important semantic that crypto rates are quoted versus USDT, which changes how a BTC-to-fiat conversion is computed. But it never mentions that 'to' accepts a comma-separated list of up to 10 targets (visible only in the pattern and example), and it says nothing about the tx parameter beyond what the schema's own one-line description provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Converts an amount between ~60 fiat currencies ... and major cryptocurrencies', and names the underlying rate sources (ECB, NBU, Binance). This clearly separates it from rate-lookup siblings like price or prices, though it never names an alternative explicitly.

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 coverage statement (which currencies and sources are supported), so an agent can infer this is the tool for amount conversion. However, there is no explicit guidance on when to prefer this over price or prices, nor any stated exclusions or prerequisites.

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