Skip to content

Commit 77e4434

Browse files
Update src/ModelContextProtocol/Client/McpClientTool.cs
Co-authored-by: Eirik Tsarpalis <[email protected]>
1 parent 229e651 commit 77e4434

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ModelContextProtocol/Client/McpClientTool.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ internal McpClientTool(IMcpClient client, Tool tool, string? name = null, string
2929
/// <returns>Copy of this McpClientTool with the provided name</returns>
3030
public McpClientTool WithName(string name)
3131
{
32+
Throw.IfNull(name);
3233
return new McpClientTool(_client, ProtocolTool, name, _description);
3334
}
3435

0 commit comments

Comments
 (0)