← all tools
Lending rates
Asks every lending protocol indexed on a chain the same standardized question and returns a decision rather than a table: the best rate, the liquidity behind it, and why any higher rate was discarded as too thin or too stale to trust.
Arguments
asset
string · required
Asset symbol, e.g. USDC or WETH
chain
enum · required
Chain to search
What it answers
{"asset":"USDC","chain":"ethereum"}Best supply rate: 4.86% on compound-v3, backed by $375.4M of liquidity. iron-bank reports 75.10%, far outside what every live market on this chain pays. Read as stale data from an abandoned protocol, not an offer. Next best is aave-v3 at 3.62%, 1.23 points behind.
Call it from an agent
Over MCP the tool is called by name and the payment is handled underneath.
lending_rates(asset: "USDC", chain: "ethereum")
Call it over HTTP
The first request returns 402 with the accepted networks. Sign one and repeat the request with the receipt.
curl -X POST https://onchainrouter.io/api/tools/lending-rates \ -H 'Content-Type: application/json' \ -d '{"asset":"USDC","chain":"ethereum"}' ← 402 Payment Required PAYMENT-REQUIRED: hedera:testnet, eip155:5042002 curl -X POST https://onchainrouter.io/api/tools/lending-rates \ -H 'Content-Type: application/json' \ -H "PAYMENT-SIGNATURE: $RECEIPT" \ -d '{"asset":"USDC","chain":"ethereum"}' ← 200 OK