# AgentDiet Tool Broker — A2A Context Window Distiller

> AgentDiet Tool Broker — A2A 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).

Distills and compresses AI agent context windows to reduce token usage by up to 85-91%, brokering tool calls via x402 micropayments on Base.

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/tool-broker?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-tool-broker-a2a-context-window-distiller-41d8452d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DiAJtJUPeFmjz0zlKCbic

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-tool-broker-a2a-context-window-distiller-41d8452d
```

Example prompt: Run my agent context payload through AgentDiet's context distiller to compress it and cut token usage — send it as a GET request with my query and show me the compression ratio you achieved.

## When to prefer this

Choose this endpoint when your AI agent needs to reduce context window size before LLM inference calls, especially when operating under tight token limits or optimizing for inference cost reduction. Ideal for A2A pipelines, MCP-compatible agent workflows, and any system that needs deterministic context compression with verifiable ROI proof. Best suited for agents that can pay per-call via x402 micropayments in USDC on Base.

## Known failure modes

- Missing or malformed 'input' object returns validation error
- Payment failure (insufficient USDC balance on Base) results in 402 response
- Invalid HTTP method enum value (not GET or POST) causes schema rejection
- Empty or null query string may produce no useful compression
- Service node unavailability returns non-200 status

## 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 context output, a 'status' field confirming success ('ok'), and a 'roi_proof' object showing the achieved compression ratio percentage (e.g. compression_ratio_pct: 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": {
      "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-tool-broker-a2a-context-window-distiller-41d8452d/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)
