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

Method execute_tool

examples/planning/plan_as_tool_demo.py:166–170  ·  view source on GitHub ↗
(self, tool_name, arguments, namespace=None, timeout=None)

Source from the content-addressed store, hash-verified

164 return tools, {}
165
166 async def execute_tool(self, tool_name, arguments, namespace=None, timeout=None):
167 await asyncio.sleep(self._delay)
168 self.call_log.append((tool_name, arguments))
169 result = self.MOCK_RESULTS.get(tool_name, f"Result from {tool_name}")
170 return FakeToolCallResult(tool_name=tool_name, result=result)
171
172
173# ── Helpers ──────────────────────────────────────────────────────────────────

Callers 1

run_conversationFunction · 0.45

Calls 2

FakeToolCallResultClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected