Skip to content

Commit 229e651

Browse files
committed
remove null as reset
1 parent 74c4b01 commit 229e651

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ModelContextProtocol/Client/McpClientTool.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ internal McpClientTool(IMcpClient client, Tool tool, string? name = null, string
2525
/// This is useful for optimizing the tool name for specific models or for prefixing the tool name with a (usually server-derived) namespace to avoid conflicts.
2626
/// The server will still be called with the original tool name, so no mapping is required.
2727
/// </summary>
28-
/// <param name="name">The model-facing name to give the tool. Pass null to clear the name override and to use the MCP Tool name again.</param>
28+
/// <param name="name">The model-facing name to give the tool.</param>
2929
/// <returns>Copy of this McpClientTool with the provided name</returns>
30-
public McpClientTool WithName(string? name)
30+
public McpClientTool WithName(string name)
3131
{
3232
return new McpClientTool(_client, ProtocolTool, name, _description);
3333
}
@@ -38,9 +38,9 @@ public McpClientTool WithName(string? name)
3838
/// This will in general require a hard-coded mapping in the client.
3939
/// It is not recommended to use this without running evaluations to ensure the model actually benefits from the custom description.
4040
/// </summary>
41-
/// <param name="description">The description to give the tool. Pass null to clear the description override and to use the MCP Tool description again.</param>
41+
/// <param name="description">The description to give the tool.</param>
4242
/// <returns>Copy of this McpClientTool with the provided description</returns>
43-
public McpClientTool WithDescription(string? description)
43+
public McpClientTool WithDescription(string description)
4444
{
4545
return new McpClientTool(_client, ProtocolTool, _name, description);
4646
}

0 commit comments

Comments
 (0)