def _create_tool_fn(self, tool_name: str) -> Callable:
        """
        Create a tool call function for a specified MCP tool name. The function internally wraps the call_tool call to the MCP Client.
        """

        async def async_tool_fn(**kwargs):
            return await self.client.call_tool(tool_name, kwargs)

        return async_tool_fn

        Create a tool call function for a specified MCP tool name. The function internally wraps the call_tool call to the MCP Client.
        
llama-index-integrations/tools/llama-index-tools-mcp/llama_index/tools/mcp/base.py