EU Parliament Monitor - API Documentation - v0.7.0
    Preparing search index...
    • Validate that an MCP tool response has the standard envelope shape: { content: [{ text: string }] }.

      Does not throw — returns a ValidationResult so callers can choose their own degradation strategy.

      Parameters

      • toolName: string

        Tool name used in warning messages

      • data: unknown

        Raw response to validate

      Returns ValidationResult

      Validation result with any error descriptions