{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/klarix-ai/json-schema/klarix-ai-envelope-schema.json",
  "title": "Envelope",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/klarix-ai-openapi.json#/components/schemas/Envelope",
  "type": "object",
  "required": [
    "success",
    "data",
    "markdown",
    "meta"
  ],
  "properties": {
    "success": {
      "type": "boolean",
      "const": true
    },
    "data": {
      "type": "object",
      "description": "Structured tool output. Shape varies by endpoint and is byte-identical to what an MCP client receives.",
      "additionalProperties": true
    },
    "markdown": {
      "type": "string",
      "description": "The same finding as a formatted report, with `[S#]` citations resolving to public sources."
    },
    "meta": {
      "type": "object",
      "required": [
        "latency_ms",
        "timestamp"
      ],
      "properties": {
        "latency_ms": {
          "type": "integer"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "unsupported_params": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Body fields you sent that this tool has no parameter for. Present only when you sent one, so a typo surfaces in the response rather than as silently missing behaviour."
        }
      }
    }
  }
}