Skip to main content
Glama
0xReisearch

REI Crypto MCP Server

by 0xReisearch

get_yield_chart_lend_borrow

Retrieve historical borrow cost APY data for a specific lending market pool on the REI Crypto MCP Server using pool ID from /poolsBorrow.

Instructions

GET /yields/chartLendBorrow/{pool}

Historical borrow cost APY from a pool on a lending market. Parameters: pool: pool id (can be retrieved from /poolsBorrow)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
poolYes

Implementation Reference

  • The handler function implementing the 'get_yield_chart_lend_borrow' tool. It fetches historical borrow cost APY data from the DefiLlama API for a given pool ID using the shared make_request helper.
    @mcp.tool() async def get_yield_chart_lend_borrow(pool: str) -> str: """GET /yields/chartLendBorrow/{pool} Historical borrow cost APY from a pool on a lending market. Parameters: pool: pool id (can be retrieved from /poolsBorrow) """ result = await make_request('GET', f'/yields/chartLendBorrow/{pool}') return str(result)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xReisearch/crypto-mcp-beta'

If you have feedback or need assistance with the MCP directory API, please join our Discord server