# DeFi Oracle LP Health Check

> DeFi Oracle LP Health Check is a paid API for AI agents from defi-oracle-two.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Analyzes the health of a DeFiLlama liquidity pool by returning a risk assessment, health score, and key metrics for a given pool ID

## Facts

- Endpoint: POST https://defi-oracle-two.vercel.app/api/lp-health
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-oracle-lp-health-check-2660bf17
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-joK0qGueZlRkHOiV_wtc

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-oracle-lp-health-check-2660bf17 -d '<json body>'
```

Example prompt: Can you check the health of the DeFiLlama pool with ID 'f0a69a27-1d6b-4a5b-9b2e-3e1a2c4f8d9e' and tell me if it's safe — I want the risk factors, health score, and overall verdict before I add liquidity.

## When to prefer this

Use this endpoint when you need a structured, scored risk assessment for a specific DeFiLlama liquidity pool — particularly when you want a synthesized health verdict rather than raw protocol data. Ideal for pre-liquidity-provision due diligence, automated portfolio monitoring, or when you have a DeFiLlama pool ID and need actionable risk signal quickly.

## Known failure modes

- Invalid or unknown pool_id returns an error or empty result
- Pool data not available on DeFiLlama returns a 404-like response
- On-chain RPC call failure causes a 500 server error
- Payment not completed via x402/USDC on Base results in 402 Payment Required
- Malformed request body missing required pool_id field returns a 400 error

## How this service works

DeFi data for AI agents — yield rates, swap routes, IL calculator, liquidation risk, MEV scanner, TVL tracking. Powered by DeFiLlama + on-chain RPC data. Pay with USDC on Base via x402.

## Output

Returns a JSON object containing: the pool's chain, project name, a numerical health score, an array of identified risk strings, a verdict string summarizing the pool's overall status, and a metrics object with detailed pool data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "pool_id"
 ],
 "properties": {
  "pool_id": {
   "type": "string",
   "description": "DeFiLlama pool ID"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string"
  },
  "risks": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "metrics": {
   "type": "object"
  },
  "pool_id": {
   "type": "string"
  },
  "project": {
   "type": "string"
  },
  "verdict": {
   "type": "string"
  },
  "health_score": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-oracle-lp-health-check-2660bf17/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-oracle-two.vercel.app](https://www.zero.xyz/host/defi-oracle-two.vercel.app/llms.txt)
