# AgentDiet Prompt Firewall — Context Window Distiller

> AgentDiet Prompt Firewall — Context Window Distiller is a paid API for AI agents from status.agentdiet.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Compresses and filters incoming text prompts to reduce token count by up to 91% before passing them to downstream AI agents or LLMs.

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/prompt-firewall?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-prompt-firewall-context-window-distiller-43b63de7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BZQIFH13VLj1JXw6E3qR8

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-prompt-firewall-context-window-distiller-43b63de7
```

Example prompt: Can you run this prompt through AgentDiet's prompt firewall to strip out the bloat and compress it — I want to cut the token count as much as possible before sending it to the LLM?

## When to prefer this

Choose this endpoint when an AI agent or pipeline needs to reduce token count before sending prompts to expensive LLMs, when context windows are near their limit, or when per-token costs need to be minimized in a real-time A2A or MCP workflow. It is particularly suited for deterministic, repeatable compression pipelines that settle micropayments in USDC on Base via x402.

## Known failure modes

- Missing or empty 'text' query parameter returns an error or empty data
- Invalid HTTP method (not GET or POST) rejected by schema
- Payment failure via x402/USDC prevents execution
- Extremely short input with no compressible content may yield low compression ratio
- Network timeout on status.agentdiet.dev returns no response

## 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 compressed/distilled output text, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4%), confirming how much the input was reduced.

## 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": {
      "text": {
       "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-prompt-firewall-context-window-distiller-43b63de7/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)
