putty
MCPBlockchainDeFi

get_token_price

Fetch a token's spot price by asking the Uniswap API for a 100 USDC -> token quote and dividing. The Uniswap API does not expose a direct price endpoint, so the /quote derivation is the only path. Returns `{ pricePerToken, quoteToken, amountIn: 100, currency: USD }`. The derivation has known limits: a token with less than ~100 USDC of liquidity may return a partial price; UniswapX routes have a minimum swap value (300 USDC on Ethereum, 1000 USDC on L2s) and the call may fail below those thresholds. Defaults `quoteToken` to canonical USDC on Ethereum and Base; Robinhood does not have a canonical USDC, so callers on Robinhood must pass `quoteToken` explicitly. The `currency` label is `USD` because the helper assumes the quote token is a USD-pegged stablecoin.

Fetch a token's spot price by asking the Uniswap API for a 100 USDC -> token quote and dividing. The Uniswap API does not expose a direct price endpoint, so the /quote derivation is the only path.

Input

The tool takes a single JSON object. Every field, its type, and an example are on the generated reference at GET /mcp/tools, under this tool's name.

Calling it

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "get_token_price", "arguments": {} }
}

Put your arguments in place of the empty object. A call that fails comes back as a normal result carrying isError: true and a message naming what went wrong, not as a JSON-RPC protocol error.

Notes

Returns { pricePerToken, quoteToken, amountIn: 100, currency: USD }. The derivation has known limits: a token with less than ~100 USDC of liquidity may return a partial price; UniswapX routes have a minimum swap value (300 USDC on Ethereum, 1000 USDC on L2s) and the call may fail below those thresholds. Defaults quoteToken to canonical USDC on Ethereum and Base; Robinhood does not have a canonical USDC, so callers on Robinhood must pass quoteToken explicitly. The currency label is USD because the helper assumes the quote token is a USD-pegged stablecoin.

The full request and response shape, and a live playground, live on the generated reference at GET /mcp/tools.

On this page