Test capability of a remote agent.
a MainChannel
an agent capability identifier
true if cap (channel kind capability) is available.
cap