Micro

markets_convert

markets_convert

Convert an amount from one currency to another — 250 GBP in JPY. Uses European Central Bank reference rates, and takes a past date back to 1999. Crypto converts at the live price through the dollar

No usage charge. Account permissions and usage limits still apply.

Runs on Markets — Track prices and convert currencies.

Arguments

NameTypeWhat it is
amountnumberHow much to convert. Default 1
from*stringCurrency or asset to convert from, as a code: GBP, USD, EUR, BTC…
to*stringCurrency or asset to convert to, as a code: JPY, USD, ETH…
datestringOptional: the rate on a past day, as 2020-01-03. Currencies only, back to 1999

Calling it

Three doors onto the same method. /mcp is what an agent speaks, /api/v1 is what a program speaks, and the answer is identical.

{"id":1,"jsonrpc":"2.0","method":"tools/call","params":{"arguments":{"from":"from","to":"to"},"name":"markets_convert"}}

Browse related tools in the service tools reference.