# AgentDiet Onchain Risk Assessment

> AgentDiet Onchain Risk Assessment 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 onchain risk metrics for a given blockchain address via the AgentDiet MCP Gateway.

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1/onchain-risk?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-onchain-risk-assessment-09610c16
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7J4CR8DSRsDnTKMsdZgTx

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-onchain-risk-assessment-09610c16
```

Example prompt: Can you check the onchain risk for the wallet address 0x742d35Cc6634C0532925a3b8D4C9B7e1bF3d5A12 and tell me if it looks safe to interact with?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call onchain risk score for a blockchain address without setting up a full analytics subscription. It is especially useful in agentic workflows where an AI needs to autonomously assess wallet or contract risk before executing a transaction, settling in USDC on Base via x402.

## Known failure modes

- Missing or invalid 'address' query parameter returns empty or error data
- Invalid blockchain address format may return no meaningful risk data
- Payment failure (non-USDC or insufficient balance) results in 402 response
- Unsupported HTTP method returns schema validation error
- 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 with a 'status' field (e.g. 'ok'), a 'data' object containing risk metrics for the queried address, and an 'roi_proof' object including a compression_ratio_pct indicating how much intelligence was compressed into the response.

## 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": {
      "address": {
       "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-onchain-risk-assessment-09610c16/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)
