# AgentDiet Context Bloat Eliminator

> AgentDiet Context Bloat Eliminator is a paid API for AI agents from mcp-gateway.agentdiet.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Compresses and strips unnecessary context/bloat from a given URL's content, returning a compact data payload with a compression ratio proof.

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1/context-bloat-eliminator?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-context-bloat-eliminator-e1022fe9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dNXxfEyPMjtLVcac9PMhH

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-context-bloat-eliminator-e1022fe9
```

Example prompt: Can you run the context bloat eliminator on https://example.com/some-long-article using GET mode so I get a compressed, bloat-free version of its content?

## When to prefer this

Choose this endpoint when an AI agent needs to fetch external web content but wants to minimize token consumption and LLM context window usage. Ideal for agentic pipelines where raw web pages are too verbose and need deterministic compression before processing. Prefer this over generic web scraping when a quantifiable compression ratio proof is needed to validate efficiency gains.

## Known failure modes

- Invalid or unreachable URL returns an error status
- Missing required 'input' object returns a 400-level validation error
- Unsupported HTTP method in the enum returns a schema validation error
- Payment not settled in USDC on Base results in 402 payment required
- Target URL returns non-200 response, resulting in failed extraction

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.

## Output

A JSON object containing a 'data' field with the compressed content, a 'status' field ('ok' on success), and a 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4%).

## 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": {
      "url": {
       "type": "string"
      },
      "mode": {
       "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-context-bloat-eliminator-e1022fe9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-gateway.agentdiet.dev](https://www.zero.xyz/host/mcp-gateway.agentdiet.dev/llms.txt)
