Get all tools from the server and mark disabled tools for UI detail views.
(self)
| 620 | return [tool for tool in tools if tool.get("name") not in disabled] |
| 621 | |
| 622 | def get_all_tools(self) -> List[dict[str, Any]]: |
| 623 | """Get all tools from the server and mark disabled tools for UI detail views.""" |
| 624 | with self.__lock: |
| 625 | tools = self.__client.get_tools() # type: ignore |
| 626 | disabled = set(self.disabled_tools) |
| 627 | return [ |
| 628 | {**tool, "disabled": tool.get("name") in disabled} |
| 629 | for tool in tools |
| 630 | ] |
| 631 | |
| 632 | def has_tool(self, tool_name: str) -> bool: |
| 633 | """Check if a tool is available""" |