A roguish poet is given the run of the scheming Wazir's harem while pretending to help him usurp the young caliph.