Configure diagnostics
ToolErrorDetails is frozen and contains toolName and the existing frozen ToolRequest. Tool arguments and auth identity/credentials are not added. Request metadata is client-supplied; assess what you log and do not assume arbitrary metadata is safe or verified.
Transport and internal request diagnostics retain the one-argument form. Existing single-argument callbacks continue to work. Synchronous throws and asynchronous rejections from diagnostics cannot disrupt the response or cleanup.
Construction failures
ToolNameError identifies an invalid registration key. ToolSchemaError includes the tool name, schemaKind (input, output, or metadata), and the underlying cause. Correct these before starting the server; they are not tool-call errors.