# AgentDiet MCP Gateway — AI Context Window Distiller

> AgentDiet MCP Gateway — AI 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).

Compresses and distills AI agent context windows, reducing token usage by up to 91% via a paid MCP-compatible gateway endpoint

## Facts

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

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-gateway-ai-context-window-distiller-161fc7f4
```

Example prompt: Can you run my current context window through AgentDiet's MCP gateway to compress it — I want to see the compression ratio and get the de-bloated version back before I send it to the LLM?

## When to prefer this

Choose this endpoint when your AI agent pipeline is accumulating large context windows and you need to reduce token count before an LLM inference call. It is especially useful in long-running agentic sessions, A2A handoffs, or MCP tool chains where context bloat is a cost and latency concern. It suits workflows that can tolerate a $0.01 USDC micropayment per compression call settled on Base, and where a deterministic, measurable compression ratio (with ROI proof) is valuable.

## Known failure modes

- Missing required 'input' field or 'type'/'method' sub-fields returns a validation error
- Payment not settled in USDC on Base results in 402 Payment Required before content is returned
- Passing an unsupported HTTP method (not GET or POST) in the method enum causes rejection
- Empty or malformed query content may return a low compression ratio or empty data object
- Network or node unavailability at status.agentdiet.dev results in a timeout or 5xx error

## 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 'status' field ('ok'), a 'data' object containing the compressed/distilled context, and an 'roi_proof' object that includes the compression_ratio_pct (e.g. 91.4) showing how much the context 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": {
      "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-mcp-gateway-ai-context-window-distiller-161fc7f4/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)
