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

Method get_all_tools

helpers/mcp_handler.py:521–529  ·  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

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."""
523 with self.__lock:
524 tools = self.__client.get_tools() # type: ignore
525 disabled = set(self.disabled_tools)
526 return [
527 {**tool, "disabled": tool.get("name") in disabled}
528 for tool in tools
529 ]
530
531 def has_tool(self, tool_name: str) -> bool:
532 """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