Get all tools from the server and mark disabled tools for UI detail views.
(self)
| 519 | return [tool for tool in tools if tool.get("name") not in disabled] |
| 520 | |
| 521 | def get_all_tools(self) -> List[dict[str, Any]]: |
| 522 | """Get all tools from the server and mark disabled tools for UI detail views.""" |
| 523 | with self.__lock: |
| 524 | tools = self.__client.get_tools() # type: ignore |
| 525 | disabled = set(self.disabled_tools) |
| 526 | return [ |
| 527 | {**tool, "disabled": tool.get("name") in disabled} |
| 528 | for tool in tools |
| 529 | ] |
| 530 | |
| 531 | def has_tool(self, tool_name: str) -> bool: |
| 532 | """Check if a tool is available""" |