Validate that an MCP tool response has the standard envelope shape: { content: [{ text: string }] }.
{ content: [{ text: string }] }
Does not throw — returns a ValidationResult so callers can choose their own degradation strategy.
Tool name used in warning messages
Raw response to validate
Validation result with any error descriptions
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.