Split Agent Zero's server.tool MCP name while preserving dots in MCP tool names.
(tool_name: str)
| 97 | |
| 98 | |
| 99 | def _split_qualified_tool_name(tool_name: str) -> tuple[str, str]: |
| 100 | """Split Agent Zero's server.tool MCP name while preserving dots in MCP tool names.""" |
| 101 | if "." not in tool_name: |
| 102 | raise ValueError(f"Tool {tool_name} not found") |
| 103 | server_name_part, tool_name_part = tool_name.split(".", 1) |
| 104 | if not server_name_part or not tool_name_part: |
| 105 | raise ValueError(f"Tool {tool_name} not found") |
| 106 | return server_name_part, tool_name_part |
| 107 | |
| 108 | |
| 109 | def _normalize_disabled_tools(value: Any) -> list[str]: |