Currency Converter

Convert an amount between currencies at European Central Bank rates. Returns the converted amount and the rate.

Pay by wallet (x402) currency-convert

Example

Input
{
  "to": "EUR",
  "from": "USD",
  "amount": 100
}
Answer
{
  "to": "EUR",
  "date": "2026-03-06",
  "from": "USD",
  "rate": 0.864977,
  "amount": 100,
  "converted_amount": 86.5
}

Inputs

FieldTypeRequiredWhat it is
tostringYesTarget currency (ISO 4217)
fromstringYesSource currency (ISO 4217)
amountnumberYesAmount to convert

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
tostringAlways (present in every successful answer)
datestringAlways (present in every successful answer)
fromstringAlways (present in every successful answer)
ratenumberAlways (present in every successful answer)
amountnumberAlways (present in every successful answer)
converted_amountnumberAlways (present in every successful answer)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "currency-convert",
    "inputs": {
      "to": "EUR",
      "from": "USD",
      "amount": 100
    },
    "max_price_cents": 2
  }'

Limitations

  • Bank rates include spreads and fees

    Uses mid-market exchange rates — actual conversion rates from banks and payment processors include spread and fees

    What to do instead: Apply your payment processor's typical markup (0.5-3%) to the converted amount for realistic cost estimates

Bundled checks that include it

Related tools