{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "name": "com.apikeg/trace-diet",
  "title": "Trace Diet — HAR & Log Context Distiller API",
  "description": "Shrink 5MB .har captures and 50,000-line crash logs by 95–99% while scrubbing live tokens before they hit your LLM context. Saves $0.25–$1.50 of wasted frontier-LLM input tokens per debugging turn, prevents live JWT/Cookie leakage into conversation history, folds multi-language stack traces accurately, and infers TypeScript API schemas in <40ms.",
  "version": "1.0.0",
  "transports": [
    {
      "type": "streamable-http",
      "url": "https://trace-diet.apikeg.com/mcp"
    }
  ],
  "capabilities": {
    "tools": true,
    "resources": true,
    "prompts": true
  },
  "authentication": {
    "required": false,
    "schemes": [
      "x402",
      "bearer",
      "none"
    ],
    "notes": "Zero-signup x402 is primary: initialize, tools/list, resources/*, and prompts/* are free, and paid tools settle inline via HTTP 402 (x402 v2 USDC). Alternatively, pass Authorization: Bearer ak_live_... with an active $5/$20/$50 monthly subscription from https://apikeg.com/account."
  },
  "payment": {
    "protocol": "x402",
    "version": 2,
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "manifestUrl": "https://trace-diet.apikeg.com/.well-known/x402.json",
    "freeDiscovery": true
  },
  "documentation": {
    "landingPage": "https://trace-diet.apikeg.com/",
    "llmsTxt": "https://trace-diet.apikeg.com/llms.txt",
    "llmsFullTxt": "https://trace-diet.apikeg.com/llms-full.txt",
    "openApi": "https://trace-diet.apikeg.com/openapi.json",
    "apiCatalog": "https://trace-diet.apikeg.com/.well-known/api-catalog"
  },
  "tools": [
    {
      "name": "distill_har_capture",
      "title": "Distill & Scrub HAR Network Capture",
      "pricing": {
        "scheme": "upto",
        "priceUsd": "0.002",
        "maxPriceUsd": "0.008",
        "unitDescription": "($0.002 base + $0.001 per 250KB of .har input, capped at $0.008)"
      },
      "restEndpoint": "https://trace-diet.apikeg.com/v1/distill-har-capture",
      "docUrl": "https://trace-diet.apikeg.com/tools/distill-har-capture"
    },
    {
      "name": "cluster_logs",
      "title": "Cluster Noisy Logs via Drain Prefix-Tree",
      "pricing": {
        "scheme": "upto",
        "priceUsd": "0.002",
        "maxPriceUsd": "0.008",
        "unitDescription": "($0.002 base + $0.001 per 2,000 log lines, capped at $0.008)"
      },
      "restEndpoint": "https://trace-diet.apikeg.com/v1/cluster-logs",
      "docUrl": "https://trace-diet.apikeg.com/tools/cluster-logs"
    }
  ]
}