# AgentDiet Risk Assessment Node

> AgentDiet Risk Assessment Node is a paid API for AI agents from rag-diet.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Returns a risk assessment for a given address using the AgentDiet RAG-diet intelligence node, settling payment in USDC on Base via x402.

## Facts

- Endpoint: GET https://rag-diet.agentdiet.dev/v1/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-risk-assessment-node-dd672552
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VBfaEJOTvu78BpPALoFt8

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-risk-assessment-node-dd672552
```

Example prompt: Can you check the risk score for the address 0xAbc123... using AgentDiet's risk node and tell me if it's safe to transact with?

## When to prefer this

Choose this endpoint when you need a fast, deterministic risk score for a specific blockchain address and are operating within an x402/L402 micropayment-capable agent stack settling in USDC on Base. It is especially suited for agent pipelines that require on-chain address screening at $0.01 per call with verifiable compression proof.

## Known failure modes

- Missing or invalid address query parameter returns empty or error data object
- Payment not settled in USDC on Base causes 402 Payment Required response
- Malformed input object (missing required 'type' or 'method' fields) causes request rejection
- Unknown or unsupported address format may return empty risk data
- Network or node unavailability returns a non-ok status

## How this service works

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

## Output

Returns a JSON object with a 'status' field ('ok'), a 'data' object containing the risk assessment details for the queried address, and a 'roi_proof' object including a compression_ratio_pct value (e.g. 91.4%) confirming the distillation efficiency of 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-risk-assessment-node-dd672552/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rag-diet.agentdiet.dev](https://www.zero.xyz/host/rag-diet.agentdiet.dev/llms.txt)
