token_price
Read a token's spot price in USD, computed on-chain from Uniswap V2 and V3 liquidity on the token's chain (no external price API): the price, the pair or pool used, and its reserves as a depth signal. The deepest usable pool wins. A token with no usable pool returns found: false rather than a fabricated price. The response labels the source as on-chain DEX spot and notes that spot prices move and thin pools are manipulable. Works on base and ethereum, and on polygon, arbitrum and optimism where canonical Uniswap pools exist. Price: $0.003 USDC on 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": {
"token": "<token>"
},
"name": "token_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain to read: base (default), ethereum, polygon, arbitrum or optimism. | |
| token | Yes | ERC-20 token contract address to price. |