get_token_fiat_rate
Fetch a live token-to-fiat spot rate from CoinGecko to price crypto-denominated x402 payment mandates in fiat. Supports USDC, USDT, EURC, ETH and SOL.
Instructions
Fetch a spot token->fiat exchange rate from the CoinGecko public API, e.g. to price a crypto-denominated (x402) mandate in fiat. Supports USDC, USDT, EURC, ETH and SOL. Requires the optional 'oracle' extra (pip install ap2-iso20022[oracle]). Reaches an external service: the returned rate is a live spot price, not a guarantee, and this tool never moves money.
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": {
"token_symbol": "<token_symbol>"
},
"name": "get_token_fiat_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_symbol | Yes | Token symbol: USDC, USDT, EURC, ETH or SOL. | |
| fiat_currency | No | Fiat currency code to price in. | USD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||