What you did wrong was writing "events". The function is "event". $gameMap.event(6). Or if you're using events, you need to give it an index: $gameMap.events()[6]. Either way will work, but you can't call canPass just on $gameMap.events().
let me understand, the x and y are the coordinates where we start checking in 4 directions if there is passable tiles right? and the event ID is the id of the event that we are checking if it can pass.
in 1st case: so let's assume that we have the function without event ID, we can know it an event in x and y position if he can pass in 4 directions, the only benefit possible in this case is to check passabilty in other map (I don't know even if this is possible or useful btw)
in 2nd case: let's assume that we have the function without coordinates, we can get the coordinates from event ID and we can check passability then even if it is on other map, that is what doesn't make sense, so there is two odds, the first is that there is an other purpose of having both event ID and coordinates, the second that it is just a mistake from the developers (I do not consider this possibility)
I'm not sure what your cases mean, to be honest. You can't call the function without an event, and to access an event the code needs to know its ID--either as a specific value or derived from a variable. The benefit is so that the event can check whether it's able to move in a given direction. Why would that be anything to do with other maps?
As for your second case, I think you may have misunderstood how events work. Yes, you can get the coordinates from the event ID, but passability only applies to the current map. Only the current map is loaded into memory at any given time, so "an event on another map" doesn't actually exist until you're on that map yourself.