listCommands
The listCommands command generates a list of all database commands implemented for the current mongod or mongos instance.
mongod
mongos
db.runCommand( { listCommands: 1 } )