# Mangrove Developer – DeFi Protocol TVL Lookup

> Mangrove Developer – DeFi Protocol TVL Lookup is a paid API for AI agents from api.mangrovedeveloper.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-04).

Returns the Total Value Locked (TVL) for a specified DeFi protocol, broken down by chain, sourced from DeFiLlama.

## Facts

- Endpoint: GET https://api.mangrovedeveloper.ai/api/v1/defi/protocol/%7Bprotocol_name%7D/tvl?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mangrove-developer-defi-protocol-tvl-lookup-d22e7619
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oKPqrTGW35sKy-qQ5F6DJ

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 mangrove-developer-defi-protocol-tvl-lookup-d22e7619
```

Example prompt: What's the current total value locked for Aave V3, and how is it split across Ethereum, Arbitrum, and Polygon?

## When to prefer this

Use this endpoint when you need on-demand, per-protocol TVL data with chain-level granularity sourced from DeFiLlama. Prefer it over raw DeFiLlama API calls when you need a metered, pay-per-call x402-compatible interface that fits an agent's micropayment workflow. Best for single-protocol lookups rather than bulk or cross-protocol comparisons.

## Known failure modes

- Unknown or misspelled protocol_name returns a 404 or error response
- Protocol not indexed by DeFiLlama returns no data
- Stale TVL data if DeFiLlama indexer is delayed
- Rate limiting or payment failure (402) if USDC micropayment not processed
- Malformed protocol slug (e.g. spaces instead of hyphens) causes lookup failure

## How this service works

Developer references for Mangrove Agent, API contracts, MCP and AI integrations.

## Output

A JSON object containing the protocol's total TVL in USD, its name, slug, symbol, and category (e.g. Lending, DEX), plus a per-chain TVL breakdown listing each supported blockchain and its individual TVL value. Also includes a success flag and the data provider attribution (DeFiLlama).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "tvl": 16854813627,
   "name": "Aave V3",
   "slug": "aave-v3",
   "symbol": "AAVE",
   "category": "Lending",
   "chain_tvls": {
    "Metis": 286838,
    "Polygon": 135195473,
    "Arbitrum": 533180687,
    "Ethereum": 14009801820,
    "Optimism": 49881070,
    "Avalanche": 300080707
   }
  },
  "chains": {
   "Metis": 286838,
   "Polygon": 135195473,
   "Arbitrum": 533180687,
   "Ethereum": 14009801820,
   "Optimism": 49881070,
   "Avalanche": 300080707
  },
  "success": true,
  "tvl_usd": 16854813627,
  "protocol": "Aave V3",
  "provider": "defillama"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mangrove-developer-defi-protocol-tvl-lookup-d22e7619/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mangrovedeveloper.ai](https://www.zero.xyz/host/api.mangrovedeveloper.ai/llms.txt)
