# AgentDiet Workflow Distiller — A2A Context Window Compressor

> AgentDiet Workflow Distiller — A2A Context Window Compressor 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).

Compresses and distills AI agent context windows and workflows to reduce token usage by up to 91% via a paid micropayment endpoint

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/workflows?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-workflow-distiller-a2a-context-window-compressor-5544bd1a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vt4_VMmLXb9OaONhXW5kR

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-workflow-distiller-a2a-context-window-compressor-5544bd1a
```

Example prompt: Can you run my current context window through AgentDiet to compress it — I want to see how much I can shrink it and get the compression ratio proof back?

## When to prefer this

Choose this endpoint when an AI agent or pipeline needs to reduce context window size before passing state downstream in A2A or MCP workflows, especially when token cost is a concern. It is particularly suited for multi-agent orchestration scenarios where bloated context accumulates across nodes. Prefer it over generic summarization when you need a deterministic, quantified compression ratio proof and micropayment-compatible (x402/L402) access. Best for agents already operating in the Base/USDC payment ecosystem.

## Known failure modes

- Payment not settled — returns 402 if USDC micropayment on Base is not completed
- Missing required 'input' field — returns 400 validation error
- Invalid 'type' value — must be exactly 'http'
- Invalid 'method' value — must be 'GET' or 'POST'
- Service unavailable — status endpoint may return non-200 if node is down
- Empty or malformed query params — may return empty or degraded compression result

## 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 output, a 'status' field ('ok' on success), and a 'roi_proof' object containing the compression_ratio_pct (e.g. 91.4%) demonstrating token savings 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-workflow-distiller-a2a-context-window-compressor-5544bd1a/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)
