# AgentDiet MCP Compiler — Context Window Distiller

> AgentDiet MCP Compiler — Context Window Distiller 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).

Compiles and distills AI context windows via MCP, reducing token usage by up to 85-91% through deterministic compression

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/mcp-compiler?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-mcp-compiler-context-window-distiller-57235050
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B1hKRY5DIc8Eoa1gSIF36

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-mcp-compiler-context-window-distiller-57235050
```

Example prompt: Can you run my current agent context through AgentDiet's MCP compiler to strip the bloat — I want to see the compression ratio and get back a slimmed-down version that uses at least 85% fewer tokens?

## When to prefer this

Choose this endpoint when your AI agent or pipeline needs to reduce context window size before sending to an LLM, particularly in A2A or MCP workflows where token cost and context limits are a concern. Especially useful when compression ratios of 85-91% are needed and you want deterministic, paid-per-call distillation settled on-chain via x402/USDC on Base.

## Known failure modes

- Missing or malformed 'input' object returns validation error
- Invalid 'type' value (must be 'http') causes rejection
- Unsupported method enum value causes schema validation failure
- Payment not settled in USDC on Base causes x402 payment failure
- Target URL unreachable results in upstream fetch error
- Empty or trivially small context may return minimal compression ratio

## 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 context output, a 'status' field confirming success ('ok'), and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%) achieved by the distillation.

## 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": {
      "target": {
       "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-mcp-compiler-context-window-distiller-57235050/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)
