# AgentDiet Store Benchmark

> AgentDiet Store Benchmark 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).

Fetches a compression benchmark for a given store URL, returning a token compression ratio proof demonstrating how much context window reduction AgentDiet achieves.

## Facts

- Endpoint: GET https://rag-diet.agentdiet.dev/v1/store-benchmark?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-store-benchmark-8b108e62
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g7IaxjXrtqG4wpbnXs6v8

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-store-benchmark-8b108e62
```

Example prompt: Can you run an AgentDiet compression benchmark on my store at https://myshop.example.com and tell me what compression ratio proof it returns — I want to see how much token savings I'd get?

## When to prefer this

Use this endpoint when you need a fast, verifiable proof of how much token compression AgentDiet can deliver for a specific store or web URL — particularly before integrating AgentDiet into an agent pipeline or to demonstrate ROI. Prefer this over generic compression tools when you need a deterministic, on-chain-settled benchmark with a numeric compression_ratio_pct output compatible with A2A/MCP workflows.

## Known failure modes

- Missing or invalid store_url query parameter returns an error or empty benchmark data
- Store URL unreachable or blocked may result in empty data with status still ok
- Payment failure (USDC on Base) blocks request execution
- Invalid HTTP method returns schema validation error
- Extremely large or complex store pages may cause timeout or partial results

## 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

A JSON object with a status field ('ok'), a data object containing benchmark details, and an roi_proof object including a compression_ratio_pct value (e.g. 91.4%) showing how much the context window is reduced for the given store URL.

## 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": {
      "store_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-store-benchmark-8b108e62/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)
