# DeFi Lending Market Health & Solvency Intelligence (Base)

> DeFi Lending Market Health & Solvency Intelligence (Base) is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Returns per-market utilization, liquidity, TVL, total borrowed, debt ceiling, and a deterministic 0-100 health score with verdict for DeFi lending protocols on Base chain.

## Facts

- Endpoint: GET https://api.agentstools.dev/lending/markets
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-lending-market-health-solvency-intelligence-base-b41beaf2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mFUyt1kG9i3ntbseFmoJ4

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability defi-lending-market-health-solvency-intelligence-base-b41beaf2
```

Example prompt: What's the current health of the Aave v3 lending markets on Base for USDC — give me the utilization rate, available liquidity, and the health score verdict.

## When to prefer this

Use this endpoint when an AI agent needs a fast, pre-computed solvency and liquidity health assessment for Base DeFi lending markets without building custom DefiLlama pipelines. Ideal for risk checks before executing on-chain borrow/lend actions, monitoring protocol health, or surfacing liquidity warnings. Prefer over raw DefiLlama queries when a normalized health score and verdict are needed rather than raw data.

## Known failure modes

- Unsupported protocol slug returns 400 or empty results
- Chain value other than 'Base' is rejected by enum validation
- Unknown asset symbol returns empty market list
- DefiLlama data source unavailable causes stale or missing data
- Rate limit or payment failure returns 402

## How this service works

DeFi lending protocol-health + solvency intelligence for a protocol or asset on Base: per-market utilization, available liquidity, TVL, total borrowed, debt ceiling and a deterministic 0-100 health score plus verdict (healthy / tight-liquidity / elevated), protocol aggregates, and a rate/TVL trend — computed by us over DefiLlama data.

## Output

Returns a JSON object containing per-market stats (utilization rate, available liquidity, TVL, total borrowed, debt ceiling) plus a deterministic 0-100 health score with a verdict string (healthy / tight-liquidity / elevated), protocol-level aggregates, and a rate/TVL trend derived from DefiLlama data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "asset": {
       "type": "string",
       "description": "Token symbol to filter markets by, e.g. USDC / ETH"
      },
      "chain": {
       "enum": [
        "Base"
       ],
       "type": "string",
       "description": "Chain (default Base)"
      },
      "protocol": {
       "enum": [
        "aave-v3",
        "compound-v3",
        "morpho-blue",
        "euler-v2",
        "fluid-lending",
        "moonwell-lending",
        "spark",
        "extra-finance-xlend",
        "arcadia-v2",
        "folks-finance-xchain"
       ],
       "type": "string",
       "description": "Money-market protocol slug"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-lending-market-health-solvency-intelligence-base-b41beaf2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
