get_payment_quote
Preview the cost, FX rate, and final amount for moving money between two currencies. Provide exactly one of amountIn (what the user sends) or amountOut (what they want to receive). Returns the quote ID, exchange rate, fee, and how long the quote stays valid. Use this BEFORE initiate_payment so the user can confirm the rate. Routes internally based on the currency pair — agents don't need to know which provider handles which corridor.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fromCurrency": "<fromCurrency>",
"toCurrency": "<toCurrency>"
},
"name": "get_payment_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amountIn | No | Amount to send (in `fromCurrency` units). Omit if specifying `amountOut`. | |
| amountOut | No | Amount to receive (in `toCurrency` units). Omit if specifying `amountIn`. | |
| toCurrency | Yes | Destination currency. ONRAMP example: 'USDC'. OFFRAMP example: 'BRL'. | |
| fromCurrency | Yes | Source currency. ONRAMP example: 'BRL' (sending Brazilian reais). OFFRAMP example: 'USDC' (sending Base USDC). |