mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 05:24:18 +02:00
Fix docstring
This commit is contained in:
parent
6b4f700a59
commit
e4fcb8edf9
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue