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

Method execute_tool

src/mcp_cli/chat/testing.py:110–115  ·  view source on GitHub ↗

Execute tool via stream_manager.

(self, tool_name: str, arguments: dict[str, Any])

Source from the content-addressed store, hash-verified

108 self.internal_tools = list(self.tools)
109
110 async def execute_tool(self, tool_name: str, arguments: dict[str, Any]) -> Any:
111 """Execute tool via stream_manager."""
112 if hasattr(self.stream_manager, "call_tool"):
113 return await self.stream_manager.call_tool(tool_name, arguments)
114 else:
115 raise ValueError("Stream manager doesn't support tool execution")
116
117 async def get_server_for_tool(self, tool_name: str) -> str:
118 """Get server for tool from stream_manager."""

Callers 6

executeMethod · 0.45
_execute_tool_directMethod · 0.45
_dashboard_execute_toolFunction · 0.45

Calls 1

call_toolMethod · 0.80

Tested by

no test coverage detected