MCPcopy Create free account
hub / github.com/agent0ai/agent-zero / get_tools

Method get_tools

helpers/mcp_handler.py:615–620  ·  view source on GitHub ↗

Get enabled tools from the server

(self)

Source from the content-addressed store, hash-verified

613 return self.__client.get_log() # type: ignore
614
615 def get_tools(self) -> List[dict[str, Any]]:
616 """Get enabled tools from the server"""
617 with self.__lock:
618 tools = self.__client.get_tools() # type: ignore
619 disabled = set(self.disabled_tools)
620 return [tool for tool in tools if tool.get("name") not in disabled]
621
622 def get_all_tools(self) -> List[dict[str, Any]]:
623 """Get all tools from the server and mark disabled tools for UI detail views."""

Calls 3

setFunction · 0.85
get_toolsMethod · 0.45
getMethod · 0.45