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

Method execute_tool

examples/planning/plan_llm_demo.py:99–103  ·  view source on GitHub ↗
(self, tool_name, arguments, namespace=None, timeout=None)

Source from the content-addressed store, hash-verified

97 return [self.ToolInfo(name=n) for n in self.TOOL_CATALOG]
98
99 async def execute_tool(self, tool_name, arguments, namespace=None, timeout=None):
100 await asyncio.sleep(self._delay)
101 self.call_log.append((tool_name, arguments))
102 result = self.MOCK_RESULTS.get(tool_name, f"Result from {tool_name}")
103 return FakeToolCallResult(tool_name=tool_name, result=result)
104
105
106# ── Plan Generation ─────────────────────────────────────────────────────────

Callers 2

execute_playwright_toolFunction · 0.45
execute_tool_exampleFunction · 0.45

Calls 2

FakeToolCallResultClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected