# AgentDiet System Prompt Guard

> AgentDiet System Prompt Guard 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).

Scans and guards system prompts for token bloat, compressing and distilling context to reduce token usage by up to 91%

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/system-prompt-guard?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-system-prompt-guard-4e658ad4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fAX42BTqnaGjB4b64epJe

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-system-prompt-guard-4e658ad4
```

Example prompt: Can you run my system prompt through AgentDiet's system prompt guard to compress it and tell me the compression ratio — here's the text: 'You are a helpful assistant that manages customer support tickets, escalates issues, tracks SLAs, generates reports, and coordinates with engineering teams...'

## When to prefer this

Choose this endpoint when you need to reduce token consumption in AI agent system prompts or context windows, especially before high-volume deployments where per-call LLM costs matter. It is particularly useful when system prompts have grown organically and contain redundant instructions, and you need a deterministic, measurable compression ratio rather than a manual edit. Prefer this over manual prompt editing when you need proof-of-ROI metrics or when operating within the x402 micropayment ecosystem on Base.

## Known failure modes

- Missing required 'input' field returns validation error
- Invalid method enum value (not GET or POST) causes rejection
- Empty or missing 'text' query parameter may return unprocessed result
- Payment not settled in USDC on Base causes 402 response
- Oversized prompt text may hit payload limits

## 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 or guarded prompt output, and an roi_proof object showing the compression_ratio_pct (e.g. 91.4%) achieved by the distillation process.

## 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-system-prompt-guard-4e658ad4/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)
