Check if a tool is available
(self, tool_name: str)
| 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] |