# AgentDiet RAG-Diet Agent Card Endpoint

> AgentDiet RAG-Diet Agent Card Endpoint 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 the agent card metadata for the AgentDiet context distillation service, describing its capabilities, pricing, and node configuration.

## Facts

- Endpoint: GET https://rag-diet.agentdiet.dev/v1/agent-card?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-rag-diet-agent-card-endpoint-47f1af3f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z2LOGYvyYg0Ho3p66LiWj

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-rag-diet-agent-card-endpoint-47f1af3f
```

Example prompt: Pull up the agent card for AgentDiet's context window distiller at rag-diet.agentdiet.dev so I can see what it does, what compression ratios it achieves, and how to integrate it into my agent pipeline.

## When to prefer this

Use this endpoint when you need to discover or validate the capabilities, configuration, and performance guarantees of the AgentDiet context distillation node before integrating it into an A2A or MCP pipeline. Prefer it over generic API discovery tools when you specifically need the agent card format with ROI/compression proof for a USDC-settling, x402-compatible node.

## Known failure modes

- Payment not received (HTTP 402) — USDC payment via x402 required before response is delivered
- Invalid or missing 'type' field in input — must be 'http'
- Unsupported HTTP method in 'method' enum — only GET and POST accepted
- Network or node unavailability — service may be offline or unreachable
- Malformed input object missing required fields returns validation error

## 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 'data' field containing agent card details, a 'status' field (e.g. 'ok'), and a 'roi_proof' object including a compression_ratio_pct value (e.g. 91.4%), confirming the service's advertised context compression performance.

## 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": {
      "url": {
       "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-rag-diet-agent-card-endpoint-47f1af3f/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)
