# AgentDiet Preflight Certify

> AgentDiet Preflight Certify 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).

Validates and certifies a URL endpoint before context distillation, returning a compression ROI proof and preflight status for A2A/MCP workflows.

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/preflight/certify?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-preflight-certify-27db2eab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DONc91cRkHds3ses-bT0E

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-preflight-certify-27db2eab
```

Example prompt: Run a preflight certification on https://example.com/api/data using a GET request to see if it qualifies for context distillation and what compression ratio I can expect.

## When to prefer this

Use this endpoint as a mandatory first step before invoking AgentDiet's context distillation pipeline — it confirms endpoint compatibility and provides a concrete compression ROI proof without committing to full distillation. Prefer this over jumping straight to distillation when you need to validate feasibility, estimate token savings, or build an audit trail of preflight certifications for multiple URLs in an agentic workflow.

## Known failure modes

- Invalid or unreachable target URL returns error status
- Missing required 'input' object causes schema validation failure
- Unsupported HTTP method (not GET or POST) returns enum validation error
- Payment not settled in USDC on Base results in 402 response
- Non-HTTP type value in input.type causes const validation failure

## 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' on success), a data object containing preflight details, and a roi_proof object showing the compression_ratio_pct (e.g. 91.4%) — indicating how much token reduction the target URL would achieve through AgentDiet 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": {
      "url": {
       "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-preflight-certify-27db2eab/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)
