{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xn--82czbx2bczd4fl8a.online/agent-telemetry/schema.json",
  "title": "Agent Telemetry Event",
  "type": "object",
  "required": [
    "ts",
    "agent",
    "event",
    "capability"
  ],
  "properties": {
    "ts": {
      "type": "string",
      "format": "date-time"
    },
    "agent": {
      "type": "string",
      "description": "Agent identifier (e.g. claude-3.5, gpt-5, perplexity, mcp-client/x)"
    },
    "clientId": {
      "type": "string"
    },
    "event": {
      "type": "string",
      "enum": [
        "invoke",
        "success",
        "error",
        "rate_limited",
        "auth_failed"
      ]
    },
    "capability": {
      "type": "string"
    },
    "capabilityVersion": {
      "type": "string"
    },
    "latencyMs": {
      "type": "integer"
    },
    "statusCode": {
      "type": "integer"
    },
    "scope": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}