# AgentDiet MCP Schema TDQS Compiler

> AgentDiet MCP Schema TDQS Compiler 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).

Compiles and retrieves an MCP schema for a target endpoint using AgentDiet's TDQS (Token Diet Query Schema) system, returning a compressed/distilled schema representation with compression ratio proof.

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/mcp-schema-tdqs-compiler?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-schema-tdqs-compiler-4f0b8d46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UwGLsYV0a_4FGDG15SuQK

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-schema-tdqs-compiler-4f0b8d46
```

Example prompt: Use AgentDiet's TDQS compiler to fetch a token-compressed MCP schema for my endpoint — I want to see the compression ratio and get back the distilled schema so I can use it in my agent pipeline without blowing up the context window.

## When to prefer this

Choose this endpoint when you need a deterministic, token-efficient MCP schema for a specific HTTP endpoint and want quantified compression proof. Ideal for AI agent pipelines where context window size is a bottleneck, or when preparing schemas for A2A or MCP handoffs. Prefer this over generic schema validators when you specifically want token reduction with compression ratio metrics, and when you're operating in a USDC/x402 payment environment on Base.

## Known failure modes

- Missing or invalid `target` query parameter may result in empty or error response
- Unsupported HTTP method (only GET/POST accepted) returns validation error
- Payment not settled (x402 USDC on Base) results in 402 Payment Required
- Target endpoint unreachable or schema not parseable returns error in data field
- Rate limiting or node unavailability returns non-ok 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 `status` field ('ok'), a `data` object containing the compiled/distilled schema, and an `roi_proof` object showing the `compression_ratio_pct` (e.g. 91.4%) achieved by the TDQS compiler.

## 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": {
      "target": {
       "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-schema-tdqs-compiler-4f0b8d46/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)
