MCPcopy Create free account
hub / github.com/IBM/mcp-cli / call_tool

Method call_tool

tests/chat/test_tool_processor.py:78–83  ·  view source on GitHub ↗
(self, tool_name, arguments)

Source from the content-addressed store, hash-verified

76 self.called_args = None
77
78 async def call_tool(self, tool_name, arguments):
79 self.called_tool = tool_name
80 self.called_args = arguments
81 if self.raise_exception:
82 raise Exception("Simulated call_tool exception")
83 return self.return_result
84
85
86class DummyToolManager:

Calls

no outgoing calls

Tested by

no test coverage detected