chain_token_price
On-chain token price in USD — USD price of any ERC-20 straight from Uniswap v3 pools (QuoterV2 eth_call vs USDC, direct and via WETH) on base, ethereum, arbitrum, optimism or polygon - no off-chain price API. Also simulates selling 1000 USD worth to report price impact and a liquidity grade (DEEP/MODERATE/THIN/VERY_THIN). token = symbol or contract address. Price: $0.003 USDC (Base, via x402).
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": {
"chain": "<chain>",
"token": "<token>"
},
"name": "chain_token_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | base | |
| token | Yes | WETH |