AP
MCP Tool · x402

Teardrop get_liquidation_risk: Assess DeFi liquidation risk for up to 50 wallets across…

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…

by api.teardrop.dev · discovered, not yet claimed by its owner · updated 2026-10-08

30d calls0
30d payers0
MethodHTTP
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

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.

Tags: bazaar

Call contract

Method
HTTP
Input
HTTP request
Output
json
Last paid call
2026-10-05
No input exampleProvider did not publish one in Bazaar metadata.
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
  }
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/37925.json for the price and payment options.
  3. Pay. Call GET https://api.teardrop.dev/tools/mcp#get_liquidation_risk. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.01 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.010xF2Eec9De86274913F85A8aA6427Ad65a9B0bC90a300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xF2Eec9De86274913F85A8aA6427Ad65a9B0bC90a",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "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"
}
Example shape — generated from the schema, not a captured live response
{
  "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"
}

Examples

curl
curl "https://api.teardrop.dev/tools/mcp#get_liquidation_risk"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.teardrop.dev/tools/mcp#get_liquidation_risk");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://api.teardrop.dev/tools/mcp#get_liquidation_risk")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
api.teardrop.dev
Endpoint
https://api.teardrop.dev/tools/mcp#get_liquidation_risk
Machine-readable
/resources/37925.json