{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usenotra-com/json-schema/usenotra-com-geo-mcp-analytics-response-schema.json",
  "title": "GeoMcpAnalyticsResponse",
  "description": "Usage, errors, clients and tools of your MCP server for the window.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usenotra-com-openapi.json#/components/schemas/GeoMcpAnalyticsResponse",
  "type": "object",
  "properties": {
    "configured": {
      "type": "boolean",
      "description": "False when the traffic backend is not configured for this deployment; the payload is then empty rather than an error."
    },
    "server": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Server name, or empty when not reported."
        },
        "version": {
          "type": "string",
          "description": "Server version, or empty when not reported."
        },
        "protocolVersion": {
          "type": "string",
          "description": "MCP protocol version, or empty when not reported."
        }
      },
      "required": [
        "name",
        "version",
        "protocolVersion"
      ],
      "description": "Server info from the newest event. Null before any."
    },
    "totals": {
      "type": "object",
      "properties": {
        "requests": {
          "type": "integer",
          "description": "All MCP requests in the window, of every method."
        },
        "previousRequests": {
          "type": "integer",
          "description": "All requests in the previous window."
        },
        "toolCalls": {
          "type": "integer",
          "description": "tools/call requests."
        },
        "previousToolCalls": {
          "type": "integer",
          "description": "tools/call requests in the previous window."
        },
        "errors": {
          "type": "integer",
          "description": "Requests whose status was tool_error or rpc_error."
        },
        "previousErrors": {
          "type": "integer",
          "description": "Failed requests in the previous window."
        },
        "sessions": {
          "type": "integer",
          "description": "Distinct MCP sessions."
        },
        "previousSessions": {
          "type": "integer",
          "description": "Distinct sessions in the previous window."
        },
        "users": {
          "type": "integer",
          "description": "Distinct end-user IDs your server reported."
        },
        "previousUsers": {
          "type": "integer",
          "description": "Distinct end-user IDs in the previous window."
        },
        "p95Ms": {
          "type": "integer",
          "description": "95th percentile request duration in milliseconds."
        },
        "previousP95Ms": {
          "type": "integer",
          "description": "95th percentile request duration in milliseconds in the previous window."
        }
      },
      "required": [
        "requests",
        "previousRequests",
        "toolCalls",
        "previousToolCalls",
        "errors",
        "previousErrors",
        "sessions",
        "previousSessions",
        "users",
        "previousUsers",
        "p95Ms",
        "previousP95Ms"
      ],
      "description": "Each previous* value covers the window of the same length right before this one."
    },
    "daily": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "day": {
            "type": "string",
            "description": "UTC day (YYYY-MM-DD)."
          },
          "toolsCall": {
            "type": "integer",
            "description": "tools/call requests that day."
          },
          "resourcesRead": {
            "type": "integer",
            "description": "resources/read requests that day."
          },
          "promptsGet": {
            "type": "integer",
            "description": "prompts/get requests that day."
          },
          "other": {
            "type": "integer",
            "description": "Requests of every other method."
          },
          "errors": {
            "type": "integer",
            "description": "Requests whose status was tool_error or rpc_error."
          }
        },
        "required": [
          "day",
          "toolsCall",
          "resourcesRead",
          "promptsGet",
          "other",
          "errors"
        ]
      },
      "description": "Requests per day, split by method."
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Tool name."
          },
          "description": {
            "type": "string",
            "description": "Description from the latest tools/list. Empty when not listed."
          },
          "calls": {
            "type": "integer",
            "description": "tools/call requests for this tool."
          },
          "errors": {
            "type": "integer",
            "description": "Requests whose status was tool_error or rpc_error."
          },
          "users": {
            "type": "integer",
            "description": "Distinct end-user IDs that called the tool."
          },
          "avgResponseBytes": {
            "type": "integer",
            "description": "Average response size in bytes."
          },
          "p50Ms": {
            "type": "integer",
            "description": "Median call duration in milliseconds."
          },
          "p95Ms": {
            "type": "integer",
            "description": "95th percentile call duration in milliseconds."
          },
          "uiResource": {
            "type": "string",
            "description": "MCP Apps ui:// resource the tool advertises. Empty when none."
          }
        },
        "required": [
          "name",
          "description",
          "calls",
          "errors",
          "users",
          "avgResponseBytes",
          "p50Ms",
          "p95Ms",
          "uiResource"
        ]
      },
      "description": "Up to 50 tools, most called first."
    },
    "clients": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the client, or empty when the client did not report one."
          },
          "sessions": {
            "type": "integer",
            "description": "Distinct sessions from this client."
          },
          "requests": {
            "type": "integer",
            "description": "Requests from this client."
          },
          "errors": {
            "type": "integer",
            "description": "Requests whose status was tool_error or rpc_error."
          },
          "lastSeenAt": {
            "type": "string",
            "description": "ISO timestamp of the client's newest request."
          }
        },
        "required": [
          "name",
          "sessions",
          "requests",
          "errors",
          "lastSeenAt"
        ]
      },
      "description": "Up to 50 MCP clients, most sessions first."
    },
    "errorRequests": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "capturedAt": {
            "type": "string",
            "description": "ISO timestamp."
          },
          "clientName": {
            "type": "string",
            "description": "Client name, or empty when not reported."
          },
          "clientVersion": {
            "type": "string",
            "description": "Client version, or empty when not reported."
          },
          "method": {
            "type": "string",
            "description": "JSON-RPC method, such as tools/call."
          },
          "target": {
            "type": "string",
            "description": "Tool name, resource URI or prompt name the request targeted."
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "tool_error",
              "rpc_error"
            ],
            "description": "Kind of failure, where tool_error means the tool returned an error result and rpc_error means the JSON-RPC request failed."
          },
          "errorCode": {
            "type": "integer",
            "description": "Error code your server reported; 0 when none."
          },
          "errorMessage": {
            "type": "string",
            "description": "Error message, or empty when not reported."
          },
          "durationMs": {
            "type": "integer",
            "description": "Request duration in milliseconds."
          },
          "model": {
            "type": "string",
            "description": "Model the agent reported via the optional _model parameter. Empty when not reported."
          }
        },
        "required": [
          "capturedAt",
          "clientName",
          "clientVersion",
          "method",
          "target",
          "status",
          "errorCode",
          "errorMessage",
          "durationMs",
          "model"
        ]
      },
      "description": "Up to 100 most recent failed requests, newest first."
    },
    "models": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Model name."
          },
          "sessions": {
            "type": "integer",
            "description": "Distinct sessions that reported this model."
          },
          "calls": {
            "type": "integer",
            "description": "Requests that reported this model."
          },
          "errors": {
            "type": "integer",
            "description": "Requests whose status was tool_error or rpc_error."
          }
        },
        "required": [
          "name",
          "sessions",
          "calls",
          "errors"
        ]
      },
      "description": "Up to 50 models agents reported via the optional _model parameter, most calls first."
    },
    "intents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "intent": {
            "type": "string",
            "description": "Intent the agent stated when calling the tool."
          },
          "tool": {
            "type": "string",
            "description": "Tool the call went to."
          },
          "calls": {
            "type": "integer",
            "description": "Requests that stated this intent."
          },
          "errors": {
            "type": "integer",
            "description": "Requests whose status was tool_error or rpc_error."
          }
        },
        "required": [
          "intent",
          "tool",
          "calls",
          "errors"
        ]
      },
      "description": "Up to 50 most frequent intent and tool pairs."
    },
    "elicitations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "description": "Server-to-client request method, such as elicitation or sampling."
          },
          "tool": {
            "type": "string",
            "description": "Tool that triggered the request."
          },
          "requests": {
            "type": "integer",
            "description": "Requests sent to clients."
          },
          "accepted": {
            "type": "integer",
            "description": "Requests the user accepted."
          },
          "declined": {
            "type": "integer",
            "description": "Requests the user declined."
          },
          "cancelled": {
            "type": "integer",
            "description": "Requests the user dismissed without answering."
          },
          "errors": {
            "type": "integer",
            "description": "Requests whose status was tool_error or rpc_error."
          }
        },
        "required": [
          "method",
          "tool",
          "requests",
          "accepted",
          "declined",
          "cancelled",
          "errors"
        ]
      },
      "description": "Requests your server sent to clients, with how users answered."
    },
    "uiRenders": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "resource": {
            "type": "string",
            "description": "ui:// resource URI."
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tools that advertise this resource."
          },
          "renders": {
            "type": "integer",
            "description": "Successful reads of the resource."
          },
          "sessions": {
            "type": "integer",
            "description": "Distinct sessions with a successful read."
          },
          "errors": {
            "type": "integer",
            "description": "Requests whose status was tool_error or rpc_error."
          }
        },
        "required": [
          "resource",
          "tools",
          "renders",
          "sessions",
          "errors"
        ]
      },
      "description": "MCP Apps interfaces hosts loaded, most renders first."
    },
    "catalog": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "listedAt": {
          "type": "string",
          "description": "ISO timestamp of the latest tools/list response."
        },
        "unusedTools": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Tool name."
              },
              "description": {
                "type": "string",
                "description": "Description from the latest tools/list response, or empty when there is none."
              }
            },
            "required": [
              "name",
              "description"
            ]
          },
          "description": "Listed tools with no calls in the window."
        }
      },
      "required": [
        "listedAt",
        "unusedTools"
      ],
      "description": "Tools from the latest tools/list that were never called in the window. Null before a listing is seen."
    },
    "organization": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Workspace ID. Account API keys can send it, or the slug, as X-Notra-Organization-Id."
        },
        "slug": {
          "type": "string",
          "description": "URL-safe workspace handle, unique across Notra."
        },
        "name": {
          "type": "string",
          "description": "Workspace display name."
        },
        "logo": {
          "type": [
            "string",
            "null"
          ],
          "description": "Workspace logo image URL. Null when none is set."
        }
      },
      "required": [
        "id",
        "slug",
        "name",
        "logo"
      ],
      "description": "Workspace the request ran in."
    }
  },
  "required": [
    "configured",
    "server",
    "totals",
    "daily",
    "tools",
    "clients",
    "errorRequests",
    "models",
    "intents",
    "elicitations",
    "uiRenders",
    "catalog",
    "organization"
  ]
}