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

Method get_all_tools

helpers/mcp_handler.py:622–630  ·  view source on GitHub ↗

Get all tools from the server and mark disabled tools for UI detail views.

(self)

Source from the content-addressed store, hash-verified

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."""
624 with self.__lock:
625 tools = self.__client.get_tools() # type: ignore
626 disabled = set(self.disabled_tools)
627 return [
628 {**tool, "disabled": tool.get("name") in disabled}
629 for tool in tools
630 ]
631
632 def has_tool(self, tool_name: str) -> bool:
633 """Check if a tool is available"""

Callers

nothing calls this directly

Calls 3

setFunction · 0.85
get_toolsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected