We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dcbc0b commit 74c4b01Copy full SHA for 74c4b01
src/ModelContextProtocol/Client/McpClientTool.cs
@@ -49,10 +49,10 @@ public McpClientTool WithDescription(string? description)
49
public Tool ProtocolTool { get; }
50
51
/// <inheritdoc/>
52
- public override string Name => _name ?? ProtocolTool.Name;
+ public override string Name => _name!;
53
54
55
- public override string Description => _description ?? ProtocolTool.Description ?? string.Empty;
+ public override string Description => _description ?? string.Empty;
56
57
58
public override JsonElement JsonSchema => ProtocolTool.InputSchema;
0 commit comments