Who is «al-qālī»?

The Dimyāṭī Maqāmah: Neighbours, Companions and Generous Conduct