European Parliament MCP Server API - v1.0.1
    Preparing search index...
    • Build an error response from an error value or message string. Never exposes raw stack traces to MCP clients.

      Parameters

      • error: unknown

        Error instance or message string

      • toolName: string

        Name of the tool that produced the error

      Returns ToolResult

      MCP-compliant ToolResult with isError flag set