MCPcopy Create free account
hub / github.com/agent0ai/agent-zero / _split_qualified_tool_name

Function _split_qualified_tool_name

helpers/mcp_handler.py:99–106  ·  view source on GitHub ↗

Split Agent Zero's server.tool MCP name while preserving dots in MCP tool names.

(tool_name: str)

Source from the content-addressed store, hash-verified

97
98
99def _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
109def _normalize_disabled_tools(value: Any) -> list[str]:

Callers 2

has_toolMethod · 0.85
call_toolMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected