basic API for command validation queries