In the watchlist api (and others) for protection log entries the parameters include a description, but it lacks the formatting of the displayed description, which comes from ProtectLogFormatter::createProtectDescription()
We should expand the details into the displayed form, perhaps saving it with a separate key so that anything relying on the current description isn't broken.
For example, for https://meta.wikimedia.org/w/index.php?title=Special:Log&logid=43068557 the rendered description is
[Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite) but the api description is [edit=autoconfirmed] (indefinite)[move=autoconfirmed] (indefinite)