# AgentDiet DeFi Signals

> AgentDiet DeFi Signals is a paid API for AI agents from mcp-gateway.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Returns DeFi market signals and analytics data for a given target asset or protocol via a pay-per-call x402 API.

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1/defi-signals?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-defi-signals-02881886
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gMlmbkfN03Cvyj7G8SsU4

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 agentdiet-defi-signals-02881886
```

Example prompt: Pull the latest DeFi signals for Uniswap from the AgentDiet gateway so I can see ROI proof and market intelligence before making a liquidity decision.

## When to prefer this

Choose this endpoint when an AI agent needs structured DeFi market signals or ROI analytics for a specific token or protocol and wants to pay per-call in USDC via x402 micropayment without a subscription. Prefer this over general crypto price APIs when you specifically need compressed DeFi intelligence with ROI proof metadata rather than raw price feeds.

## Known failure modes

- Missing or invalid 'target' query parameter returns empty or error data
- Payment not settled in USDC on Base results in 402 Payment Required
- Unsupported method enum value causes schema validation failure
- Target protocol or asset not found returns empty data object
- Network or gateway downtime returns 5xx error

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.

## Output

A JSON object containing a 'data' field with DeFi signal information, a 'status' field (e.g. 'ok'), and a 'roi_proof' object including a compression_ratio_pct value (e.g. 91.4%) indicating how much the signal data was compressed relative to raw on-chain 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",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "target": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-defi-signals-02881886/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-gateway.agentdiet.dev](https://www.zero.xyz/host/mcp-gateway.agentdiet.dev/llms.txt)
