Three Parts Dead by Max Gladstone

In a city where divine power is managed like corporate law, the ritual murder of the local patron god leaves the metropolis on the brink and its devotees scrambling for answers; a pragmatic, down-on-her-luck troubleshooter is hired to investigate and rebuild the dead god, forcing her into a maze of legalistic magic, competing guilds, cults, and commercial interests as she uncovers a conspiracy that threatens the fragile balance between mortals and deities.

Purchase from Bookshop.org