Jeremiah Lowin commited on
Commit
934976d
·
1 Parent(s): 177d39a

Fix docstring

Browse files
Files changed (1) hide show
  1. src/fastmcp/client/client.py +2 -2
src/fastmcp/client/client.py CHANGED
@@ -427,7 +427,7 @@ class Client:
427
  ]:
428
  """Call a tool on the server.
429
 
430
- Unlike call_tool_mcp, this method raises a ClientError if the tool call results in an error.
431
 
432
  Args:
433
  name (str): The name of the tool to call.
@@ -438,7 +438,7 @@ class Client:
438
  The content returned by the tool.
439
 
440
  Raises:
441
- ClientError: If the tool call results in an error.
442
  RuntimeError: If called while the client is not connected.
443
  """
444
  result = await self.call_tool_mcp(name=name, arguments=arguments or {})
 
427
  ]:
428
  """Call a tool on the server.
429
 
430
+ Unlike call_tool_mcp, this method raises a ToolError if the tool call results in an error.
431
 
432
  Args:
433
  name (str): The name of the tool to call.
 
438
  The content returned by the tool.
439
 
440
  Raises:
441
+ ToolError: If the tool call results in an error.
442
  RuntimeError: If called while the client is not connected.
443
  """
444
  result = await self.call_tool_mcp(name=name, arguments=arguments or {})