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