{
  "x402Version": 2,
  "id": 37925,
  "slug": "37925",
  "resource": "https://api.teardrop.dev/tools/mcp#get_liquidation_risk",
  "description": "Teardrop get_liquidation_risk: Assess DeFi liquidation risk for up to 50 wallets across Aave v3 and Compound v3 on Ethereum or Base. Returns per-wallet health factor, tiered risk classification (liquidatable, critical, warning, caution, healthy, no_debt), and an overall_tier aggregate. Per-protocol failures are isolated - one protocol's RPC error does not blank the other's result.",
  "type": "http",
  "resourceType": "MCP Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF2Eec9De86274913F85A8aA6427Ad65a9B0bC90a",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "chain_id": {
            "type": "integer"
          },
          "data_block_number": {
            "type": "integer"
          },
          "note": {
            "default": "On-chain liquidation-risk snapshot at data_block_number. Aave risk_tier is derived from the numeric health factor: liquidatable (<1.0), critical (<1.05), warning (<1.15), caution (<1.5), healthy (≥1.5). Compound v3 exposes only a boolean isLiquidatable — a numeric health factor is not available from this tool; do not attempt to compute, estimate, or infer it via additional tool calls. Do not infer a Compound liquidation or breach price from this output. overall_tier is the worst tier across protocols for each wallet. Aave USD values are base-currency 8-decimal from the Aave oracle. Duplicate wallet addresses in the request are deduplicated silently.",
            "type": "string"
          },
          "results": {
            "items": {
              "properties": {
                "aave": {
                  "anyOf": [
                    {
                      "properties": {
                        "health_factor": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "liquidation_threshold_bps": {
                          "type": "integer"
                        },
                        "ltv_bps": {
                          "type": "integer"
                        },
                        "risk_tier": {
                          "type": "string"
                        },
                        "total_collateral_usd": {
                          "type": "number"
                        },
                        "total_debt_usd": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "health_factor",
                        "risk_tier",
                        "total_collateral_usd",
                        "total_debt_usd",
                        "liquidation_threshold_bps",
                        "ltv_bps"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "default": null
                },
                "chain_id": {
                  "type": "integer"
                },
                "compound": {
                  "items": {
                    "properties": {
                      "base_asset_symbol": {
                        "type": "string"
                      },
                      "borrow_balance_raw": {
                        "type": "string"
                      },
                      "is_liquidatable": {
                        "type": "boolean"
                      },
                      "market_address": {
                        "type": "string"
                      },
                      "market_name": {
                        "type": "string"
                      },
                      "risk_tier": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "market_name",
                      "market_address",
                      "base_asset_symbol",
                      "is_liquidatable",
                      "borrow_balance_raw",
                      "risk_tier"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "errors": {
                  "items": {
                    "properties": {
                      "error": {
                        "type": "string"
                      },
                      "protocol": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "protocol",
                      "error"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "overall_tier": {
                  "type": "string"
                },
                "wallet_address": {
                  "type": "string"
                }
              },
              "required": [
                "wallet_address",
                "chain_id",
                "overall_tier"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "summary": {
            "properties": {
              "caution_count": {
                "type": "integer"
              },
              "critical_count": {
                "type": "integer"
              },
              "healthy_count": {
                "type": "integer"
              },
              "liquidatable_count": {
                "type": "integer"
              },
              "no_debt_count": {
                "type": "integer"
              },
              "total_wallets": {
                "type": "integer"
              },
              "warning_count": {
                "type": "integer"
              }
            },
            "required": [
              "total_wallets",
              "liquidatable_count",
              "critical_count",
              "warning_count",
              "caution_count",
              "healthy_count",
              "no_debt_count"
            ],
            "type": "object"
          }
        },
        "required": [
          "chain_id",
          "data_block_number",
          "results",
          "summary"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "description": "Assess DeFi liquidation risk for up to 50 wallets across Aave v3 and Compound v3 on Ethereum or Base. Returns per-wallet health factor, tiered risk classification (liquidatable, critical, warning, caution, healthy, no_debt), and an overall_tier aggregate. Per-protocol failures are isolated — one protocol's RPC error does not blank the other's result.",
          "inputSchema": {
            "properties": {
              "chain_id": {
                "default": 1,
                "description": "Chain ID (1=Ethereum, 8453=Base)",
                "title": "Chain Id",
                "type": "integer"
              },
              "wallet_addresses": {
                "description": "Wallet addresses to assess (max 50; duplicates are silently removed).",
                "items": {
                  "type": "string"
                },
                "minItems": 1,
                "title": "Wallet Addresses",
                "type": "array"
              }
            },
            "required": [
              "wallet_addresses"
            ],
            "title": "GetLiquidationRiskInput",
            "type": "object"
          },
          "toolName": "get_liquidation_risk",
          "transport": "streamable-http",
          "type": "mcp"
        },
        "output": {
          "example": {
            "chain_id": 0,
            "data_block_number": 0,
            "results": [],
            "summary": {
              "caution_count": 0,
              "critical_count": 0,
              "healthy_count": 0,
              "liquidatable_count": 0,
              "no_debt_count": 0,
              "total_wallets": 0,
              "warning_count": 0
            }
          },
          "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"
                  },
                  "note": {
                    "default": "On-chain liquidation-risk snapshot at data_block_number. Aave risk_tier is derived from the numeric health factor: liquidatable (<1.0), critical (<1.05), warning (<1.15), caution (<1.5), healthy (≥1.5). Compound v3 exposes only a boolean isLiquidatable — a numeric health factor is not available from this tool; do not attempt to compute, estimate, or infer it via additional tool calls. Do not infer a Compound liquidation or breach price from this output. overall_tier is the worst tier across protocols for each wallet. Aave USD values are base-currency 8-decimal from the Aave oracle. Duplicate wallet addresses in the request are deduplicated silently.",
                    "type": "string"
                  },
                  "results": {
                    "items": {
                      "properties": {
                        "aave": {
                          "anyOf": [
                            {
                              "properties": {
                                "health_factor": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "liquidation_threshold_bps": {
                                  "type": "integer"
                                },
                                "ltv_bps": {
                                  "type": "integer"
                                },
                                "risk_tier": {
                                  "type": "string"
                                },
                                "total_collateral_usd": {
                                  "type": "number"
                                },
                                "total_debt_usd": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "health_factor",
                                "risk_tier",
                                "total_collateral_usd",
                                "total_debt_usd",
                                "liquidation_threshold_bps",
                                "ltv_bps"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "default": null
                        },
                        "chain_id": {
                          "type": "integer"
                        },
                        "compound": {
                          "items": {
                            "properties": {
                              "base_asset_symbol": {
                                "type": "string"
                              },
                              "borrow_balance_raw": {
                                "type": "string"
                              },
                              "is_liquidatable": {
                                "type": "boolean"
                              },
                              "market_address": {
                                "type": "string"
                              },
                              "market_name": {
                                "type": "string"
                              },
                              "risk_tier": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "market_name",
                              "market_address",
                              "base_asset_symbol",
                              "is_liquidatable",
                              "borrow_balance_raw",
                              "risk_tier"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "errors": {
                          "items": {
                            "properties": {
                              "error": {
                                "type": "string"
                              },
                              "protocol": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "protocol",
                              "error"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "overall_tier": {
                          "type": "string"
                        },
                        "wallet_address": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "wallet_address",
                        "chain_id",
                        "overall_tier"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "summary": {
                    "properties": {
                      "caution_count": {
                        "type": "integer"
                      },
                      "critical_count": {
                        "type": "integer"
                      },
                      "healthy_count": {
                        "type": "integer"
                      },
                      "liquidatable_count": {
                        "type": "integer"
                      },
                      "no_debt_count": {
                        "type": "integer"
                      },
                      "total_wallets": {
                        "type": "integer"
                      },
                      "warning_count": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "total_wallets",
                      "liquidatable_count",
                      "critical_count",
                      "warning_count",
                      "caution_count",
                      "healthy_count",
                      "no_debt_count"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "chain_id",
                  "data_block_number",
                  "results",
                  "summary"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.teardrop.dev",
  "lastUpdated": "2026-10-08T00:43:07.575Z",
  "quality": {
    "calls30d": 0,
    "uniquePayers30d": 0,
    "lastCalledAt": "2026-10-05T01:31:24.768Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "description": "Assess DeFi liquidation risk for up to 50 wallets across Aave v3 and Compound v3 on Ethereum or Base. Returns per-wallet health factor, tiered risk classification (liquidatable, critical, warning, caution, healthy, no_debt), and an overall_tier aggregate. Per-protocol failures are isolated — one protocol's RPC error does not blank the other's result.",
            "inputSchema": {
              "properties": {
                "chain_id": {
                  "default": 1,
                  "description": "Chain ID (1=Ethereum, 8453=Base)",
                  "title": "Chain Id",
                  "type": "integer"
                },
                "wallet_addresses": {
                  "description": "Wallet addresses to assess (max 50; duplicates are silently removed).",
                  "items": {
                    "type": "string"
                  },
                  "minItems": 1,
                  "title": "Wallet Addresses",
                  "type": "array"
                }
              },
              "required": [
                "wallet_addresses"
              ],
              "title": "GetLiquidationRiskInput",
              "type": "object"
            },
            "toolName": "get_liquidation_risk",
            "transport": "streamable-http",
            "type": "mcp"
          },
          "output": {
            "example": {
              "chain_id": 0,
              "data_block_number": 0,
              "results": [],
              "summary": {
                "caution_count": 0,
                "critical_count": 0,
                "healthy_count": 0,
                "liquidatable_count": 0,
                "no_debt_count": 0,
                "total_wallets": 0,
                "warning_count": 0
              }
            },
            "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"
                    },
                    "note": {
                      "default": "On-chain liquidation-risk snapshot at data_block_number. Aave risk_tier is derived from the numeric health factor: liquidatable (<1.0), critical (<1.05), warning (<1.15), caution (<1.5), healthy (≥1.5). Compound v3 exposes only a boolean isLiquidatable — a numeric health factor is not available from this tool; do not attempt to compute, estimate, or infer it via additional tool calls. Do not infer a Compound liquidation or breach price from this output. overall_tier is the worst tier across protocols for each wallet. Aave USD values are base-currency 8-decimal from the Aave oracle. Duplicate wallet addresses in the request are deduplicated silently.",
                      "type": "string"
                    },
                    "results": {
                      "items": {
                        "properties": {
                          "aave": {
                            "anyOf": [
                              {
                                "properties": {
                                  "health_factor": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "liquidation_threshold_bps": {
                                    "type": "integer"
                                  },
                                  "ltv_bps": {
                                    "type": "integer"
                                  },
                                  "risk_tier": {
                                    "type": "string"
                                  },
                                  "total_collateral_usd": {
                                    "type": "number"
                                  },
                                  "total_debt_usd": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "health_factor",
                                  "risk_tier",
                                  "total_collateral_usd",
                                  "total_debt_usd",
                                  "liquidation_threshold_bps",
                                  "ltv_bps"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "chain_id": {
                            "type": "integer"
                          },
                          "compound": {
                            "items": {
                              "properties": {
                                "base_asset_symbol": {
                                  "type": "string"
                                },
                                "borrow_balance_raw": {
                                  "type": "string"
                                },
                                "is_liquidatable": {
                                  "type": "boolean"
                                },
                                "market_address": {
                                  "type": "string"
                                },
                                "market_name": {
                                  "type": "string"
                                },
                                "risk_tier": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "market_name",
                                "market_address",
                                "base_asset_symbol",
                                "is_liquidatable",
                                "borrow_balance_raw",
                                "risk_tier"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "errors": {
                            "items": {
                              "properties": {
                                "error": {
                                  "type": "string"
                                },
                                "protocol": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "protocol",
                                "error"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "overall_tier": {
                            "type": "string"
                          },
                          "wallet_address": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "wallet_address",
                          "chain_id",
                          "overall_tier"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "summary": {
                      "properties": {
                        "caution_count": {
                          "type": "integer"
                        },
                        "critical_count": {
                          "type": "integer"
                        },
                        "healthy_count": {
                          "type": "integer"
                        },
                        "liquidatable_count": {
                          "type": "integer"
                        },
                        "no_debt_count": {
                          "type": "integer"
                        },
                        "total_wallets": {
                          "type": "integer"
                        },
                        "warning_count": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "total_wallets",
                        "liquidatable_count",
                        "critical_count",
                        "warning_count",
                        "caution_count",
                        "healthy_count",
                        "no_debt_count"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "chain_id",
                    "data_block_number",
                    "results",
                    "summary"
                  ],
                  "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,
      "note": "On-chain liquidation-risk snapshot at data_block_number. Aave risk_tier is derived from the numeric health factor: liquidatable (<1.0), critical (<1.05), warning (<1.15), caution (<1.5), healthy (≥1.5). Compound v3 exposes only a boolean isLiquidatable — a numeric health factor is not available from this tool; do not attempt to compute, estimate, or infer it via additional tool calls. Do not infer a Compound liquidation or breach price from this output. overall_tier is the worst tier across protocols for each wallet. Aave USD values are base-currency 8-decimal from the Aave oracle. Duplicate wallet addresses in the request are deduplicated silently.",
      "results": [
        {
          "aave": null,
          "chain_id": 0,
          "compound": [
            {
              "base_asset_symbol": "string",
              "borrow_balance_raw": "string",
              "is_liquidatable": true,
              "market_address": "string",
              "market_name": "string",
              "risk_tier": "string"
            }
          ],
          "errors": [
            {
              "error": "string",
              "protocol": "string"
            }
          ],
          "overall_tier": "string",
          "wallet_address": "string"
        }
      ],
      "summary": {
        "caution_count": 0,
        "critical_count": 0,
        "healthy_count": 0,
        "liquidatable_count": 0,
        "no_debt_count": 0,
        "total_wallets": 0,
        "warning_count": 0
      }
    },
    "type": "string"
  }
}