# MCP Schema TDQS Compiler

> MCP Schema TDQS Compiler is a paid API for AI agents from mcp-gateway.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Compiles and returns a compressed schema/TDQS representation for a target MCP server, x402 API, or A2A agent endpoint.

## Facts

- Endpoint: GET https://mcp-gateway.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/mcp-schema-tdqs-compiler-632f5703
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MgZ0fFH3cmidEZGtH8nTD

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 mcp-schema-tdqs-compiler-632f5703
```

Example prompt: Can you compile the TDQS schema for the MCP server at https://example-mcp-server.dev using a GET request so I can inspect its capabilities?

## When to prefer this

Use this endpoint when you need a compressed, deterministic TDQS schema representation of a specific MCP server, x402 API, or A2A agent — particularly when building agent routing tables or capability registries. Prefer this over manual schema fetching when you need the compression ratio guarantee and normalized output format that TDQS provides. Best suited for agent infrastructure tooling rather than end-user data retrieval tasks.

## Known failure modes

- Missing or invalid 'target' query parameter returns an empty or error data payload
- Unreachable target URL results in a failed fetch with non-ok status
- Invalid HTTP method enum value (not GET or POST) causes schema validation rejection
- Payment not settled in USDC on Base results in 402 response before processing
- Target endpoint not recognized as a valid MCP/x402/A2A schema source may return empty data object

## 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

Returns a JSON object with a 'data' field containing the compiled schema, a 'status' field ('ok' on success), and a 'roi_proof' object showing the compression ratio percentage (e.g. 91.4% compression). The compiled schema represents the target MCP server or API in a compact TDQS format.

## 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/mcp-schema-tdqs-compiler-632f5703/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)
