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

    Structured error class that all MCP tools use for consistent error reporting. Ensures tool name, operation, and safe context are always included without leaking internal implementation details to clients.

    Hierarchy

    Index

    Constructors

    • Parameters

      • options: {
            message: string;
            operation: string;
            toolName: string;
            cause?: unknown;
            isRetryable?: boolean;
        }

      Returns ToolError

    Properties

    isRetryable: boolean
    operation: string
    toolName: string
    cause?: Error