Deployment & Reportingmcp:read

read_server_logs_and_analytics

Paginated, privacy-safe read-only inspection of ticket stats, transcript summaries, security and moderation logs, Anti-Nuke incidents, interviews, and tier-gated analytics.

readOnlyHint: trueidempotentHint: truedestructiveHint: falseopenWorldHint: false

Overview

Provides structured, paginated read-only visibility across tickets_stats, ticket_transcripts_summary (metadata only without raw HTML), security_logs, moderation_logs, automod_logs, autoban_logs, antinuke_incidents, interviews_list, utility_analytics, and serverdashboard_insights.

Enforces dataset-specific RBAC (Anti-Nuke incidents require Owner or active Trusted Staff; interviews apply role-based field projection; Server Dashboard insights require leadership), strips sensitive PII fields, and enforces exact Free/Pro/Enterprise analytics tier gates.

Permissions

Required Scopes
mcp:read
Discord Role Access
Matches dataset RBAC: Anti-Nuke requires Owner/Trusted; interviews allow delegated Interviewers with projected fields; Server Dashboard insights require leadership; all others require Manage Server.
Server-Side Guard
Dataset-specific live RBAC (authorizeAntiNukeRequest / checkInterviewAccess / checkServerDashboardAccess / checkManageGuild) + privacy DTO projection + tier checks
Subscription Tier
Standard 1d/7d/30d views are Free. Utility 1y requires Pro+; lifetime/custom require Enterprise. Server Dashboard insights scale summary (Free) / full (Pro) / full_trends (Enterprise).

Input Schema

JSON Schema enforced by the server prior to RBAC and tier validation. Unknown properties are rejected strictly.

read_server_logs_and_analytics.inputSchema.jsonjson
{
  "type": "object",
  "properties": {
    "guildId": {
      "type": "string",
      "pattern": "^\\d{17,22}$",
      "description": "Discord server (guild) snowflake ID."
    },
    "dataset": {
      "type": "string",
      "enum": [
        "tickets_stats",
        "ticket_transcripts_summary",
        "security_logs",
        "moderation_logs",
        "automod_logs",
        "autoban_logs",
        "antinuke_incidents",
        "interviews_list",
        "utility_analytics",
        "serverdashboard_insights"
      ],
      "description": "Operational log, transcript metadata, or analytics dataset to inspect."
    },
    "timeframe": {
      "type": "string",
      "enum": [
        "1d",
        "24h",
        "7d",
        "30d",
        "1y",
        "lifetime",
        "custom"
      ],
      "default": "30d",
      "description": "Analytics reporting window for utility_analytics (1y requires Pro+; lifetime and custom require Enterprise)."
    },
    "startDate": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Start date (YYYY-MM-DD) when timeframe is custom (Enterprise)."
    },
    "endDate": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "End date (YYYY-MM-DD) when timeframe is custom (Enterprise)."
    },
    "filter": {
      "type": "string",
      "maxLength": 64,
      "description": "Optional dataset filter (for security_logs: all/moderation/verification; for automod_logs: filter name; for autoban_logs: ruleType; for transcripts: search query)."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 20,
      "description": "Maximum number of records per page (1 to 50)."
    },
    "page": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "default": 1,
      "description": "1-based page number (ignored when cursor is supplied)."
    },
    "cursor": {
      "type": "string",
      "maxLength": 128,
      "description": "Opaque pagination cursor returned by the previous response."
    }
  },
  "required": [
    "guildId",
    "dataset"
  ],
  "additionalProperties": false
}

Parameters

NameTypeRequiredDescription
guildIdstringRequired

Discord server (guild) snowflake ID.

datasetstringRequired

Operational log, transcript metadata, or analytics dataset to inspect.

Allowed: tickets_stats | ticket_transcripts_summary | security_logs | moderation_logs | automod_logs | autoban_logs | antinuke_incidents | interviews_list | utility_analytics | serverdashboard_insights

timeframestringOptional (30d)

Analytics reporting window for utility_analytics (1y requires Pro+; lifetime and custom require Enterprise).

Allowed: 1d | 24h | 7d | 30d | 1y | lifetime | custom

startDatestringOptional

Start date (YYYY-MM-DD) when timeframe is custom (Enterprise).

endDatestringOptional

End date (YYYY-MM-DD) when timeframe is custom (Enterprise).

filterstringOptional

Optional dataset filter (for security_logs: all/moderation/verification; for automod_logs: filter name; for autoban_logs: ruleType; for transcripts: search query).

limitintegerOptional (20)

Maximum number of records per page (1 to 50).

pageintegerOptional (1)

1-based page number (ignored when cursor is supplied).

cursorstringOptional

Opaque pagination cursor returned by the previous response.

Example

Read ticket performance statistics and recent tickets for a server.

POST https://mcp.taicket.xyz/mcpjson
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "read_server_logs_and_analytics",
    "arguments": {
      "guildId": "1200000000000000000",
      "dataset": "tickets_stats",
      "limit": 20,
      "page": 1
    }
  }
}

Response

Paginated, privacy-safe operational logs or analytics summary.

Structured Tool Resultjson
{
  "guildId": "1200000000000000000",
  "dataset": "tickets_stats",
  "summary": {
    "totalTickets": 184,
    "openTickets": 5,
    "closedToday": 12,
    "standardTickets": 72,
    "aiTickets": 112,
    "avgFirstResponseSeconds": 42,
    "avgResolutionSeconds": 980,
    "avgCsat": 4.8
  },
  "items": [],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 0,
    "totalPages": 1,
    "hasMore": false,
    "nextCursor": null
  }
}

Errors

Error CodeConditionResolution
UNAUTHORIZEDMissing, expired, or revoked Bearer access token or scoped Personal Access Token.Re-authenticate through OAuth 2.1 or create a fresh token in https://mcp.taicket.xyz/account.
FORBIDDENToken lacks the required OAuth scope, the guild is outside allowedGuildIds, or caller lacks live Discord RBAC permissions.Grant the required scope during consent or confirm your Discord server role permissions.
RATE_LIMITEDCaller exceeded the per-user sliding-window request limit.Wait for the Retry-After window before issuing another request.
VALIDATION_ERRORInput arguments failed Zod schema validation or contained invalid Discord snowflakes.Inspect the parameter schema and supply valid Discord snowflake IDs and field types.
TIER_UPGRADE_REQUIREDThe requested module, quota, or option requires a Pro or Enterprise subscription.Review current plan limits with get_server_configuration or upgrade at https://taicket.xyz/dashboard/{guildId}/premium.

Behavior

  • Strictly caps page size at 50 items and supports both page-based and opaque base64url cursor pagination.
  • Strips raw transcript HTML, IP addresses, device fingerprints, PrivateEvidence, and anonymous report submitters.
  • Rejects Anti-Nuke incident inspection for regular admins and Temp Admins unless authorized via authorizeAntiNukeRequest.
  • Enforces enforceUtilityTimeframePremium and enforceServerDashboardPremium across Free, Pro, and Enterprise plans.