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

Method has_tool

helpers/mcp_handler.py:531–536  ·  view source on GitHub ↗

Check if a tool is available

(self, tool_name: str)

Source from the content-addressed store, hash-verified

529 ]
530
531 def has_tool(self, tool_name: str) -> bool:
532 """Check if a tool is available"""
533 if tool_name in self.disabled_tools:
534 return False
535 with self.__lock:
536 return self.__client.has_tool(tool_name) # type: ignore
537
538 async def call_tool(
539 self, tool_name: str, input_data: Dict[str, Any]

Callers

nothing calls this directly

Calls 1

has_toolMethod · 0.45

Tested by

no test coverage detected