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

Method execute_tool

examples/planning/plan_parallel_demo.py:73–81  ·  view source on GitHub ↗
(self, tool_name, arguments, namespace=None, timeout=None)

Source from the content-addressed store, hash-verified

71 return [self.ToolInfo(name=n) for n in tools]
72
73 async def execute_tool(self, tool_name, arguments, namespace=None, timeout=None):
74 start = time.perf_counter()
75 await asyncio.sleep(self.DELAY)
76 end = time.perf_counter()
77 self.call_times.append((tool_name, start, end))
78 return FakeToolCallResult(
79 tool_name=tool_name,
80 result=f"{tool_name} result",
81 )
82
83
84# ── Demo Plans ──────────────────────────────────────────────────────────────

Callers

nothing calls this directly

Calls 1

FakeToolCallResultClass · 0.70

Tested by

no test coverage detected