This is rather application related question as we do not know implementation of your commands.
show interface summary can be
clispec command that internally calls
show interface ethernet brief and
show interface port-channel brief using
maapi_cli_command. This will work only in CLI. Please check your sources for
show interface summary to see how it is implemented.