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

Method has_tool

helpers/mcp_handler.py:632–637  ·  view source on GitHub ↗

Check if a tool is available

(self, tool_name: str)

Source from the content-addressed store, hash-verified

630 ]
631
632 def has_tool(self, tool_name: str) -> bool:
633 """Check if a tool is available"""
634 if tool_name in self.disabled_tools:
635 return False
636 with self.__lock:
637 return self.__client.has_tool(tool_name) # type: ignore
638
639 async def call_tool(
640 self, tool_name: str, input_data: Dict[str, Any]

Calls 1

has_toolMethod · 0.45