From e4fcb8edf921e1aeeb9f7739a815bc79e515ca26 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Wed, 14 May 2025 19:36:07 -0400 Subject: [PATCH] Fix docstring --- src/fastmcp/client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fastmcp/client/client.py b/src/fastmcp/client/client.py index acb13c748..6c56893a0 100644 --- a/src/fastmcp/client/client.py +++ b/src/fastmcp/client/client.py @@ -427,7 +427,7 @@ class Client: ]: """Call a tool on the server. - Unlike call_tool_mcp, this method raises a ClientError if the tool call results in an error. + Unlike call_tool_mcp, this method raises a ToolError if the tool call results in an error. Args: name (str): The name of the tool to call. @@ -438,7 +438,7 @@ class Client: The content returned by the tool. Raises: - ClientError: If the tool call results in an error. + ToolError: If the tool call results in an error. RuntimeError: If called while the client is not connected. """ result = await self.call_tool_mcp(name=name, arguments=arguments or {})