{
  "x402Version": 2,
  "id": 37926,
  "slug": "37926",
  "resource": "https://api.teardrop.dev/tools/mcp#get_lending_rates",
  "description": "Teardrop get_lending_rates: Get current on-chain lending supply/borrow APYs for Aave v3 reserves and Compound v3 markets on Ethereum or Base, with per-asset snapshots and Compound utilization. Use for protocol-specific yield comparisons such as USDC on Aave vs Compound.",
  "type": "http",
  "resourceType": "MCP Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF2Eec9De86274913F85A8aA6427Ad65a9B0bC90a",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "chain_id": {
            "type": "integer"
          },
          "data_block_number": {
            "type": "integer"
          },
          "errors": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "note": {
            "default": "On-chain lending market snapshot at data_block_number. Aave rates are derived from ProtocolDataProvider.getReserveData (ray-scaled). Compound rates are derived from Comet getUtilization/getSupplyRate/getBorrowRate (per-second 1e18-scaled), annualized to APY.",
            "type": "string"
          },
          "protocol": {
            "type": "string"
          },
          "rates": {
            "items": {
              "properties": {
                "asset_symbol": {
                  "type": "string"
                },
                "borrow_apy_pct": {
                  "type": "number"
                },
                "chain_id": {
                  "type": "integer"
                },
                "market_name": {
                  "type": "string"
                },
                "protocol": {
                  "enum": [
                    "aave-v3",
                    "compound-v3"
                  ],
                  "type": "string"
                },
                "source": {
                  "const": "on-chain",
                  "default": "on-chain",
                  "type": "string"
                },
                "supply_apy_pct": {
                  "type": "number"
                },
                "utilization_pct": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "default": null
                }
              },
              "required": [
                "protocol",
                "chain_id",
                "market_name",
                "asset_symbol",
                "supply_apy_pct",
                "borrow_apy_pct"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "protocol",
          "chain_id",
          "data_block_number",
          "rates"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "description": "Get current on-chain lending supply/borrow APYs for Aave v3 reserves and Compound v3 markets on Ethereum or Base, with per-asset snapshots and Compound utilization. Use for protocol-specific yield comparisons such as USDC on Aave vs Compound.",
          "inputSchema": {
            "properties": {
              "assets": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Optional asset-symbol filter (e.g., ['USDC','DAI']). Case-insensitive. Max 20 symbols.",
                "title": "Assets"
              },
              "chain_id": {
                "default": 1,
                "description": "Chain ID (1=Ethereum, 8453=Base).",
                "title": "Chain Id",
                "type": "integer"
              },
              "protocol": {
                "default": "all",
                "description": "Protocol to query: 'aave-v3', 'compound-v3', or 'all'.",
                "enum": [
                  "all",
                  "aave-v3",
                  "compound-v3"
                ],
                "title": "Protocol",
                "type": "string"
              }
            },
            "title": "GetLendingRatesInput",
            "type": "object"
          },
          "toolName": "get_lending_rates",
          "transport": "streamable-http",
          "type": "mcp"
        },
        "output": {
          "example": {
            "chain_id": 0,
            "data_block_number": 0,
            "protocol": "",
            "rates": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "description": {
                "type": "string"
              },
              "inputSchema": {
                "type": "object"
              },
              "toolName": {
                "type": "string"
              },
              "transport": {
                "enum": [
                  "streamable-http",
                  "sse"
                ],
                "type": "string"
              },
              "type": {
                "const": "mcp",
                "type": "string"
              }
            },
            "required": [
              "type",
              "toolName",
              "inputSchema"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "chain_id": {
                    "type": "integer"
                  },
                  "data_block_number": {
                    "type": "integer"
                  },
                  "errors": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "note": {
                    "default": "On-chain lending market snapshot at data_block_number. Aave rates are derived from ProtocolDataProvider.getReserveData (ray-scaled). Compound rates are derived from Comet getUtilization/getSupplyRate/getBorrowRate (per-second 1e18-scaled), annualized to APY.",
                    "type": "string"
                  },
                  "protocol": {
                    "type": "string"
                  },
                  "rates": {
                    "items": {
                      "properties": {
                        "asset_symbol": {
                          "type": "string"
                        },
                        "borrow_apy_pct": {
                          "type": "number"
                        },
                        "chain_id": {
                          "type": "integer"
                        },
                        "market_name": {
                          "type": "string"
                        },
                        "protocol": {
                          "enum": [
                            "aave-v3",
                            "compound-v3"
                          ],
                          "type": "string"
                        },
                        "source": {
                          "const": "on-chain",
                          "default": "on-chain",
                          "type": "string"
                        },
                        "supply_apy_pct": {
                          "type": "number"
                        },
                        "utilization_pct": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "default": null
                        }
                      },
                      "required": [
                        "protocol",
                        "chain_id",
                        "market_name",
                        "asset_symbol",
                        "supply_apy_pct",
                        "borrow_apy_pct"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "protocol",
                  "chain_id",
                  "data_block_number",
                  "rates"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.teardrop.dev",
  "lastUpdated": "2026-10-08T00:43:01.458Z",
  "quality": {
    "calls30d": 0,
    "uniquePayers30d": 0,
    "lastCalledAt": "2026-10-05T01:31:18.293Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "description": "Get current on-chain lending supply/borrow APYs for Aave v3 reserves and Compound v3 markets on Ethereum or Base, with per-asset snapshots and Compound utilization. Use for protocol-specific yield comparisons such as USDC on Aave vs Compound.",
            "inputSchema": {
              "properties": {
                "assets": {
                  "anyOf": [
                    {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "default": null,
                  "description": "Optional asset-symbol filter (e.g., ['USDC','DAI']). Case-insensitive. Max 20 symbols.",
                  "title": "Assets"
                },
                "chain_id": {
                  "default": 1,
                  "description": "Chain ID (1=Ethereum, 8453=Base).",
                  "title": "Chain Id",
                  "type": "integer"
                },
                "protocol": {
                  "default": "all",
                  "description": "Protocol to query: 'aave-v3', 'compound-v3', or 'all'.",
                  "enum": [
                    "all",
                    "aave-v3",
                    "compound-v3"
                  ],
                  "title": "Protocol",
                  "type": "string"
                }
              },
              "title": "GetLendingRatesInput",
              "type": "object"
            },
            "toolName": "get_lending_rates",
            "transport": "streamable-http",
            "type": "mcp"
          },
          "output": {
            "example": {
              "chain_id": 0,
              "data_block_number": 0,
              "protocol": "",
              "rates": []
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "description": {
                  "type": "string"
                },
                "inputSchema": {
                  "type": "object"
                },
                "toolName": {
                  "type": "string"
                },
                "transport": {
                  "enum": [
                    "streamable-http",
                    "sse"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "mcp",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "toolName",
                "inputSchema"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "chain_id": {
                      "type": "integer"
                    },
                    "data_block_number": {
                      "type": "integer"
                    },
                    "errors": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "note": {
                      "default": "On-chain lending market snapshot at data_block_number. Aave rates are derived from ProtocolDataProvider.getReserveData (ray-scaled). Compound rates are derived from Comet getUtilization/getSupplyRate/getBorrowRate (per-second 1e18-scaled), annualized to APY.",
                      "type": "string"
                    },
                    "protocol": {
                      "type": "string"
                    },
                    "rates": {
                      "items": {
                        "properties": {
                          "asset_symbol": {
                            "type": "string"
                          },
                          "borrow_apy_pct": {
                            "type": "number"
                          },
                          "chain_id": {
                            "type": "integer"
                          },
                          "market_name": {
                            "type": "string"
                          },
                          "protocol": {
                            "enum": [
                              "aave-v3",
                              "compound-v3"
                            ],
                            "type": "string"
                          },
                          "source": {
                            "const": "on-chain",
                            "default": "on-chain",
                            "type": "string"
                          },
                          "supply_apy_pct": {
                            "type": "number"
                          },
                          "utilization_pct": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "required": [
                          "protocol",
                          "chain_id",
                          "market_name",
                          "asset_symbol",
                          "supply_apy_pct",
                          "borrow_apy_pct"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "protocol",
                    "chain_id",
                    "data_block_number",
                    "rates"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.teardrop.dev",
    "manifest_name": "api.teardrop.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "chain_id": 0,
      "data_block_number": 0,
      "errors": [
        "string"
      ],
      "note": "On-chain lending market snapshot at data_block_number. Aave rates are derived from ProtocolDataProvider.getReserveData (ray-scaled). Compound rates are derived from Comet getUtilization/getSupplyRate/getBorrowRate (per-second 1e18-scaled), annualized to APY.",
      "protocol": "string",
      "rates": [
        {
          "asset_symbol": "string",
          "borrow_apy_pct": 0,
          "chain_id": 0,
          "market_name": "string",
          "protocol": "aave-v3",
          "source": "on-chain",
          "supply_apy_pct": 0,
          "utilization_pct": null
        }
      ]
    },
    "type": "string"
  }
}