get_yield_pools_borrow
Retrieve borrow cost APY data from lending markets to analyze borrowing rates across DeFi protocols.
Instructions
GET /yields/poolsBorrow
Borrow costs APY of assets from lending markets.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- defillama_server.py:353-360 (handler)The handler function for the 'get_yield_pools_borrow' tool. It is registered using the @mcp.tool() decorator, which also serves as the registration. The function makes an API request to the DefiLlama '/yields/poolsBorrow' endpoint using the shared make_request helper and returns the JSON response as a string. No input parameters are required.@mcp.tool() async def get_yield_pools_borrow() -> str: """GET /yields/poolsBorrow Borrow costs APY of assets from lending markets. """ result = await make_request('GET', '/yields/poolsBorrow') return str(result)