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

Method get_tools

helpers/mcp_handler.py:514–519  ·  view source on GitHub ↗

Get enabled tools from the server

(self)

Source from the content-addressed store, hash-verified

512 return self.__client.get_log() # type: ignore
513
514 def get_tools(self) -> List[dict[str, Any]]:
515 """Get enabled tools from the server"""
516 with self.__lock:
517 tools = self.__client.get_tools() # type: ignore
518 disabled = set(self.disabled_tools)
519 return [tool for tool in tools if tool.get("name") not in disabled]
520
521 def get_all_tools(self) -> List[dict[str, Any]]:
522 """Get all tools from the server and mark disabled tools for UI detail views."""

Callers

nothing calls this directly

Calls 3

setFunction · 0.85
get_toolsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected