European Parliament MCP Server API - v1.0.1
    Preparing search index...

    Interface AuditEvent

    Structured audit event used for MCP tool call tracking.

    Designed to be serialised to JSON for append-only log sinks (CloudWatch, Elasticsearch, etc.).

    interface AuditEvent {
        action: string;
        level: LogLevel;
        timestamp: string;
        duration?: number;
        params?: Record<string, unknown>;
        result?: { success: boolean; count?: number; error?: string };
        toolName?: string;
    }
    Index

    Properties

    action: string

    Action / tool name

    level: LogLevel

    Severity level of the event

    timestamp: string

    ISO-8601 timestamp

    duration?: number

    Wall-clock duration of the operation in milliseconds

    params?: Record<string, unknown>

    Sanitised tool input parameters

    result?: { success: boolean; count?: number; error?: string }

    Outcome metadata

    toolName?: string

    MCP tool name (if the event was triggered by a tool call)