validateToolOutput property

bool validateToolOutput
getter/setter pair

Whether callTool checks structuredContent against the tool's outputSchema (from the last tools/list). Clients should validate structured results; a mismatch fails the call with McpError.

Implementation

bool validateToolOutput = true;