# AgentDiet Web RAG Shield DAG

> AgentDiet Web RAG Shield DAG is a paid API for AI agents from status.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Fetches and distills web content through a RAG-shielded DAG pipeline, compressing context by ~85-91% before returning it to AI agents

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/web-rag-shield-dag?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-web-rag-shield-dag-fa82e833
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZUbd179IamlZr3XGYM_u8

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-web-rag-shield-dag-fa82e833
```

Example prompt: Fetch and compress the web content about 'latest Base blockchain news' using AgentDiet's RAG shield so I get a distilled, token-efficient summary instead of the full bloated page.

## When to prefer this

Choose this endpoint when an AI agent needs to fetch web content but is constrained by context window limits or token costs — it applies a RAG-shield DAG pipeline that compresses content by up to 91% before returning it, making it ideal for high-volume agent pipelines, cost-sensitive LLM workflows, or any scenario where raw web scraping would overwhelm the context budget.

## Known failure modes

- Invalid or missing `input` object returns a schema validation error
- Unreachable or blocked target URL returns empty or error data payload
- Malformed query parameter causes the DAG pipeline to return no useful content
- Payment failure via x402/USDC on Base prevents the call from executing
- Compression ratio may be lower for already-short or structured content

## How this service works

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

## Output

Returns a JSON object with a `data` field containing the distilled/compressed web content, a `status` field ('ok' on success), and a `roi_proof` object containing the `compression_ratio_pct` (e.g. 91.4%) demonstrating how much token reduction was achieved.

## 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": {
      "query": {
       "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-web-rag-shield-dag-fa82e833/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from status.agentdiet.dev](https://www.zero.xyz/host/status.agentdiet.dev/llms.txt)
